Connectivity issue :Nova + Raspberry pi 3, some amount of time : "Socket error: timed out"


#1

Hello,

I am using a Nova modem:
pi@raspberrypi:~ $ sudo hologram modem connect -v
INFO: Detected modem Nova_U201
INFO: found working port at /dev/ttyACM0
INFO: chatscript file: /usr/local/lib/python2.7/dist-packages/Hologram/Network/Modem/chatscripts/default-script
INFO: Instantiated a Nova_U201 interface with device name of /dev/ttyACM0
INFO: Connecting to cell network with timeout of 200 seconds
INFO: Checking for existing PPP sessions
INFO: Rerouting packets to ppp0 interface
INFO: found working port at /dev/ttyACM1
INFO: Successfully connected to cell network

on a Raspberry Pi 3
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux

with hologram Sim card :
Card No: 8944502407175477695

My hologram SDK version is:
pi@raspberrypi:/ $ sudo hologram version
0.7.4

Detected the network operation is:
pi@raspberrypi:/ $ sudo hologram modem operator
Operator: CHINA MOBILE

The single stress
pi@raspberrypi:/ $ sudo hologram modem signal
Signal strength: 31,99

I am trying to test the connectivity and stable. I transmit data from a cloud server through API via a python script. At the beginging it seems work fine:

receive the data in raspberry whith CLI
pi@raspberrypi:~ $ sudo hologram receive
Ready to receive data on port 4010
Received message: {“FromUserName”: oeayuwQq51qM-DhDqTfVnt0a7mqI, “CreateTime”: 1516182321, “EventKey”: Fetch}

but after some amount of time the raspberry lost receive data from servers. check the terminal is alive.

In this situation we try to send massage for Hologram Dashboard, it lost too!

Check the Hologram Console the lost Data log is looks like this:
Socket error: timed out
Jan 20 2018, 11:51:27
VIEW RAW
{“success”:true,“data”:{“id”:4731416,“logged”:“2018-01-20 03:51:27.797543”,“orgid”:9106,“deviceid”:156572,“record_id”:"3157f488-fd95-11e7-bd8e-

bc764e201e20",“device_metadata”:"{}",“data”:"{“received”: “2018-01-20T03:51:27.652415”, “authtype”: “deviceid”, “tags”: [“TAG_1041”, “DEVICE_156572”, “API_RESP”], "device_name

": “Unnamed Device (77695)”, “source”: 156572, “messageid”: “91590986-d6d0-4ff7-9a18-c8b2cce96f97”, “record_id”: “3157f488-fd95-11e7-bd8e-bc764e201e20”, “data”:

“U29ja2V0IGVycm9yOiB0aW1lZCBvdXQ=”, “device_id”: 156572}",“matched_rules”:[],“tags”:[“API_RESP”,“DEVICE_156572”,“TAG_1041”]}}

Use Ctrl + C stop Hologram CLI receive session ,and test ppp connect again:
pi@raspberrypi:~ $ sudo hologram modem connect -v
INFO: Detected modem Nova_U201
INFO: found working port at /dev/ttyACM0
INFO: chatscript file: /usr/local/lib/python2.7/dist-packages/Hologram/Network/Modem/chatscripts/default-script
INFO: Instantiated a Nova_U201 interface with device name of /dev/ttyACM0
INFO: Connecting to cell network with timeout of 200 seconds
INFO: Checking for existing PPP sessions
INFO: Rerouting packets to ppp0 interface
INFO: found working port at /dev/ttyACM1
INFO: Successfully connected to cell network

That’s OK !

Disconnect PPP connection and repeat Hologram CLI receive session , all thing about send from server and receive to the raspberry look like is OK.

Is there anything you can tell me about this situation or a way to properly debug? I often times need to keep a connection allways to receive data from server, so having any data lost is detrimental.

Thanks!


#2

Are you using WiFi or plugged in Ethernet cable?

I found I needed a vey good power source - AND I had to be using WiFi - NOT Ethernet


#3

Thanks !
I have readed your reply with other topic before. So i have try to stop wifi and disconnect the Ethernet cable, but it’ s the same.


#4

Today i countinue test,
In hologram CONSOLE:
Jan 21 2018, 12:13:56;The First
Jan 21 2018, 12:36:58

Jan 21 2018, 16:15:54
Jan 21 2018, 16:17:52 and the Last
amount 17 item success data transmit ,have no timed out .
after more than one hours, try it again ,It timed out !
Jan 21 2018, 17:22:10
Jan 21 2018, 17:23:34

I think it’s mybe the modem or the carrier’s reason?


#5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.