Upon reboot, the MMDVM must be updated

General support for the Pi-Star System
IW9HJD
Posts: 9
Joined: Fri Dec 04, 2020 5:19 pm

Upon reboot, the MMDVM must be updated

Post 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
Attachments
Log Hotspot errore MMDVM.png
Log Hotspot errore MMDVM.png (180.76 KiB) Viewed 3056 times
Hotspot.jpg
Hotspot.jpg (244.4 KiB) Viewed 3058 times
IW9HJD
Posts: 9
Joined: Fri Dec 04, 2020 5:19 pm

Re: Upon reboot, the MMDVM must be updated

Post 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
Attachments
IMG_20201207_125528.jpg
IMG_20201207_125528.jpg (147.21 KiB) Viewed 2995 times
IMG_20201207_125513.jpg
IMG_20201207_125513.jpg (186.75 KiB) Viewed 2995 times
AF6VN
Posts: 821
Joined: Fri Jul 20, 2018 1:15 am

Re: Upon reboot, the MMDVM must be updated

Post 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.

--
AF6VN
Dennis L Bieber
IW9HJD
Posts: 9
Joined: Fri Dec 04, 2020 5:19 pm

Re: Upon reboot, the MMDVM must be updated

Post 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.
Attachments
Pin 44.jpg
Pin 44.jpg (92.88 KiB) Viewed 2970 times
User avatar
G8SEZ
Posts: 598
Joined: Fri Apr 13, 2018 8:26 pm

Re: Upon reboot, the MMDVM must be updated

Post 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.
--

Brian G8SEZ
IW9HJD
Posts: 9
Joined: Fri Dec 04, 2020 5:19 pm

Re: Upon reboot, the MMDVM must be updated

Post 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
Attachments
gpio read.png
gpio read.png (176.66 KiB) Viewed 2942 times
IW9HJD
Posts: 9
Joined: Fri Dec 04, 2020 5:19 pm

Re: Upon reboot, the MMDVM must be updated

Post 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.
IW9HJD
Posts: 9
Joined: Fri Dec 04, 2020 5:19 pm

Re: Upon reboot, the MMDVM must be updated

Post by IW9HJD »

Code: Select all

sudo pistar-mmdvmhshatreset
This is the result after sending the "sudo pistar-mmdvmhshatreset" command
Attachments
sudo pistar-mmdvmhshatreset.png
sudo pistar-mmdvmhshatreset.png (205.95 KiB) Viewed 2471 times
IW9HJD
Posts: 9
Joined: Fri Dec 04, 2020 5:19 pm

Re: Upon reboot, the MMDVM must be updated

Post 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.
IW9HJD
Posts: 9
Joined: Fri Dec 04, 2020 5:19 pm

Re: Upon reboot, the MMDVM must be updated

Post 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.
Post Reply