help on serial communication

Hello,

 

i hooked up a arduino due to my pi

i used the usb port to connect them to getter.

 

i have a small sample project that send a string of data every 5 second's just to test everything out.

 

on my pi i find out that the arduino is on port /dev/ttyACM0

when i give the command cat < /dev/ttyACM0 i recieve the correct data, so everything looks oke.

 

now the big question, how do i handle this incoming data on my pi so it is written in emoncms ?

is there some kind of serial in module that i can use for this. and how do i use it ?

below a line that is been send to the pi

11 0 0 0 0 0 0 228 12 232 3 (would be node adres 11,  and 5 data points lsb, msb)

 

mharizanov's picture

Re: help on serial communication

Hi,

 

see https:// github <dot> com/Jerome-github/oem_gateway

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.