Page 1 of 1

Pi-Star Cannot Read Modem's Firmware Version

Posted: Fri Jan 10, 2020 9:10 pm
by KG4OPX
I am running 4.19.75-v7+ on a Pi 3 Model B+ (1GB) - Sony, UK.

I am using STM32-DVM / MMDVM_HS - Raspberry Pi Hat (GPIO) form the modem as suggested. The problem is that the when Pi-Starts it cannot read the modem firmware.

E: 2020-01-10 19:52:23.572 Unable to read the firmware version after six attempts
: 2020-01-10 19:52:10.752 This software is for use on amateur radio networks only,
I: 2020-01-10 19:52:10.752 it is to be used for educational purposes only. Its use on
I: 2020-01-10 19:52:10.752 commercial networks is strictly prohibited.
I: 2020-01-10 19:52:10.752 Copyright(C) 2015-2018 by Jonathan Naylor, G4KLX and others
M: 2020-01-10 19:52:10.752 MMDVMHost-20191122_Pi-Star-v4 is starting
M: 2020-01-10 19:52:10.752 Built 11:05:01 Nov 22 2019 (GitID #ed7f593)
I: 2020-01-10 19:52:10.752 General Parameters
I: 2020-01-10 19:52:10.752 Callsign: KG4OPX
I: 2020-01-10 19:52:10.752 Id: 3137342
I: 2020-01-10 19:52:10.752 Duplex: no
I: 2020-01-10 19:52:10.752 Timeout: 240s
I: 2020-01-10 19:52:10.752 D-Star: disabled
I: 2020-01-10 19:52:10.752 DMR: enabled
I: 2020-01-10 19:52:10.752 YSF: disabled
I: 2020-01-10 19:52:10.752 P25: disabled
I: 2020-01-10 19:52:10.752 NXDN: disabled
I: 2020-01-10 19:52:10.752 POCSAG: disabled
I: 2020-01-10 19:52:10.752 Modem Parameters
I: 2020-01-10 19:52:10.752 Port: /dev/ttyAMA0
I: 2020-01-10 19:52:10.752 Protocol: uart
I: 2020-01-10 19:52:10.752 RX Invert: no
I: 2020-01-10 19:52:10.752 TX Invert: yes
I: 2020-01-10 19:52:10.752 PTT Invert: no
I: 2020-01-10 19:52:10.752 TX Delay: 100ms
I: 2020-01-10 19:52:10.752 RX Offset: 0Hz
I: 2020-01-10 19:52:10.752 TX Offset: 0Hz
I: 2020-01-10 19:52:10.752 RX DC Offset: 0
I: 2020-01-10 19:52:10.752 TX DC Offset: 0
I: 2020-01-10 19:52:10.752 RF Level: 100.0%
I: 2020-01-10 19:52:10.752 DMR Delay: 0 (0.0ms)
I: 2020-01-10 19:52:10.752 RX Level: 50.0%
I: 2020-01-10 19:52:10.752 CW Id TX Level: 50.0%
I: 2020-01-10 19:52:10.752 D-Star TX Level: 50.0%
I: 2020-01-10 19:52:10.752 DMR TX Level: 50.0%
I: 2020-01-10 19:52:10.752 YSF TX Level: 50.0%
I: 2020-01-10 19:52:10.752 P25 TX Level: 50.0%
I: 2020-01-10 19:52:10.752 NXDN TX Level: 50.0%
I: 2020-01-10 19:52:10.752 POCSAG TX Level: 50.0%
I: 2020-01-10 19:52:10.752 RX Frequency: 441000000Hz (441000000Hz)
I: 2020-01-10 19:52:10.752 TX Frequency: 441000000Hz (441000000Hz)
M: 2020-01-10 19:52:10.753 Opening the MMDVM
E: 2020-01-10 19:52:23.572 Unable to read the firmware version after six attempts

Re: Pi-Star Cannot Read Modem's Firmware Version

Posted: Sat Jan 11, 2020 7:56 pm
by G8SEZ
Suggest you try again with:

MMDVM_HS_HAT (DB9MAT&DF2ET) for Pi (GPIO)

selected for the Radio/Modem type.

Re: Pi-Star Cannot Read Modem's Firmware Version

Posted: Sun Jan 12, 2020 12:52 am
by KG4OPX
Hi Brian,

Tried it and have the same results. There must be some type of hardware conflict. I tried to upgrade the firmware but the modem cannot be initialized. I have no idea why Arduino shows up.


Raspberry Pi 3 detected
stm32flash Arduino_STM32_0.9

http://github.com/rogerclarkmelbourne/arduino_stm32

Using Parser : Raw BINARY
Interface serial_posix: 57600 8E1
Failed to init device.


Rob - KG4OPX

Re: Pi-Star Cannot Read Modem's Firmware Version

Posted: Sun Jan 12, 2020 4:13 pm
by G8SEZ
Can you post some pics of the radio/modem, might help to identify what it is.

Re: Pi-Star Cannot Read Modem's Firmware Version

Posted: Mon Jan 13, 2020 12:07 pm
by n9mxq
Are pins 38 and 40 connected between the MMDVM and the PI? Failed to Init usually means they're not.

Re: Pi-Star Cannot Read Modem's Firmware Version

Posted: Wed Jan 15, 2020 2:06 am
by KG4OPX
A picture is attached.

Rob

Re: Pi-Star Cannot Read Modem's Firmware Version

Posted: Wed Jan 15, 2020 11:32 am
by KN2TOD
Try building out your system with a fresh image.

(Had a similar situation where connection to the firmware/hat seemed to have been lost and feared the firmware might have been fried. On a lark, and as a last restore, started from scratch with a new image and viola! Apparently, some file or other got corrupted or deleted during one of the various updates and a refresh is the only way out.)

Re: Pi-Star Cannot Read Modem's Firmware Version

Posted: Wed Jan 15, 2020 3:18 pm
by G8SEZ
The latest schematic is shown at the link below:

https://github.com/mathisschmieder/MMDV ... hs-hat.pdf

You can see that pins 38 and 40 of the GPIO connector are connected to the STM32 CPU. Worth checking that they are actually connected.

One other thing I can suggest is that if the ADF7021 clock is not present, often due to the TCXO soldering being poor, then the radio doesn't respond. I would check that there is a waveform on the ADF7021 clock input, but that is under the OLED display so not that easy to reach.

Re: Pi-Star Cannot Read Modem's Firmware Version

Posted: Mon Jan 20, 2020 10:53 pm
by KG4OPX
I returned the modem to Amazon for a full refund. I guess I will buy a complete setup.

Rob