With all the issues I had getting the GEM (WiFi only serial 01000941) to push realtime data to my own HTTP URL, I thought I'd try using btmon.py for polling.
I've read through this forum I need to set the GEM in Server Mode in "Application Settings."
In the webapp I don't see any menus/options for Application Settings in any of the screens.
Home / Channel Option / Chan CT / Temp Degree / Packet Send / Data Post / Network / Adv / Live Data / Status / Dwnld File
I also don't see any such options in the GEM Network Utility 7.0.
COM 4.0 Firmware and Eng 1.49.
For giggles I tried the IP address of the GEM (I have my DHCP server fix it at 192.168.2.154) port 80 (same as setup app?) but that didn't work. (Errno 54] Connection reset by peer)
Please advise on how to get my GEM into server mode, and to set the port that i can use when polling from btmon.py. Thanks in advance!
How to get GEM into "Server Mode"
-
- Posts: 5
- Joined: Fri Nov 20, 2015 3:54 pm
-
- Site Admin
- Posts: 4269
- Joined: Fri Jun 04, 2010 9:39 am
Re: How to get GEM into "Server Mode"
Application Settings is only applicable to the WiFi/Ethernet module.
WiFi-only runs in Mixed mode, meaning it'll do Server and Client mode at the same time.
First go into the GEM Network page under the Setup Webpage and disable any remote host you have in there.
Second, go to Packet Send and turn off Real-Time data.
All you should have to do is have it connect up to the same ip/port you used to setup the above settings.
WiFi-only runs in Mixed mode, meaning it'll do Server and Client mode at the same time.
First go into the GEM Network page under the Setup Webpage and disable any remote host you have in there.
Second, go to Packet Send and turn off Real-Time data.
All you should have to do is have it connect up to the same ip/port you used to setup the above settings.
Ben
Brultech Research Inc.
E: ben(at)brultech.com
Brultech Research Inc.
E: ben(at)brultech.com
-
- Posts: 5
- Joined: Fri Nov 20, 2015 3:54 pm
Re: How to get GEM into "Server Mode"
Ben - Thanks for such a speedy response! It is appreciated!
I removed all values from Network / Remote IP, Remote Host, and Remote Port (these were set). They are now blank.
I confirmed that Data Post / Real Time Status is OFF.
I was also deliberate in "Exit Setup Mode" prior to attempting to connect.
I continue to get "Connection Reset by Peer" from btmon.py.
I removed all values from Network / Remote IP, Remote Host, and Remote Port (these were set). They are now blank.
I confirmed that Data Post / Real Time Status is OFF.
I was also deliberate in "Exit Setup Mode" prior to attempting to connect.
I continue to get "Connection Reset by Peer" from btmon.py.
Code: Select all
^Cmac:Downloads> ./btmon.py --device-type=gem --ip --ip-mode=client --ip-host=19168.2.154 --ip-port=80 --print
2016/04/19 09:22:17 btmon: 3.1.1
2016/04/19 09:22:17 python: 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]
2016/04/19 09:22:17 platform: darwin
2016/04/19 09:22:17 device type: gem
2016/04/19 09:22:17 device list: ['']
2016/04/19 09:22:17 packet format: gem48ptbin
2016/04/19 09:22:17 schema: counters
2016/04/19 09:22:17 SOCKET: timeout: 60
2016/04/19 09:22:17 SOCKET: server host: 192.168.2.154
2016/04/19 09:22:17 SOCKET: server port: 80
2016/04/19 09:22:18 [Errno 54] Connection reset by peer
-
- Site Admin
- Posts: 4269
- Joined: Fri Jun 04, 2010 9:39 am
Re: How to get GEM into "Server Mode"
ngoodman wrote:Ben - Thanks for such a speedy response! It is appreciated!
I removed all values from Network / Remote IP, Remote Host, and Remote Port (these were set). They are now blank.
I confirmed that Data Post / Real Time Status is OFF.
I was also deliberate in "Exit Setup Mode" prior to attempting to connect.
I continue to get "Connection Reset by Peer" from btmon.py.
Code: Select all
^Cmac:Downloads> ./btmon.py --device-type=gem --ip --ip-mode=client --ip-host=19168.2.154 --ip-port=80 --print 2016/04/19 09:22:17 btmon: 3.1.1 2016/04/19 09:22:17 python: 2.7.5 (default, Mar 9 2014, 22:15:05) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] 2016/04/19 09:22:17 platform: darwin 2016/04/19 09:22:17 device type: gem 2016/04/19 09:22:17 device list: [''] 2016/04/19 09:22:17 packet format: gem48ptbin 2016/04/19 09:22:17 schema: counters 2016/04/19 09:22:17 SOCKET: timeout: 60 2016/04/19 09:22:17 SOCKET: server host: 192.168.2.154 2016/04/19 09:22:17 SOCKET: server port: 80 2016/04/19 09:22:18 [Errno 54] Connection reset by peer
It's likely the idle time setting under Adv, set it to 0. When you need access to the GEM again, you'll basically have to shutdown btmon.py afterwards.
Ben
Brultech Research Inc.
E: ben(at)brultech.com
Brultech Research Inc.
E: ben(at)brultech.com
-
- Posts: 5
- Joined: Fri Nov 20, 2015 3:54 pm
Re: How to get GEM into "Server Mode"
Strange - if I set it to 0 it always comes back to 6. I can set it higher, no problem, but the minimum that can be Saved on Idle Time is 6. Any idea why I can't set it to the setting you suggest?ben wrote:It's likely the idle time setting under Adv, set it to 0. When you need access to the GEM again, you'll basically have to shutdown btmon.py afterwards.
Thanks, again.
UPDATE: Occasionally I've also received the following message as well:
2016/04/19 10:44:32 expected START_HEADER0 0xfe, got nothing
-
- Site Admin
- Posts: 4269
- Joined: Fri Jun 04, 2010 9:39 am
Re: How to get GEM into "Server Mode"
Increase is higher then the poll interval, like 15-20 seconds higher. That way it won't disconnect.ngoodman wrote:Strange - if I set it to 0 it always comes back to 6. I can set it higher, no problem, but the minimum that can be Saved on Idle Time is 6. Any idea why I can't set it to the setting you suggest?ben wrote:It's likely the idle time setting under Adv, set it to 0. When you need access to the GEM again, you'll basically have to shutdown btmon.py afterwards.
Thanks, again.
UPDATE: Occasionally I've also received the following message as well:
2016/04/19 10:44:32 expected START_HEADER0 0xfe, got nothing
Ben
Brultech Research Inc.
E: ben(at)brultech.com
Brultech Research Inc.
E: ben(at)brultech.com