Hi
I have been playing with a C userspace component to pass values from 
Linuxcnc to an arduino for display on a pendant LCD.

The code works perfectly from a commandline program but when inserted 
into a component, it compiles and runs but each
write(fd, buff, sizeof(buff)) goes to stdout / stderr instead of the
place fd points to, which is /dev/ttyUSB0

I can connect to a socket server from within the userspace component
and pass the values indirectly, but it is bugging me to distraction that 
perfectly normal serial comms code which can be shown to work elsewhere 
will not work properly in the component.

If anyone has any ideas why this should be, I would be grateful!

regards

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to