Unable to read data from rx & tx, plus permissions issue.
I been trying to receive data from rx and tx, something I have never had any issues with on any other board. First of all I had permissions issue to connect to ttyS4 (due to NCS2/OpenVINO not able to be run with sudo) so I added my user to dialout group, this issue was resolved.
I have an ESP8266 12f connected to 5v (also tried 3.3) of the board and rx tx. When the ESP receives data from an MQTT broker it prints the data to serial. I am unable to receive this data on the UP2.
After trying to resolve myself I have followed:
Now I have permissions issues again, the changes here changed the group from dialout to tty and owner root, I have added my user to both root and tty and I still get permissions issues.
When I run the program as root (sudo) the NCS2 and OpenVINO will not work, but I can access serial (it seems) however, I am back to the beginning, when data is sent to the ESP8266, nothing comes through to the UP2. All I receive is empty bytes b''.
Please could someone suggest a quick fix for this. Thanks in advance.