MMDVM Hat won't RX in Duplex Mode

MMDVM_HS Hat hardware
User avatar
m0guy
Posts: 26
Joined: Mon May 04, 2020 12:57 pm
Contact:

Re: MMDVM Hat won't RX in Duplex Mode

Post by m0guy »

ok ignore the last it was due to my firewall blocking.. still not updating though.

RPT_Hat-19.2mhz.bin: OK
Flashing MMDVM_RPT_Hat
stm32flash 0.6

http://stm32flash.sourceforge.net/

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

stm32flash 0.6

http://stm32flash.sourceforge.net/

Using Parser : Raw BINARY
Interface serial_posix: 57600 8E1
Failed to init device.
-----------------------------
DMR Help: https://help.m0guy.com
Personal web: https://m0guy.com
g7kbr
Posts: 73
Joined: Thu Nov 01, 2018 1:03 pm

Re: MMDVM Hat won't RX in Duplex Mode

Post by g7kbr »

KE7FNS wrote:
m7guy wrote: Sun Jul 11, 2021 12:02 pm Failed to init device.
You need to connect JP1.

Also it is unadvised to update to the latest firmware. The POG board has been deprecated and is no longer supported.
https://groups.io/g/OpenDV/message/367
Is their a version of firmware which works with pi-star. I know that MMDVMHOST had been updated. I suppose the versions have to be compatible.


Sent from my iPhone using Tapatalk
User avatar
m0guy
Posts: 26
Joined: Mon May 04, 2020 12:57 pm
Contact:

Re: MMDVM Hat won't RX in Duplex Mode

Post by m0guy »

Thanks for all the guidance.. after looking at the circuit diagram etc I discovered the jp1 jumper, and your message confirmed it, I've been able to flash the updates.

Rather annoyingly the flashing software will happily attempt to flash anything to the MMDVM board, and so I was able to flash a too current a version which failed to complete the flashing. It stopped at 82% complete. Clearly not enough to run correctly.

Luckily the flashing software allows you to flash anything to it, and I was able to find an older version of the code and flash that. I did move the /etc/mmdvm.host file out of the way so that pi-star doesn't try to start the MMDVM service, which causes the mmdvm to stop waiting for firmware. This meant that I could power cycle the pi and MMDVM board with JP1 shorted to get it into flashing mode. Without this the pi-star will reset the MMDVM and take it out of this mode often before the flashing is ready to be applied.

I've not yet ventured into compiling the code myself though I think I'll take a look at doing this. Most likely I'll build a docker container to do it, that way I can control all the necessary dependancies without messing up my desktop environment.
-----------------------------
DMR Help: https://help.m0guy.com
Personal web: https://m0guy.com
g7kbr
Posts: 73
Joined: Thu Nov 01, 2018 1:03 pm

Re: MMDVM Hat won't RX in Duplex Mode

Post by g7kbr »

m7guy wrote:Thanks for all the guidance.. after looking at the circuit diagram etc I discovered the jp1 jumper, and your message confirmed it, I've been able to flash the updates.

Rather annoyingly the flashing software will happily attempt to flash anything to the MMDVM board, and so I was able to flash a too current a version which failed to complete the flashing. It stopped at 82% complete. Clearly not enough to run correctly.

Luckily the flashing software allows you to flash anything to it, and I was able to find an older version of the code and flash that. I did move the /etc/mmdvm.host file out of the way so that pi-star doesn't try to start the MMDVM service, which causes the mmdvm to stop waiting for firmware. This meant that I could power cycle the pi and MMDVM board with JP1 shorted to get it into flashing mode. Without this the pi-star will reset the MMDVM and take it out of this mode often before the flashing is ready to be applied.

I've not yet ventured into compiling the code myself though I think I'll take a look at doing this. Most likely I'll build a docker container to do it, that way I can control all the necessary dependancies without messing up my desktop environment.
Hi

Could you share the bin/Hex file for the POG MMDVM board?

Regards

Paul


Sent from my iPhone using Tapatalk
User avatar
m0guy
Posts: 26
Joined: Mon May 04, 2020 12:57 pm
Contact:

Re: MMDVM Hat won't RX in Duplex Mode

Post by m0guy »

At the moment the firmware I installed has a TXO of 12Mhx but my board was 19 so it's not going to work :(

i'm currently working through this document: http://wiki.pistar.uk/Headless_MMDVM_Firmware_Building to build the right versions. As a first pass I'm building the latest. I can then work back to find the last that will build and fit in the space.

btw I had to add a for SAM as the script installs sam/1.6.12 but the build expects 1.6.11

cd ~/.arduino15/packages/arduino/hardware/sam/
ln -s 1.6.12 1.6.11
-----------------------------
DMR Help: https://help.m0guy.com
Personal web: https://m0guy.com
User avatar
m0guy
Posts: 26
Joined: Mon May 04, 2020 12:57 pm
Contact:

Re: MMDVM Hat won't RX in Duplex Mode

Post by m0guy »

Sorry for the delay.. I temp lost access to my forum account (I changed some settings )

Attached is the latest version of the firmware which I found deep searching the internet. This version works on my POG boards.

I've also attached a docker script which follows your procedure to compile the last version to work, and in fact it does compile the firmware just fine, however when I load it into the POG board it knight riders and appears to be ready, however

Code: Select all

sudo pistar-findmodem
doesn't find it. I'm guess I've a miss configuration in the Config.h file or using a too new a library file.
-----------------------------
DMR Help: https://help.m0guy.com
Personal web: https://m0guy.com
g7kbr
Posts: 73
Joined: Thu Nov 01, 2018 1:03 pm

Re: MMDVM Hat won't RX in Duplex Mode

Post by g7kbr »

m0guy wrote:Sorry for the delay.. I temp lost access to my forum account (I changed some settings )

Attached is the latest version of the firmware which I found deep searching the internet. This version works on my POG boards.

I've also attached a docker script which follows your procedure to compile the last version to work, and in fact it does compile the firmware just fine, however when I load it into the POG board it knight riders and appears to be ready, however

Code: Select all

sudo pistar-findmodem
doesn't find it. I'm guess I've a miss configuration in the Config.h file or using a too new a library file.
Does the building convert the code into HEX file? For uploading via pi-star command? Thanks for sharing this.


Sent from my iPhone using Tapatalk
User avatar
m0guy
Posts: 26
Joined: Mon May 04, 2020 12:57 pm
Contact:

Re: MMDVM Hat won't RX in Duplex Mode

Post by m0guy »

The build script builds everything and leaves it in the docker image. I then copy out the file I want which yes is the hex file.

Install Docker Desktop to get started..

Code: Select all

docker build -t mmdvm . && docker run mmdvm cat bin/mmdvm.hex > mmdvm.hex
The first half of the command does the building of the firmware.. the "docker run" part starts the image to allow you to copy the file you want out.

If you want to play inside the docker container, maybe change some files or recompile then you can with:

Code: Select all

docker run -ti build bash
This will drop you into a bash prompt inside the container. NOTE when you leave the container it's stopped and no changes will be retained, so you can screw it up as much as you like, stop it and restart and your back to the beginning again. If you want changes to remain then you need to adjust the "Dockerfile".
-----------------------------
DMR Help: https://help.m0guy.com
Personal web: https://m0guy.com
g7kbr
Posts: 73
Joined: Thu Nov 01, 2018 1:03 pm

Re: MMDVM Hat won't RX in Duplex Mode

Post by g7kbr »

m0guy wrote:Sorry for the delay.. I temp lost access to my forum account (I changed some settings )

Attached is the latest version of the firmware which I found deep searching the internet. This version works on my POG boards.

I've also attached a docker script which follows your procedure to compile the last version to work, and in fact it does compile the firmware just fine, however when I load it into the POG board it knight riders and appears to be ready, however

Code: Select all

sudo pistar-findmodem
doesn't find it. I'm guess I've a miss configuration in the Config.h file or using a too new a library file.
Does your hex file work ok? I see you mention an issue?


Sent from my iPhone using Tapatalk
User avatar
m0guy
Posts: 26
Joined: Mon May 04, 2020 12:57 pm
Contact:

Re: MMDVM Hat won't RX in Duplex Mode

Post by m0guy »

no the one I compile doesn't work... well pistar-findmodem doesn't see it. The HEX I posted does work fine though.

I'm still tinkering with the build to try and figure out what's wrong.
-----------------------------
DMR Help: https://help.m0guy.com
Personal web: https://m0guy.com
Locked