This part deals with the program that runs on the PC, any two or more devices can communicate, but the software provided by LPRS will only run on a PC. You should have downloaded and installed the EasyRadio Companion as detailed in part 1. Before running this software, and before plugging in a radio open up Control Panel, go to System Hardware and open up the COM port list. Make a note of the items listed then plug in a radio, Windows will install the necessary drivers. Once these have been installed the radio will show up as a USB serial port, make a note of the COM port number. Now run the EasyRadio companion
You will need to set up several parameters as the program does not do this automatically. Click on Settings in the top menu bar, then click RS232 Settings. Click on the radio button alongside Device 1, in the drop down box alongside Port select your COM port number (the correct port is NOT selected automatically). For the moment leave Baud set at 19200, Data Bits at 8, Stop Bits at 1 and Handshaking at None as these match the values in the Python sketch on the Raspberry Pi. Click on Store, then Exit.
Click on settings again, then Select Device, click on Device 1. Make sure UART Baud Rate is set to 19200 and click Update. Make sure Frequency Channel is set to C0 and click on Update.
Click on the button marked Send Command and the Device I’d will be shown. Click on Read Module and the Serial Number and date of manufacture will be shown. Make sure the tab ERA Modules is highlighted and click on the Communication tab.
Fit a radio to a Raspberry Pi and start up the Pi. Once the desktop is displayed start Idle and load the Python script that you downloaded in part one of this post. run the script.
Type something at the cursor and press enter, this text will appear on the PC in the large box on the Communication Test page. Now type something in the box marked -enter your text here-.
Nothing will appear on the Raspberry http://wp.me/p4Suyg-7jPi as the Python script is waiting for a keyboard entry, however the text sent from the PC has been stored. Type something into the Python script followed by enter. The contents of the received buffer will now be printed.
That’s is it, two way communication has been achieved!