nithinkk
Newbie level 6
Hi,
I am working with Raspberry Pi B+ in embedded C for an IOT based project. Here I am using Raspbian OS and bcm2835 library and the project consists of ADAM-2031z (zigbee transmitter + sensor) node and the Raspbee is used as the zigbee reception. Raspbee module is connected to the raspberry Pi using UART. Raspbee had already programmed. So my plan is to generate an interrupt on UART reception and process the data and send to the server. But when googling I can't find any handler codes for UART reception ,most of them I saw just polling for the data and in some case using the kernal programming. I am using termios.h file in linux for serial communcation. What I want to know is, whether UART inerrupt can be programmed using the interrupt handler as in the microcontroller programming? because I had more experience in microcontroller programming.
I am working with Raspberry Pi B+ in embedded C for an IOT based project. Here I am using Raspbian OS and bcm2835 library and the project consists of ADAM-2031z (zigbee transmitter + sensor) node and the Raspbee is used as the zigbee reception. Raspbee module is connected to the raspberry Pi using UART. Raspbee had already programmed. So my plan is to generate an interrupt on UART reception and process the data and send to the server. But when googling I can't find any handler codes for UART reception ,most of them I saw just polling for the data and in some case using the kernal programming. I am using termios.h file in linux for serial communcation. What I want to know is, whether UART inerrupt can be programmed using the interrupt handler as in the microcontroller programming? because I had more experience in microcontroller programming.