# Modem reboots during RS485 Port read and while modem is latched to network

**URL:** <https://forum.sierrawireless.com/t/modem-reboots-during-rs485-port-read-and-while-modem-is-latched-to-network/24813>\
**Category:** WP Series\
**Tags:** debug\
**Created:** [September 7, 2021, 1:16pm UTC](https://forum.sierrawireless.com/t/modem-reboots-during-rs485-port-read-and-while-modem-is-latched-to-network/24813 "2021-09-07T13:16:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishchan.2022](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@krishchan.2022](https://forum.sierrawireless.com/u/krishchan.2022)\
**Post date:** [September 7, 2021, 1:16pm UTC](https://forum.sierrawireless.com/t/modem-reboots-during-rs485-port-read-and-while-modem-is-latched-to-network/24813/1 "2021-09-07T13:16:12Z")

</div>

Hi ,  
The sierra modem reboots when below operations are performed concurrently,

1. Read data from RS485 port1
2. Modem is latched to the network.  
This reboots the entire system and no clue in the dmesg logs.  
Could someone help us in getting it resolved.

Thanks  
Chandra

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [September 7, 2021, 7:15pm UTC](https://forum.sierrawireless.com/t/modem-reboots-during-rs485-port-read-and-while-modem-is-latched-to-network/24813/2 "2021-09-07T19:15:32Z")

</div>

Which module are you using?

What do you mean by latching to the network?

Could this be a insufficient current problem?

---

<div class="post-metadata">

**Author:** ![krishchan.2022](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@krishchan.2022](https://forum.sierrawireless.com/u/krishchan.2022)\
**Post date:** [September 8, 2021, 4:53am UTC](https://forum.sierrawireless.com/t/modem-reboots-during-rs485-port-read-and-while-modem-is-latched-to-network/24813/3 "2021-09-08T04:53:39Z")

</div>

Hi ,  
We are using WP7xx module.  
The scenario is as follows,

1. Connect to the 4G network using airtel sim using WP7xx Module in one thread  
2.Keep communicating with RS485 port in onther thread.

After 3 minutes , the modem reboots without any clue.  
Thanks in Advance.  
Regards  
Chandra

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [September 8, 2021, 5:10am UTC](https://forum.sierrawireless.com/t/modem-reboots-during-rs485-port-read-and-while-modem-is-latched-to-network/24813/4 "2021-09-08T05:10:23Z")

</div>

you need to verify if TX or RX of RS485 makes this crash  
e.g.  
Just TX continuously and no RX, will it crash?  
Just RX and no output TX, will it crash?

Does this dependent on baud rate?

Also is your RS485 communication done in legato sandboxed application?

---

<div class="post-metadata">

**Author:** ![krishchan.2022](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@krishchan.2022](https://forum.sierrawireless.com/u/krishchan.2022)\
**Post date:** [September 8, 2021, 5:17am UTC](https://forum.sierrawireless.com/t/modem-reboots-during-rs485-port-read-and-while-modem-is-latched-to-network/24813/5 "2021-09-08T05:17:10Z")

</div>

Hi,  
We are reading from the RS485 port and no writes are bring done.  
We are using 115200 baudrate, I will check with other baudrates as well.I will get back to you soon on this.

Below are the AT commands we are using to communicate with the modem,  
#define RTR\_MDL “AT+GMM\r\0”  
#define RTR\_MFN “AT+GMI\r\0”  
#define RTR\_SN “AT+GSN\r\0”  
#define RTR\_FWV “AT+GMR\r\0”  
#define RTR\_CSQ “AT+CSQ\r\0”  
#define RTR\_PA\_TMP “AT!PATEMP?\r\0”  
#define RTR\_PC\_TMP “AT!PCTEMP?\r\0”

#define RTR\_SIM\_SPN “AT+CSPN\r\0”  
#define RTR\_SIM\_CCID “AT+CCID\r\0”  
#define RTR\_SIM\_IMSI “AT+CIMI\r\0”  
#define RTR\_GET\_RAT “AT!GETRAT?\r\0”  
#define RTR\_TTY\_SET “ATE1\r\0”  
#define RTR\_KSREP “AT+KSREP=1\r\0”  
#define RTR\_QRY\_KSREP “AT+KSREP?\r\0”

Thanks  
Chandra

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [September 8, 2021, 5:55am UTC](https://forum.sierrawireless.com/t/modem-reboots-during-rs485-port-read-and-while-modem-is-latched-to-network/24813/6 "2021-09-08T05:55:10Z")

</div>

Are you using uart1 for rs485 communication?  
Did you enable hardware flow control?

Are you using legato app?

---

<div class="post-metadata">

**Author:** ![krishchan.2022](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@krishchan.2022](https://forum.sierrawireless.com/u/krishchan.2022)\
**Post date:** [September 8, 2021, 7:14am UTC](https://forum.sierrawireless.com/t/modem-reboots-during-rs485-port-read-and-while-modem-is-latched-to-network/24813/7 "2021-09-08T07:14:36Z")

</div>

Hi,  
We are accessing RS485 port outside the legato. Our application doesnot use legato framework.  
yes we are using port1 which is UART1(port number starts from port 0).  
no\_flow\_control is being used.

Thanks  
Chandra

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [September 8, 2021, 7:52am UTC](https://forum.sierrawireless.com/t/modem-reboots-during-rs485-port-read-and-while-modem-is-latched-to-network/24813/8 "2021-09-08T07:52:08Z")

</div>

could it be your program actually has problem?

The legato application has sandboxed function, you can port to legato app and retry
