Page 1 of 2

Upon reboot, the MMDVM must be updated

Posted: Sun Dec 06, 2020 3:05 pm
by IW9HJD
Hi, I have a weird problem with my Pi-Star, I assembled it with a Raspberry 4 only it doesn't see the TRX (SIMPLEX). It starts to work perfectly only after sending the command "sudo pistar-mmdvmhshatflash hs_hat" from the terminal by entering the section - Expert Editors - SSH Access, at this point it performs an update of the radio part and starts working correctly. The problem is that after turning it off, on restart it no longer finds the radio part and you have to repeat the procedure I just described. Any suggestions about it? Am I making some mistakes? Thanks in advance. Nino

Re: Upon reboot, the MMDVM must be updated

Posted: Mon Dec 07, 2020 12:01 pm
by IW9HJD
Thanks for the suggestion, tonight I try to send the command "sudo pistar-mmdvmhshatreset" and I check pin 44 to see if it is connected to ground.
Sorry, but pin 44 does not exist in Rasberry 4, there are only 40 pins!
If I can't get it to work, patience I'll buy a Raspberri 3+.
Thanks 73 IW9HJD Nino

Re: Upon reboot, the MMDVM must be updated

Posted: Mon Dec 07, 2020 4:17 pm
by AF6VN
IW9HJD wrote: Mon Dec 07, 2020 12:01 pm Thanks for the suggestion, tonight I try to send the command "sudo pistar-mmdvmhshatreset" and I check pin 44 to see if it is connected to ground.
Sorry, but pin 44 does not exist in Rasberry 4, there are only 40 pins!
NO R-Pi has a 44 pin header. All since the model 1B+ have 40 pin headers. However the prior poster said "PIN 44 of the STM" chip itself. You need to locate that pin on the chip, and do a circuit trace to wherever it ends up on the connector block.

Re: Upon reboot, the MMDVM must be updated

Posted: Mon Dec 07, 2020 5:06 pm
by IW9HJD
AF6VN wrote: Mon Dec 07, 2020 4:17 pm
IW9HJD wrote: Mon Dec 07, 2020 12:01 pm Thanks for the suggestion, tonight I try to send the command "sudo pistar-mmdvmhshatreset" and I check pin 44 to see if it is connected to ground.
Sorry, but pin 44 does not exist in Rasberry 4, there are only 40 pins!
NO R-Pi has a 44 pin header. All since the model 1B+ have 40 pin headers. However the prior poster said "PIN 44 of the STM" chip itself. You need to locate that pin on the chip, and do a circuit trace to wherever it ends up on the connector block.
I will never be able to find where pin 44 is connected.

Re: Upon reboot, the MMDVM must be updated

Posted: Mon Dec 07, 2020 6:56 pm
by G8SEZ
IW9HJD wrote: Mon Dec 07, 2020 5:06 pm
AF6VN wrote: Mon Dec 07, 2020 4:17 pm
IW9HJD wrote: Mon Dec 07, 2020 12:01 pm Thanks for the suggestion, tonight I try to send the command "sudo pistar-mmdvmhshatreset" and I check pin 44 to see if it is connected to ground.
Sorry, but pin 44 does not exist in Rasberry 4, there are only 40 pins!
NO R-Pi has a 44 pin header. All since the model 1B+ have 40 pin headers. However the prior poster said "PIN 44 of the STM" chip itself. You need to locate that pin on the chip, and do a circuit trace to wherever it ends up on the connector block.
I will never be able to find where pin 44 is connected.
The NRST pin of the STM32, pin 7 is connected to C16 and R7, the other end of R7 (10k) is connected to VDD (+3.3V). C16 is connected to GPIO connector pin40 (GPIO21).

Pin 44 of the STM32 (BOOT0) should be connected via a 10K series resistor to GPIO connector pin 38 (GPIO20). This 10K resistor (R1) is just under the right edge of the OLED display board.

These pins are in the silk screen box around the two top right GPIO pins with 20 and 21 above them.

I hope this helps you identify which signals to probe.

Re: Upon reboot, the MMDVM must be updated

Posted: Mon Dec 07, 2020 10:41 pm
by IW9HJD
KE7FNS wrote: Mon Dec 07, 2020 5:55 pm
IW9HJD wrote: Mon Dec 07, 2020 5:06 pm I will never be able to find where pin 44 is connected.
The arrow is pointing at pin 48, count down as you move up the left side of pins.

You'll probably have to unsolder the OLED to find a via where the trace moves to the backside of the PCB.

Eventually the trace winds up on pin 38 of the RPi GPIO (top row, 2nd from STARTING on the RIGHT) There are normally a couple of 10k resistors one in series between GPIO 38 and the STM32 and one that connects that trace to ground.



What does the MMDVMHost log report?

What do the LED's do on power up?

Did issuing the reset cause it to start working?


Also what is the output of these

Code: Select all

gpio read 20

Code: Select all

gpio read 21
After updating, all the modem LEDs flash three times.
After that the red LED flashes slowly and after almost a minute the red LED flashes quickly and everything starts to work well, throughout this period of time, the green LED is always on, a few times the red LED, before starting to flash quickly, even more than two minutes passes, but not always all this time passes.
I have tried three SD cards and three different power supplies, but the problem persists.
gipio read 20 is 0
gpio read 21 is 1
Thanks cordial greetings.
IW9HJD Nino

Re: Upon reboot, the MMDVM must be updated

Posted: Mon Dec 07, 2020 10:48 pm
by IW9HJD
G8SEZ wrote: Mon Dec 07, 2020 6:56 pm
IW9HJD wrote: Mon Dec 07, 2020 5:06 pm
AF6VN wrote: Mon Dec 07, 2020 4:17 pm

NO R-Pi has a 44 pin header. All since the model 1B+ have 40 pin headers. However the prior poster said "PIN 44 of the STM" chip itself. You need to locate that pin on the chip, and do a circuit trace to wherever it ends up on the connector block.
I will never be able to find where pin 44 is connected.
The NRST pin of the STM32, pin 7 is connected to C16 and R7, the other end of R7 (10k) is connected to VDD (+3.3V). C16 is connected to GPIO connector pin40 (GPIO21).

Pin 44 of the STM32 (BOOT0) should be connected via a 10K series resistor to GPIO connector pin 38 (GPIO20). This 10K resistor (R1) is just under the right edge of the OLED display board.

These pins are in the silk screen box around the two top right GPIO pins with 20 and 21 above them.

I hope this helps you identify which signals to probe.
Thanks for the suggestion but I am unable to locate these components, 10K resistor, sorry.
Thanks.

Re: Upon reboot, the MMDVM must be updated

Posted: Mon Dec 07, 2020 11:22 pm
by IW9HJD

Code: Select all

sudo pistar-mmdvmhshatreset
This is the result after sending the "sudo pistar-mmdvmhshatreset" command

Re: Upon reboot, the MMDVM must be updated

Posted: Tue Dec 08, 2020 10:31 am
by IW9HJD
KE7FNS wrote: Mon Dec 07, 2020 10:48 pm
IW9HJD wrote: Mon Dec 07, 2020 10:41 pm After updating, all the modem LEDs flash three times.
Not after updating, I mean from a complete power off. Do the LEDS on the hat flash 3 times when you power on the hotspot?

The red LED of the modem never lights up after a shutdown. It turns on steady after the update is finished. As soon as the procedure is completed, it flashes slowly, then it starts flashing quickly and everything works perfectly for days without any problems.

Thanks.

Re: Upon reboot, the MMDVM must be updated

Posted: Tue Dec 08, 2020 10:47 am
by IW9HJD
Well that explains why the RPi 4 detection isn't resetting the modem as required.

Set the modem configuration to

Code: Select all

MMDVM_HS_Hat (DB9MAT & DF2ET) for Pi (GPIO)
and try a reboot, then run the command again.
[/quote]

Tonight I'll try and let you know.
I take this opportunity to thank everyone.