My main server is located in an offsite datacenter so I need the GEM to reach out to btmon, not the other way around. I have configured btmon like this:
Code: Select all
[source]
device_type = gem
ip_read = true
ip_port = 8083
ip_mode = server
[openenergymonitor]
oem_out=true
oem_token=skdhksdhkdsjhfdskjhfskjhsksdjfhk
I can access the server on 8083 from my local network just fine and I see the connection in the debug output of btmon, so I know my firewalls are not the issue.
I have configured the GEM in client mode with the IP address as that of my server and the port the same port as my btmon instance is listening on, but so far, the GEM has yet to send any data to the btmon.
My GEM is configured with wifi (unused), ethernet (used with static IP assignment of 192.168.1.7) and is connected to my DB using COM1.
I see all the data just fine on my DB, but the GEM does not appear to even attempt to send data to my server. Using wireshark, there is no attempt from the GEM to communicate to anything on port 8083.
Hopefully I am missing something simple. I read somewhere is some document about the ethernet being linked to a com port or something like that an now I cannot find it again, so I think I missed something in my configuration some where.
Looking for some guidance!
Thanks
GEM CONFIG
Code: Select all
Serial#: 00000000
COM firmware ver: 4.15
ENG firmware ver: 1.49
RealTime Status: ON
Packet Send Interval: 8
Pri. Packet Format: 4
Sec. Packet Format: 0
Sys Status: OK Wifi/Ethernet Module: Enabled
GEM Ver: Single or Polyphase
PCB Ver: 3
BootLoader Ver: 2
COM1 Flow: OFF
COM2 Flow: OFF
Current Constant: 221
Sys Info: 00100001 OK
Sys Flags: 00000000 OK Keep Alive String:""
COM1 Baud: 115200
COM2 Baud: 115200
Phase Setting: Single Phase
Freq: 60Hz
Hardware Configuration: 166
WiFi and Ethernet V2
Code: Select all
haarp btmon # ./btmon.py -c btconfig.cfg --print --debug
2016/04/18 18:34:13 btmon: 3.1.1
2016/04/18 18:34:13 python: 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2]
2016/04/18 18:34:13 platform: linux2
2016/04/18 18:34:13 device type: gem
2016/04/18 18:34:13 device list: ['']
2016/04/18 18:34:13 packet format: gem48ptbin
2016/04/18 18:34:13 schema: counters
2016/04/18 18:34:13 buffer size: 120
2016/04/18 18:34:13 SOCKET: bind host:
2016/04/18 18:34:13 SOCKET: bind port: 8083
2016/04/18 18:34:13 OEM: upload period: 60
2016/04/18 18:34:13 OEM: timeout: 15
2016/04/18 18:34:13 OEM: url: http://emoncms.xxxxxxxxx.com/api/post
2016/04/18 18:34:13 OEM: token: ksjhfksjdhfskjhfklsjfhksjhfkjsdh
2016/04/18 18:34:13 OEM: node: GEM
2016/04/18 18:34:13 packet format is GEM48PTBinaryPacket
2016/04/18 18:34:13 using collector SocketServerCollector
2016/04/18 18:34:13 using 2 processors:
2016/04/18 18:34:13 PrintProcessor
2016/04/18 18:34:13 OpenEnergyMonitorProcessor
2016/04/18 18:34:13 setup SocketServerCollector
2016/04/18 18:34:13 SOCKET: binding to :8083
2016/04/18 18:34:13 setup PrintProcessor
2016/04/18 18:34:13 setup OpenEnergyMonitorProcessor
2016/04/18 18:34:13 SOCKET: waiting for connection