Just a quick post for anyone using the OpenGD77 as a Hotspot connected to BlueDV on the PC
I’ve resolved the problem where BlueDV set both the frequency and power of the hotspot to zero when the “DMR” button was pressed.
The problem was a combination of 2 things.
- BlueDV seems to send the Set Frequency command twice. Once when BlueDV initially connects to the radio, and once when the DMR mode is enabled.
The data in the first Set Frequency command is correct, however the data in the Set Frequency command that is sent when the DMR mode button is enabled seems to be invalid, because the fields which normally contain the Tx and Rx frequencies and also the power, are filled with zeros.
I’m not sure if this is a bug in BlueDV, or whether there there is a reason the Set Frequency is sent with zero’s for all values, but either way it caused problems in my Hotspot firmware, because I didn’t expect the “host” to send what appears to be invalid data.
- My Hotspot firmware had a bug, where i used the master Rx and Tx variables to store the data from the Set Frequency command, before I had checked whether the values for Tx frequency and Rx frequency were valid.
Consequentially, even though I send a reject back to BlueDV when I had decoded the Rx and Tx frequencies, to indicate to BlueDV that I thought the frequencies were not valued, I’d already stored the value of 0Hz into both the master frequency values, and hence why the screen end up showing 0Hz with a small rounding error since the frequency of 0Hz is not valid
I’ve now fixed the bug in my code, and the firmware now ignores the invalid frequencies and power settings sent by the second Set Frequency command.
I’ve changed the Hotspot version number to v0.0.6, and also to save confusion about the overall OpenGD77 firmware version, I’ve removed the master version number which was V0.3.5, from the Firmware info screen and replaced it with my callsign “VK3KYY”, so that its obvious that this firmware is quite different from the last formal release which Kai did from his HamDV account on GitHub.
As I continue with the firmware development, the best indication of the overall firmware version will be the date as show on the Firmware info screen, and I will update the Hotspot version number, visible in PiStar if changes are made to the Hotspot functionality.
This new version of firmware can be downloaded from the same location as the previous version https://github.com/rogerclarkmelbourne/OpenGD77/raw/master/firmware_binaries/daily_builds/firmware.sgl
I have also tested this new version on my Android phone, by following the instructions by Riku OH1E in his Youtube video, and it worked OK. But I did have some occasional problems, where BlueDV seemed to indicate it was receiving a signal from the net but the OpenGD77 did not transmit.
At the moment I don’t have time to investigate why the Android app didn’t work perfectly, because I am focusing my efforts into making the OpenGD77 firmware support DMR Tier2.