We have a R410 on an embedded ARM hardware. When plugged in, the serial device nodes do not come up. Running
modprobe usbserial vendor=0x05c6 product=0x90b2
gets three nodes: /dev/ttyUSB0
, /dev/ttyUSB1
, and /dev/ttyUSB2
populated.
Now I can run example-serial-interface.py
ok. But the example-send-message.py
will fail without getting a URC response to the socket write.
The bottom part of the failed command response is:
....
DEBUG: [AT+CGMM]
DEBUG: {AT+CGMM}
DEBUG: {SARA-R410M-02B}
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+CEREG?]
DEBUG: {AT+CEREG?}
DEBUG: {+CEREG: 2,1,"2B0C","1AE320C",8}
DEBUG: {}
DEBUG: {OK}
INFO: Connecting to: cloudsocket.hologram.io
INFO: Port: 9999
DEBUG: [AT+USOCR=6]
DEBUG: {AT+USOCR=6}
DEBUG: {+USOCR: 0}
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+USOCO=0,"cloudsocket.hologram.io",9999]
DEBUG: {AT+USOCO=0,"cloudsocket.hologram.io",9999}
DEBUG: {OK}
INFO: Connect socket is successful
INFO: Sending message with body of length 88
DEBUG: Send: b'C8912230102107853834 251690 569752 M\x01novam-0.9.0\x00TTOPIC1\x00TTOPIC2\x00Bone two three!\x00\x00'
DEBUG: [AT+UDCONF=1,1]
DEBUG: {AT+UDCONF=1,1}
DEBUG: {OK}
DEBUG: [AT+USOWR=b'0,88,"43383931323233303130323130373835333833342032353136393020353639373532204d016e6f76616d5f74656c75732d302e392e300054544f504943310054544f5049433200426f6e652074776f207468726565210000"']
DEBUG: {AT+USOWR=0,88,"43383931323233303130323130373835333833342032353136393020353639373532204d016e6f76616d5f74656c75732d302e392e300054544f504943310054544f5049433200426f6e652074776f207468726565210000"}
DEBUG: {+USOWR: 0,88}
DEBUG: {}
DEBUG: {OK}
DEBUG: [AT+UDCONF=1,0]
DEBUG: {AT+UDCONF=1,0}
DEBUG: {OK}
Traceback (most recent call last):
File "example-send-msg.py", line 44, in <module>
timeout = 3)
File "/root/hologram-python/Hologram/HologramCloud.py", line 112, in sendMessage
result = super().sendMessage(output, timeout)
File "/root/hologram-python/Hologram/CustomCloud.py", line 78, in sendMessage
resultbuf = self.network.send_message(message)
File "/root/hologram-python/Hologram/Network/Cellular.py", line 129, in send_message
return self.modem.send_message(data)
File "/root/hologram-python/Hologram/Network/Modem/Modem.py", line 251, in send_message
raise SerialError('Timeout occurred waiting for message status')
On a laptop I can get it to continue with the following response. That’s why I think the missing URC is the problem or directed related to the problem:
DEBUG: {}
DEBUG: {+UUSORD: 0,2}
DEBUG: URC! +UUSORD: 0,2
DEBUG: handleURC state: 0
DEBUG: [AT+UDCONF=1,1]
DEBUG: {AT+UDCONF=1,1}
DEBUG: {OK}
DEBUG: [AT+USORD=0,2]
DEBUG: {AT+USORD=0,2}
DEBUG: {}
DEBUG: {+USORD: 0,2,"3030"}
DEBUG: {OK}
DEBUG: [AT+UDCONF=1,0]
DEBUG: {AT+UDCONF=1,0}
DEBUG: {OK}
INFO: Sent.
DEBUG: [AT+USOCL=0]
DEBUG: {AT+USOCL=0}
DEBUG: {OK}
INFO: Socket closed.
RESPONSE MESSAGE: Message sent successfully
Any idea how to get it fixed?
I’ve noticed on the laptop, only two usb serial interfaces are created, not three. That might be related to the problem.
I’m also running ppp on this embedded hardware without a success. It could be related.