A collection of links about communicating with serial control lines over USB - Arduino etc -
- Communicating via the USB-to-TTL-Serial Adapter - https://www.pololu.com/docs/0J36/6
- https://www.xanthium.in/Serial-Port-Programming-on-Linux
- Using CTS / DSR - last part of https://stackoverflow.com/questions/209603/steps-to-make-a-led-blink-from-a-c-c-program
- https://stackoverflow.com/questions/957337/what-is-the-difference-between-dtr-dsr-and-rts-cts-flow-control
- No RTS pins for low cost board - need FTDI board - detailed tech info -
https://www.adafruit.com/product/954 via the quora link below, - https://www.quora.com/What-is-a-TTL-signal-in-communication-and-when-using-a-USB-port-why-do-we-use-a-USB-to-TTL-converter - "The so-called USB to TTL converter is actually a USB Serial Port to CMOS Logic-Level Serial Port converter."
- Using select() for microsecond delay -
https://www.experts-exchange.com/questions/20556300/how-insert-a-delay-in-microseconds-in-C-under-VC.html
https://stackoverflow.com/questions/1157209/is-there-an-alternative-sleep-function-in-c-to-milliseconds
https://pubs.opengroup.org/onlinepubs/000095399/functions/select.html - Processing.org - interesting resource for graphing the output, even from an Arduino. Tutorial -
https://itp.nyu.edu/physcomp/labs/labs-serial-communication/serial-output-from-an-arduino/ - libusb.info - crossplatform
- https://playground.arduino.cc/Interfacing/LinuxTTY - interesting shell tricks
- https://chrisheydrick.com/2012/06/13/how-to-read-serial-data-from-an-arduino-in-linux-with-c-part-2/ links to
- "Tod Kurt’s blog has an excellent write-up and fantastic example program for reading and writing serial data to/from an Arduino." - and http://todbot.com/blog/2013/04/29/arduino-serial-updated/
- Things to try if tty is not writable - https://ubuntuforums.org/showthread.php?t=2333167
No comments:
Post a Comment