On Fri, Feb 17, 2017 at 10:15:55PM -0900, Christopher Howard wrote:
> Hi list. As mentioned before, I've got picolisp running on a mips32r2
> system running librecmc-1.3.4. I want to communicate with an ACM device
> available at /dev/ttyACM0. Is there a library for serial communication?
> And/Or do I need to interface to a C library?
I think it should be possible to directly read/write the device, perhaps after
calling 'stty' to set parameters
(err "/dev/null" # stty arguments depend on your situation
(call "stty" "/dev/ttyACM0" "raw" "-echo" "-echoe" "-echok") )
Then
(out "/dev/ttyACM0"
... )
(in "/dev/ttyACM0"
... )
Use 'char' or 'line' to read text, or 'rd' to read binary data, and 'prin' or
'prinl' to write text, or 'wr' to write bytes.
♪♫ Alex
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe