Write serial port

More
15 Dec 2017 14:50 #103134 by GingerPotato
I have got USB to Serial device realized on PIC18 microcontroller.
I need to write to and read from it. How to do it?
I don't care about latency. Driver would work in servo thread.
I know there is rtapi_outb function but I don't really understand its usage.

Please Log in or Create an account to join the conversation.

More
15 Dec 2017 17:46 - 15 Dec 2017 17:48 #103139 by PCW
Replied by PCW on topic Write serial port
Probably the easiest way is to use a userspace python routine/component:

linuxcnc.org/docs/html/hal/halmodule.html

It will not be real time so expect 10s of ms delays
Last edit: 15 Dec 2017 17:48 by PCW.

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum