Python Serial_Communication - GeorgiaTech-DDI/makerspace_iot GitHub Wiki
Python Alternative Method for Serial Communication
Due to Node-RED permissions issues, Node-RED cannot access the USB0 port without full access to the BBB. This would lead to a major security risk as an external user will have full access to the BBB. Hence, in order to communicate data between the BBB and the Teensy, the root or the BeagleBone user must be the one accessing it. To achieve this we use a python script that we can continuously while the BBB is turned on. The following steps are to show the process of getting the data communication set up.
- Update any package information.
sudo apt-get update
- Install minicom.
sudo apt-get install minicom
- Set minicom settings to the correct configuration.
sudo minicom -s
-
When configured, exit the menu to get access to the data.
-
Run this python file on the beagle bone to turn on the serial communication.
-
After receiving data, run the main file which starts the sending of received data to IoT Core.