I have been trying to get access to a serial port from the A9. The command sudo stty -F /dev/ttyMCC 9600 Fails with the following error stty: /dev/ttyMCC: unable to perform all requested operations
Thanks for the reply. I'm able to access the port with cu and with the Arduino IDE Serial monitor. My goal is to use Apache2 web server and php to access the serial port. The port will be connected to an Audio Distribution Amp. In order to get that to work I think stty has to function properly. The learning curve is very steep here.
There is a udoo Neo PHP serial library that could do your job: http://www.udoo.org/docs-neo/Arduin...EO_Serial_Libraries_And_How_To_Port_Them.html
Yes that is exactly what I want to try to do but fell down the rabbit hole with stty not accessing the port. So will ignore the stty issue and checkout the serial libraries.
I am trying to connect to the A9 Serial port UART#6, so far successfully connected via python to /dev/ttyMCC to communicate with the M4 ( a small program that turns on an output with the M4 ( Arduino )) where do I find the configuration in python for UART6? any hint appreciated Python nubee
It is a little bit hidden in de docs but on http://www.udoo.org/docs-neo/Cookbook_Linux/Device_Tree_Editor.html it is shown that it is /dev/ttymxc5 It is on a screenshot so please check it on your own Neo. You added uart6 through the device tree editor and rebooted and checked that it is still configured?
Device Tree editor confirms the port is available after re-boot but python throws an error code 1: LXTerminal reports SerialException could not opent port /dev/ttymxc5, I tried verious combinations of Mxc5, mxc6 etc. none are recognized. This may be something for the factory to advise..
Just got a chance to try out the PHP Bidirectional Example and it works great. I originally wanted to use UART6 and the A9 for this project but now I can pass commands to the M4 with PHP and then send commands from the M4 to the external device via UART5 Pins 0, 1. The only problem I caused for myself was when installing Apache2 with Tasksel. I deselected LUBUNTU minimal install which caused the desktop to be trashed. Did this twice before realizing what was causing the Desktop to get trashed. Newbie mistake for sure.