Sending AT Commands to radio module #336
Replies: 1 comment 3 replies
-
Hi Jay, It is possible to modify the code to program the SR105U (also known as the FR_SRS_05W), U6 in the STEM Payload Beta v1.3.2 schematic. I have used the program_radio function in main.c (beta branch) in the past, but right now, I use this python code in rpitx.py (beta branch) which operates the same:
I used the documentation in http://www.kh-gps.de/sr_frs.pdf although many functions don't seem to be implemented. I also found this code, although I haven't tried it: https://github.com/sp2ong/SRFRS The Raspberry Pi serial Transmit Data (PI_TXD in the schematic) for the Beta STEM Payload Board is connected to the RXD pin on the SR105U. The python code above can change the transmit or receive frequency or set squelch, PL codes, etc. I have found that many other functions documented, such as microphone level or power output do not seem to be implemented. The TXD pin on the SR105U is not wired to the Raspberry Pi serial port PI_RXD since the Pi Zero has only one UART and we need that pin to receive the sensor data sent by the Raspberry Pi Pico processor. Right now, the TXD pin on the SR105U is not wired to anything in the v1.3.2.4 or earlier STEM Payload PCBs. In the next version, I'll add a PCB jumper so you could connect it to the PI_RXD pin if you wanted to. For now, you could wire this to the Raspberry Pi PI_RXD pin (J1, GPIO pin 10) and then as long as the Pico was not plugged in or GP0 (pin 1) was set to input, you would be able to read the output from the SR105U. I did experiment with this a while back, but I didn't reliably receive messages from the SR105U and it wasn't useful to confirm that a command was received. Instead, I just send the same command 5 times in a row and that seems to work OK. I'd be interested in learning if you unlock additional features and capabilities in the SR105U through your experiments! Alan |
Beta Was this translation helpful? Give feedback.
-
Hello Alan,
I'm trying to send AT commands to radio module SU105U to get a full control of it. I'm modifying your 'program_radio' function in 'main.c ' and implementing 'write()' to send command to radio module through serial port 'dev/ttyAMA0'.
However, it's not working as expected. What I'm assuming is the serial port may not be connected to SU105U. I'm wondering if there will be solution to send AT commands. Piece of code that I can reference for receiving data will be also helpful.
Thank you in advance.
-Jay
Beta Was this translation helpful? Give feedback.
All reactions