M138 Rebooting...

HI

I buy a new M138, and now I get data on the RS232 port…

The red led is on, then the red get off and the green LED is on for 4 sec, flashing and it start at the beginning.

I get on RS232:

==========================================

Checking image MD5 in STM32 flash… valid

Identifying SPI flash… FOUND (Mfr 0x9d ISSI Type 0x6017)

Checking image MD5 in SPI flash… INVALID

Transferring control to application…

[0m$M138 BOOT,POWERON,Swarm M138 (M138)*44

$M138 BOOT,POWERON,Copyright (c) 2019-22 Swarm Technologies, Inc*2d

$M138 BOOT,POWERON,LPWR=n,WWDG=n,IWDG=n,SFT=n,BOR=Y,PIN=Y,OBL=n*43

$M138 BOOT,VERSION,2022-05-16T21:45:08,v2.0.2*2f

$M138 BOOT,DEVICEID,DI=0x0033cf*29

$M138 BOOT,RUNNING*2a

[0m

Swarm MPCIE (MPCIE) Bootloader

Copyright (c) 2019-22 Swarm Technologies, Inc

Version: 2022-05-16T21:46:13,v2.0.0

Checking image MD5 in STM32 flash… valid

Identifying SPI flash… FOUND (Mfr 0x9d ISSI Type 0x6017)

Checking image MD5 in SPI flash… INVALID

Transferring control to application…

[0m$M138 BOOT,POWERON,Swarm M138 (M138)*44

$M138 BOOT,POWERON,Copyright (c) 2019-22 Swarm Technologies, Inc*2d

$M138 BOOT,POWERON,LPWR=n,WWDG=n,IWDG=n,SFT=n,BOR=Y,PIN=Y,OBL=n*43

$M138 BOOT,VERSION,2022-05-16T21:45:08,v2.0.2*2f

$M138 BOOT,DEVICEID,DI=0x0033cf*29

$M138 BOOT,RUNNING*2a

[0m

Swarm MPCIE (MPCIE) Bootloader

Copyright (c) 2019-22 Swarm Technologies, Inc

Version: 2022-05-16T21:46:13,v2.0.0

Checking image MD5 in STM32 flash… valid

Identifying SPI flash… FOUND (Mfr 0x9d ISSI Type 0x6017)

Checking image MD5 in SPI flash… INVALID

Transferring control to application…

==========================================

What can I do?

Thanks

Hi @grisu,

Please tell us what you mean by “RS232 port”. Do you mean the serial data via USB? Or are you connecting to the TXO and RXI pins directly?

This sounds like a power issue. Please check that whatever is powering the board can deliver enough current. If you are connecting via USB, please try a USB-3 or USB-C port.

I hope this helps,

Paul

Yes, /dev/ttyUSB0 (serial data via USB)

I power the Board per USB-C on my Laptop.

You see the output: ‘Checking image MD5 in SPI flash… INVALID’ ?

Is there a gap in time between

$M138 BOOT,RUNNING*2a

and the next

[0m

Swarm MPCIE (MPCIE) Bootloader

? Or is it instantaneous?

There is some extra information here which may help:

https://forum.sparkfun.com/viewtopic.ph … 78#p239478

If you are able to, please try resetting the modem using:

"

  • Issue the $RS deletedb*3E command again

  • Wait for the modem to restart and power up again

  • Wait for the $M138 BOOT,RUNNING*2a unsolicited message

  • Issue the $PO*1f command and wait for the modem to power down

  • Perform a full power reset of the device

"

I hope this helps,

Paul

PaulZC:
This sounds like a power issue. Please check that whatever is powering the board can deliver enough current. If you are connecting via USB, please try a USB-3 or USB-C port.

for the record:

Today I powered the modem on the breakout pins (GND and Vin) with 4V.

Max cur is 40-60mA… and the LEDs are the same…

PaulZC:
Is there a gap in time between

$M138 BOOT,RUNNING*2a

and the next

[0m

Swarm MPCIE (MPCIE) Bootloader

? Or is it instantaneous?

$M138 BOOT,VERSION,2022-05-16T21:45:08,v2.0.2*2f<\n>

wait 9sec (and green LED go on)

$M138 BOOT,DEVICEID,DI=0x0033cf*29<\n>

$M138 BOOT,RUNNING*2a<\n>

wait 0.5 sec

reboot…

PaulZC:
There is some extra information here which may help:

https://forum.sparkfun.com/viewtopic.ph … 78#p239478

If you are able to, please try resetting the modem using:

"

  • Issue the $RS deletedb*3E command again

  • Wait for the modem to restart and power up again

  • Wait for the $M138 BOOT,RUNNING*2a unsolicited message

  • Issue the $PO*1f command and wait for the modem to power down

  • Perform a full power reset of the device

"

I hope this helps,

Paul

I send ‘$RS deletedb*3E’ and after the next boot I get:

$M138 BOOT,POWERON,Copyright (c) 2019-22 Swarm Technologies, Inc*2d

$M138 BOOT,POWERON,LPWR=n,WWDG=n,IWDG=n,SFT=Y,BOR=n,PIN=Y,OBL=n*43

$M138 BOOT,VERSION,2022-05-16T21:45:08,v2.0.2*2f

$M138 DEBUG,[32m2000-01-01T00:18:39.218,[Boss],databaseCreateEx:1248: Creating database table outgoing.dbx[0m*6f

$M138 DEBUG,[32m2000-01-01T00:18:47.914,[Boss],databaseCreateEx:1274: Created database table outgoing.dbx[0m*0f

$M138 DEBUG,[32m2000-01-01T00:18:47.953,[Boss],databaseCreateEx:1248: Creating database table incoming.dbx[0m*62

$M138 DEBUG,[32m2000-01-01T00:18:56.507,[Boss],databaseCreateEx:1274: Created database table incoming.dbx[0m*01

$M138 BOOT,DEVICEID,DI=0x0033cf*29

$M138 BOOT,RUNNING*2a

now I try sending ‘$PO*1f’, If I send it after: …BOOT,VERSION,2022-05-16T21… , I get:

$M138 BOOT,POWERON,Copyright (c) 2019-22 Swarm Technologies, Inc*2d

$M138 BOOT,POWERON,LPWR=n,WWDG=n,IWDG=n,SFT=n,BOR=Y,PIN=Y,OBL=n*43

$M138 BOOT,VERSION,2022-05-16T21:45:08,v2.0.2*2f

$PO*1F

$M138 BOOT,DEVICEID,DI=0x0033cf*29

$M138 BOOT,RUNNING*2a

$PO OK*3b

$M138 BOOT,SHUTDOWN*65

and the modem ist waiting…

after power down/up, the modem is still rebooting…

And I am to slow, to send the PO command after ‘BOOT,RUNNING’…

any help?

Hi,

This is very strange. I’ve never seen an M138 behave in that way.

Please try loosening the screws by one turn, push the modem into the M.2 connector as far as the screws will allow, then re-tighten the screws. If that does not fix your issue, I can only apologise and ask you to return it.

Best wishes,

Paul

PaulZC:
This is very strange. I’ve never seen an M138 behave in that way.

Please try loosening the screws by one turn, push the modem into the M.2 connector as far as the screws will allow, then re-tighten the screws. If that does not fix your issue, I can only apologise and ask you to return it.

Ok, I remove the screws and fix the module with duct tape…

Now, the module don’t reboot… and I can communicate with the module per USB.

Thanks…

I still waiting for the first data in the hive…

Hi,

Thanks for the update. I’m glad your modem is working.

Please let me know if you need more help or advice.

Best wishes,

Paul