Nov 15, 2019 10:42
@tlfong01 thanks for those comments :P. I would try to eliminate the Mission Planner in future and try to use cutecom to talk from Transmitter to receiver. I will try methods suggested by you and surely update you. Regards.
Nov 15, 2019 05:26
@tlfong01 I see. I shall update the steps I have followed to achieve the results. (1) following your comment "if you can talk to BT module, then you should also talk to FPV ground/air modules, IF they are also talking AT like commands.
", I tried talking to the FPV air module at the port '/dev/serial0' using the serial library. (2) I tested the python script 'serial_read.py', as given in the link https://pimylifeup.com/raspberry-pi-serial/ on my RPi4 terminal. (3) As I had already configured the Ground and Air module using the Mission Planner software, I tested sending 'hello' from the Miss
Nov 14, 2019 18:16
I have edited the answer. But the answer was deleted by a moderator and cannot be undeleted now. Should I Add Another answer?
Nov 14, 2019 16:53
Hi @tlfong01, Sorry was caught up with something else past few days. However, I resumed the experimentation today and was successful in achieving the goal. I will Post the answer in the original post. Thanks for your support and guidance. Appreciate it.
Nov 7, 2019 08:10
If we can read the data available on the UART port, then just decoding the data will be the task. What are your thoughts on these?
Nov 7, 2019 08:09
@tlfong01 Hi @tlfong01 . Thanks for the link, its accessible now. I went through the advance code. Few Questions regarding Test 4. (1) In order to test the code, do we need the IR emitter/receiver as explained in the setup section. (2) can i emulate it rather than having physical connection just to test. Apart from these, i had few thoughts regarding the UART. (1) If the air radio module is receiving data, where is the data stored? (2) Can we read the raw data available at the UART port on PI?
Nov 6, 2019 09:59
@tlfong01 The link is broken. I don't have a UART to USB converter in order to plug it into my laptop and experiment. I have ordered for one and might take a while until I get my hands dirty with that. However till then ill try to use Pi and do experiments. Also, I cannot access a scope mate :(, I would love to check the waveforms and understand the detailed working.
Nov 6, 2019 06:43
I figured out to make the python code for loopback testing work, by disabling the bluetooth in the /boot/config.txt file. Now I tested again with the minicom but it does not give the expected results. I would like to ask you, if the loopback script is enough to test the working of Rpi Uart ?
Nov 6, 2019 06:39
@tlfong01 The link is medium.com/@amitasinghchauhan/…
Nov 6, 2019 06:05
I was not convinced again and tried the answer on the link https://raspberrypi.stackexchange.com/questions/98840/rpi-uart-to-gps-module-connection-problem shared previously. I figured out the output is not exact as the serial_loopback_2019may2702.py code describes. The output is `Begin serialPortLoopBack() [Remember to connect Tx to Rx!] , ...
bytes written = b'AT\r\n'
bytes read = b''
End serialPortLoopBack(), ...` . changing the ports from /dev/serial0 to /dev/serial1, /dev/ttyS0 did not work. So, technically loopback test failed. I am not sure how to verify the loopback test fu
Nov 6, 2019 05:54
I was not convinced again and tried the answer on the link https://raspberrypi.stackexchange.com/questions/98840/rpi-uart-to-gps-module-connection-problem shared previously. I figured out the output is not exact as the serial_loopback_2019may2702.py code describes. The output is `Begin serialPortLoopBack() [Remember to connect Tx to Rx!] , ...
bytes written = b'AT\r\n'
bytes read = b''
End serialPortLoopBack(), ...`
Nov 6, 2019 05:51
@tlfong01 Hi @tlfong01, I tried to loopback/connect to the air radio module on Rpi Uart. I installed minicom and followed this link [medium.com/@amitasinghchauhan/… . However, the result was not as expected. I was not getting hello world on the terminal. So i tried using screen and minicom for testing. I was successful upto some extent, as whatever i type was displayed on the minicom terminal as well as screen terminal.
Nov 5, 2019 14:16
Ok give me some time, I'll try to talk to airmodule using loopback on raspberry pi using minicom (similar to teraterm). Ill test and give the feedback.
Nov 5, 2019 14:16
I did not know about the comments part. I completely agree with you.
Nov 5, 2019 14:16
I have experience with Teraterm, At commands used for testing blue tooth module. I have not worked with 433MHz RF12. Can we have conversation over email?
Nov 5, 2019 14:16
I have experience with python 3.7 language. Have worked with arduino, gsm800 interfacing with arduino. Blue tooth. I don't know to test the loopback part.
Nov 5, 2019 14:16
I agree with the suggestion. My ultimate goal is to decode the data received from the ground module using Rpi > UART > Air Radio Module.
Nov 5, 2019 14:16
Hi @tlfong01. Thanks for sharing the good resource. I went through the basic concepts which led me to Sik telemetry section giving a tutorial of connecting the radios to TELEM1 port of the controller such as Pixhawk/Navio and proceeding further with build instructions. The problem is I don't have the Pixhawk/Navio controller board. I am trying to interface the airmodule radio directly to the Pi board (Without controller board) and read the data. Please let me know, if I can achieve this without a controller board or It is must to have the controller board in order to proceed.
Nov 5, 2019 14:16
Hi @tlfong01, Your understanding is correct. I want to display the message <HELP> sent from ground module (using mission planner) on the Raspberry pi terminal at air module end. The 1st web link shared by you is the radios I am using. I am not following any specific tutorial/ guide. Its just bits and pieces from the internet which we followed and made upto basic stage of connecting the radios and verifying it.