Btmon timeout

Post any 3rd party software here.
Post Reply
mitnick29
Posts: 2
Joined: Thu Aug 21, 2014 4:04 am

Btmon timeout

Post by mitnick29 » Thu Aug 21, 2014 4:25 am

Hi,
I try to explain my problem at my best.

I have a setup a raspberry pi with btmon to communicate with GEM via TCP/IP
who save the data to Mysql each 15 mins. This setup works perfectly for 8-9 month.

But..i don't make a backup for the SD card of the raspberry...my mistake.
and the SD card fail.

I buy new sd card, re-install software..etc

I don't know what's doing wrong..but have always timeout from btmon...

I tried many sort of settings...no success..

thanks


root@raspberrypi:/home/pi/btmon# python btmon.py --device-type=gem --ip --ip-mod e=client --ip-port=5000 --ip-host=192.168.1.108 --print --debug
2014/08/21 00:49:37 btmon: 3.0.7
2014/08/21 00:49:37 python: 2.7.3 (default, Mar 18 2014, 05:13:23)
[GCC 4.6.3]
2014/08/21 00:49:37 platform: linux2
2014/08/21 00:49:37 device type: gem
2014/08/21 00:49:37 device list: ['']
2014/08/21 00:49:37 packet format: gem48ptbin
2014/08/21 00:49:37 schema: counters
2014/08/21 00:49:37 buffer size: 120
2014/08/21 00:49:37 SOCKET: timeout: 60
2014/08/21 00:49:37 SOCKET: server host: 192.168.1.108
2014/08/21 00:49:37 SOCKET: server port: 5000
2014/08/21 00:49:37 packet format is GEM48PTBinaryPacket
2014/08/21 00:49:37 using collector BlockingSocketClientCollector
2014/08/21 00:49:37 using 1 processors:
2014/08/21 00:49:37 PrintProcessor
2014/08/21 00:49:37 setup BlockingSocketClientCollector
2014/08/21 00:49:37 setup PrintProcessor
2014/08/21 00:49:37 waiting for data from device
2014/08/21 00:49:37 opening socket connection to 192.168.1.108:5000
2014/08/21 00:50:37 failed read 1 of 0
2014/08/21 00:50:37 timed out
Traceback (most recent call last):
File "btmon.py", line 2069, in _blockingread
self.open()
File "btmon.py", line 2218, in open
self._sock.connect((self._host, self._port))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
timeout: timed out
2014/08/21 00:50:37 closing socket connection
2014/08/21 00:50:37 waiting 60 seconds before retry
2014/08/21 00:51:37 opening socket connection to 192.168.1.108:5000
2014/08/21 00:52:37 failed read 2 of 0
2014/08/21 00:52:37 timed out
Traceback (most recent call last):
File "btmon.py", line 2069, in _blockingread
self.open()
File "btmon.py", line 2218, in open
self._sock.connect((self._host, self._port))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
timeout: timed out
2014/08/21 00:52:37 closing socket connection
2014/08/21 00:52:37 waiting 60 seconds before retry
2014/08/21 00:53:37 opening socket connection to 192.168.1.108:5000
2014/08/21 00:54:37 failed read 3 of 0
2014/08/21 00:54:37 timed out
Traceback (most recent call last):
File "btmon.py", line 2069, in _blockingread
self.open()
File "btmon.py", line 2218, in open
self._sock.connect((self._host, self._port))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
timeout: timed out
2014/08/21 00:54:37 closing socket connection
2014/08/21 00:54:37 waiting 60 seconds before retry
2014/08/21 00:55:37 opening socket connection to 192.168.1.108:5000
2014/08/21 00:56:37 failed read 4 of 0
2014/08/21 00:56:37 timed out
Traceback (most recent call last):
File "btmon.py", line 2069, in _blockingread
self.open()
File "btmon.py", line 2218, in open
self._sock.connect((self._host, self._port))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
timeout: timed out
2014/08/21 00:56:37 closing socket connection
2014/08/21 00:56:37 waiting 60 seconds before retry
Attachments
gem_http.jpg
gem_http.jpg (156.33 KiB) Viewed 2879 times
gem.jpg
gem.jpg (128.65 KiB) Viewed 2879 times
ben
Site Admin
Posts: 4262
Joined: Fri Jun 04, 2010 9:39 am

Re: Btmon timeout

Post by ben » Thu Aug 21, 2014 10:47 am

mitnick29 wrote:Hi,
I try to explain my problem at my best.

I have a setup a raspberry pi with btmon to communicate with GEM via TCP/IP
who save the data to Mysql each 15 mins. This setup works perfectly for 8-9 month.

But..i don't make a backup for the SD card of the raspberry...my mistake.
and the SD card fail.

I buy new sd card, re-install software..etc

I don't know what's doing wrong..but have always timeout from btmon...

I tried many sort of settings...no success..

thanks


root@raspberrypi:/home/pi/btmon# python btmon.py --device-type=gem --ip --ip-mod e=client --ip-port=5000 --ip-host=192.168.1.108 --print --debug
2014/08/21 00:49:37 btmon: 3.0.7
2014/08/21 00:49:37 python: 2.7.3 (default, Mar 18 2014, 05:13:23)
[GCC 4.6.3]
2014/08/21 00:49:37 platform: linux2
2014/08/21 00:49:37 device type: gem
2014/08/21 00:49:37 device list: ['']
2014/08/21 00:49:37 packet format: gem48ptbin
2014/08/21 00:49:37 schema: counters
2014/08/21 00:49:37 buffer size: 120
2014/08/21 00:49:37 SOCKET: timeout: 60
2014/08/21 00:49:37 SOCKET: server host: 192.168.1.108
2014/08/21 00:49:37 SOCKET: server port: 5000
2014/08/21 00:49:37 packet format is GEM48PTBinaryPacket
2014/08/21 00:49:37 using collector BlockingSocketClientCollector
2014/08/21 00:49:37 using 1 processors:
2014/08/21 00:49:37 PrintProcessor
2014/08/21 00:49:37 setup BlockingSocketClientCollector
2014/08/21 00:49:37 setup PrintProcessor
2014/08/21 00:49:37 waiting for data from device
2014/08/21 00:49:37 opening socket connection to 192.168.1.108:5000
2014/08/21 00:50:37 failed read 1 of 0
2014/08/21 00:50:37 timed out
Traceback (most recent call last):
File "btmon.py", line 2069, in _blockingread
self.open()
File "btmon.py", line 2218, in open
self._sock.connect((self._host, self._port))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
timeout: timed out
2014/08/21 00:50:37 closing socket connection
2014/08/21 00:50:37 waiting 60 seconds before retry
2014/08/21 00:51:37 opening socket connection to 192.168.1.108:5000
2014/08/21 00:52:37 failed read 2 of 0
2014/08/21 00:52:37 timed out
Traceback (most recent call last):
File "btmon.py", line 2069, in _blockingread
self.open()
File "btmon.py", line 2218, in open
self._sock.connect((self._host, self._port))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
timeout: timed out
2014/08/21 00:52:37 closing socket connection
2014/08/21 00:52:37 waiting 60 seconds before retry
2014/08/21 00:53:37 opening socket connection to 192.168.1.108:5000
2014/08/21 00:54:37 failed read 3 of 0
2014/08/21 00:54:37 timed out
Traceback (most recent call last):
File "btmon.py", line 2069, in _blockingread
self.open()
File "btmon.py", line 2218, in open
self._sock.connect((self._host, self._port))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
timeout: timed out
2014/08/21 00:54:37 closing socket connection
2014/08/21 00:54:37 waiting 60 seconds before retry
2014/08/21 00:55:37 opening socket connection to 192.168.1.108:5000
2014/08/21 00:56:37 failed read 4 of 0
2014/08/21 00:56:37 timed out
Traceback (most recent call last):
File "btmon.py", line 2069, in _blockingread
self.open()
File "btmon.py", line 2218, in open
self._sock.connect((self._host, self._port))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
timeout: timed out
2014/08/21 00:56:37 closing socket connection
2014/08/21 00:56:37 waiting 60 seconds before retry
Looks like an easy fix.

You're opening a socket connection to: 192.168.1.108:5000.

Your Ethernet module is set to: 192.168.1.108:8080. (8080 is your Local Port).
Ben
Brultech Research Inc.
E: ben(at)brultech.com
mitnick29
Posts: 2
Joined: Thu Aug 21, 2014 4:04 am

Re: Btmon timeout

Post by mitnick29 » Thu Aug 21, 2014 3:08 pm

Thanks you Ben, you find the solution...i think i try many settings..and i don't catch which port is what.

Another question: in the GEM config, the radio button Real time update have to be ON or OFF when the GEM is in SERVER mode.

Because, when is ON, I got many START_HEADER0 0xfe error, and sometimes values OK
When is OFF, I got one times values, and rest of time, got " not enough data for 01000591"

thanks


EDIT: OK, I found the answer of my question on WEB, thanks
Post Reply