Not receiving packets from GEM

Post any 3rd party software here.
imperial
Posts: 9
Joined: Mon Jan 19, 2015 6:53 pm

Not receiving packets from GEM

Post by imperial » Mon Jan 19, 2015 7:35 pm

I changed the server destination on my GEM to a new box after upgrading firmware to 3.18/1.49. On the new box I moved btmon.py and the old configuration file over, however I'm not receiving any data on the new box. When I run btmon from the command line with debug on, this is what the output looks like-

2015/01/19 18:30:39 %d format: a number is required, not str
Traceback (most recent call last):
File "./btmon.py", line 2070, in _blockingread
self._read(packet_format)
File "./btmon.py", line 2057, in _read
packets.extend(packet_format.read(self))
File "./btmon.py", line 1450, in read
return self._read1(collector, self.DATA_BYTES_LENGTH, self.PACKET_ID)
File "./btmon.py", line 1337, in _read1
data = collector.readbytes(1)
File "./btmon.py", line 2299, in readbytes
dbgmsg('SOCKET: read %d bytes from socket' % nbytes)
TypeError: %d format: a number is required, not str
2015/01/19 18:30:39 waiting 60 seconds before retry
2015/01/19 18:31:39 reading 1 of 1 packets
2015/01/19 18:31:39 failed read 2 of 0
2015/01/19 18:31:39 %d format: a number is required, not str
Traceback (most recent call last):
File "./btmon.py", line 2070, in _blockingread
self._read(packet_format)
File "./btmon.py", line 2057, in _read
packets.extend(packet_format.read(self))
File "./btmon.py", line 1450, in read
return self._read1(collector, self.DATA_BYTES_LENGTH, self.PACKET_ID)
File "./btmon.py", line 1337, in _read1
data = collector.readbytes(1)
File "./btmon.py", line 2299, in readbytes
dbgmsg('SOCKET: read %d bytes from socket' % nbytes)
TypeError: %d format: a number is required, not str
2015/01/19 18:31:39 waiting 60 seconds before retry
2015/01/19 18:32:39 reading 1 of 1 packets
2015/01/19 18:32:39 failed read 3 of 0
2015/01/19 18:32:39 %d format: a number is required, not str
Traceback (most recent call last):
File "./btmon.py", line 2070, in _blockingread
self._read(packet_format)
File "./btmon.py", line 2057, in _read
packets.extend(packet_format.read(self))
File "./btmon.py", line 1450, in read
return self._read1(collector, self.DATA_BYTES_LENGTH, self.PACKET_ID)
File "./btmon.py", line 1337, in _read1
data = collector.readbytes(1)
File "./btmon.py", line 2299, in readbytes
dbgmsg('SOCKET: read %d bytes from socket' % nbytes)
TypeError: %d format: a number is required, not str
2015/01/19 18:32:39 waiting 60 seconds before retry

Any ideas?
ben
Site Admin
Posts: 4262
Joined: Fri Jun 04, 2010 9:39 am

Re: Not receiving packets from GEM

Post by ben » Tue Jan 20, 2015 11:48 am

How are you communicating with the new box?

If via TCP, did you change over the GEMs configuration parameters to point at the new box?
Ben
Brultech Research Inc.
E: ben(at)brultech.com
imperial
Posts: 9
Joined: Mon Jan 19, 2015 6:53 pm

Re: Not receiving packets from GEM

Post by imperial » Tue Jan 20, 2015 12:20 pm

ben wrote:How are you communicating with the new box?

If via TCP, did you change over the GEMs configuration parameters to point at the new box?
I did. I have attached a screen shot of the network utility. 10.115.1.10 is the new box running btmon.
3Kp8PxqVMe.png
3Kp8PxqVMe.png (123.48 KiB) Viewed 3618 times
ben
Site Admin
Posts: 4262
Joined: Fri Jun 04, 2010 9:39 am

Re: Not receiving packets from GEM

Post by ben » Tue Jan 20, 2015 12:45 pm

Can you also copy/paste your btmon config file?

Says Not Connected, is it possible that the ports are mismatched?
Ben
Brultech Research Inc.
E: ben(at)brultech.com
imperial
Posts: 9
Joined: Mon Jan 19, 2015 6:53 pm

Re: Not receiving packets from GEM

Post by imperial » Tue Jan 20, 2015 1:20 pm

ben wrote:Can you also copy/paste your btmon config file?

Says Not Connected, is it possible that the ports are mismatched?
Sorry, I hadn't clicked connect. Here is a screen shot of it connected.

And the config file-

Code: Select all

[source]
device_type = gem
ip_read = true
ip_port = 5000
ip_mode = server
reverse_polarity = 1
[seg]
smartenergygroups_out = true
seg_token = <token>
seg_upload_period = 30
Attachments
ilcbm6RmfA.png
ilcbm6RmfA.png (152.54 KiB) Viewed 3616 times
ben
Site Admin
Posts: 4262
Joined: Fri Jun 04, 2010 9:39 am

Re: Not receiving packets from GEM

Post by ben » Tue Jan 20, 2015 4:03 pm

Got me a little stumped, everything looks good.

You can try forcing a Ethernet client connection by reducing Idle Time to 0 and setting the Ethernet module to Client mode.
Ben
Brultech Research Inc.
E: ben(at)brultech.com
imperial
Posts: 9
Joined: Mon Jan 19, 2015 6:53 pm

Re: Not receiving packets from GEM

Post by imperial » Tue Jan 20, 2015 4:26 pm

No luck with that either. I'm seeing some malformed packets come across via wireshark but that is about it.
Attachments
VsAXvkwCUA.png
VsAXvkwCUA.png (290.44 KiB) Viewed 3612 times
ben
Site Admin
Posts: 4262
Joined: Fri Jun 04, 2010 9:39 am

Re: Not receiving packets from GEM

Post by ben » Wed Jan 21, 2015 11:51 am

What version of Python are you running?
Ben
Brultech Research Inc.
E: ben(at)brultech.com
imperial
Posts: 9
Joined: Mon Jan 19, 2015 6:53 pm

Re: Not receiving packets from GEM

Post by imperial » Wed Jan 21, 2015 12:48 pm

ben wrote:What version of Python are you running?
Python 2.7.9 (default, Jan 7 2015, 11:49:12)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
imperial
Posts: 9
Joined: Mon Jan 19, 2015 6:53 pm

Re: Not receiving packets from GEM

Post by imperial » Wed Jan 21, 2015 12:52 pm

Just a note I switched the configuration back to point at the old box I had btmon running on. That box is also not receiving any packets.

I also factory reset the GEM and set it back up last night to no avail as well.
Post Reply