Re: Read/Write USB

new topic     » goto parent     » topic index » view thread      » older message » newer message
jimcbrown said...
irv said...

Can anyone suggest a starting point for reading/writing data from Arduino connected via USB (/dev/ttyUSB0, for example) in Euphoria?

I want to eventually graph the data, and control the Arduino via a control panel written in EuGTK.

You'd be in control of the data on both sides, right? Why wouldn't a simple open()/get()/puts() on /dev/tty/USB0 work?

I don't think it's that simple unfortunately. You'd need to set up the port specs and enable raw throughput: https://stackoverflow.com/a/18134892/2300395

You could also try libserialport. It builds easily enough and the API looks pretty straight-forward to wrap.

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu