Variety of Issues, core is likely something Com/WiFi

Ask questions about the GEM here.
Post Reply
ngoodman
Posts: 5
Joined: Fri Nov 20, 2015 3:54 pm

Variety of Issues, core is likely something Com/WiFi

Post by ngoodman » Sat Nov 21, 2015 6:26 pm

I've been logging to SEG since 8/2014. I think the GEM is an amazing device; monitoring 32 channels, the 1-wire, and the Pulse counters with WiFi posting to web services at the price is amazing! I think Brultech has really found a sweet spot; it's a perfect product fit for me!

I'm moving to my own data system, and am now trying to configure GEM to do a simple "HTTP" get (format 3) to my website. My expectation is that this should be easy in land of SBCs, Raspberry Pi and Internet of Things (aka 2015), but my experience has been that it's quite the opposite. Having the WiFi/Ethernet be some sort of COM bridge is kinda wonky which I suspect is the core issue.

It simply did not work (set Data Post to my URL, hostname, packet format). Figured it's time to update to latest and greatest... after 5 hours of various searching in this forum, and various combinations of baud rate changes, recovery mode firmware, swapping to USB power supply instead of provided one, restoring to factory defaults, popping battery in and out, I've been able to update my firmware to ENG 1.49 and COM 4.0. Was hoping that would improve the world; it has not.

Things seem to be most stable with:
- A USB power supply and NO Battery

Things I experience:
- When accessing the web page, it sometimes 5 or six times to even show. Occasionally, it will simply stop working and browser will hang
- When accessing the web pages, sometimes they are partial. Sometimes, a page just starts downloading (as if it's not HTML or ascii) sometimes pages start "halway through" where the entire top half of the page is missing.
- About 50% of the time, from the GEM Network Utility "Get GEM Info" returns either a Timeout, or gobbly gook FAIL notice.
- To date, the GEM has never once performed a simple HTTP get to an IP (I set up a local Node server, and have a remote php location as well. URL, IP's nothing works. Tried to get it back to SEG and it no longer works either.
- Pings work perfectly, just seems that everything on the HTTP stack server/post.
- Copious and complete combinations of Real Time Status (on/off), Keep Alive String, Keep Alive Pulse, Baud Rates COM1, Flow On/Off it all still is broken.

My guess is that it's some core issue (packet size, Keep Alive thing, or core Comm setup that is cause ALL my issues. Posting here to hopefully get some of the experts to set me straight! ;) Help is very much appreciated, and as I resolve my issue I promise to write up any lessons learned so that those that come after me...

Screen shots (more in reply to follow):
gem_packet_send.png
gem_packet_send.png (77.56 KiB) Viewed 2001 times
gem_network.png
gem_network.png (40.46 KiB) Viewed 2001 times
gem_advanced.png
gem_advanced.png (113.78 KiB) Viewed 2001 times
ngoodman
Posts: 5
Joined: Fri Nov 20, 2015 3:54 pm

Re: Variety of Issues, core is likely something Com/WiFi

Post by ngoodman » Sat Nov 21, 2015 6:27 pm

More screenshots.

Thanks again, for any light anyone can shed on this. I really really really want to get my GEM stable and working in the modern InterWebs as it IS the perfect product specs in my book. ;)
Attachments
gem_weird_http_issue.png
gem_weird_http_issue.png (274.24 KiB) Viewed 2000 times
gem_status.png
gem_status.png (129.05 KiB) Viewed 2000 times
gem_data_post_screen.png
gem_data_post_screen.png (71.47 KiB) Viewed 2000 times
ben
Site Admin
Posts: 4269
Joined: Fri Jun 04, 2010 9:39 am

Re: Variety of Issues, core is likely something Com/WiFi

Post by ben » Wed Nov 25, 2015 11:54 am

The WiFi-only option can really be a pain. One immediate thing I've noticed which will improve your performance is to up your baud rate on COM1. 115200 should improve page loading significantly. Do it through the GEM Network Utility.

You might consider doing a Factory Defaults in the GEM Network Utility, you'll have to set your CTs up again afterwards but it'll ensure your Adv. settings are OK.

Keep the real-time status as "ON".
Flow Control off.
Put the battery back in.

Once that's all setup, try cycling power to the GEM.
Ben
Brultech Research Inc.
E: ben(at)brultech.com
mwareman
Posts: 147
Joined: Fri Jul 24, 2015 4:57 pm

Re: Variety of Issues, core is likely something Com/WiFi

Post by mwareman » Thu Nov 26, 2015 8:39 pm

Ben,

Is there any way to purchase the Ethernet module from you and replace/upgrade a WiFi only GEM?

Michael.
ben
Site Admin
Posts: 4269
Joined: Fri Jun 04, 2010 9:39 am

Re: Variety of Issues, core is likely something Com/WiFi

Post by ben » Mon Nov 30, 2015 12:44 pm

mwareman wrote:Ben,

Is there any way to purchase the Ethernet module from you and replace/upgrade a WiFi only GEM?

Michael.
The on-board WiFi module has to be disabled (hardware-wise) in order to use an on-board solution.

You could use an EtherPort and use a DB9 cable through the COM1/2 headers.
Ben
Brultech Research Inc.
E: ben(at)brultech.com
mwareman
Posts: 147
Joined: Fri Jul 24, 2015 4:57 pm

Re: Variety of Issues, core is likely something Com/WiFi

Post by mwareman » Mon Nov 30, 2015 10:36 pm

ben wrote:
mwareman wrote:Ben,

Is there any way to purchase the Ethernet module from you and replace/upgrade a WiFi only GEM?

Michael.
The on-board WiFi module has to be disabled (hardware-wise) in order to use an on-board solution.

You could use an EtherPort and use a DB9 cable through the COM1/2 headers.
OK, thanks. I'll give that a try!
ben
Site Admin
Posts: 4269
Joined: Fri Jun 04, 2010 9:39 am

Re: Variety of Issues, core is likely something Com/WiFi

Post by ben » Tue Dec 01, 2015 3:57 pm

mwareman wrote:
ben wrote:
mwareman wrote:Ben,

Is there any way to purchase the Ethernet module from you and replace/upgrade a WiFi only GEM?

Michael.
The on-board WiFi module has to be disabled (hardware-wise) in order to use an on-board solution.

You could use an EtherPort and use a DB9 cable through the COM1/2 headers.
OK, thanks. I'll give that a try!
The ports expose RS232, you technically can use any serial-to-ethernet adapter come to think of it. Just need a cable adapter for it.
Ben
Brultech Research Inc.
E: ben(at)brultech.com
tfalk
Posts: 7
Joined: Sun Dec 13, 2015 4:42 pm

Re: Variety of Issues, core is likely something Com/WiFi

Post by tfalk » Tue Dec 29, 2015 12:55 pm

Any luck with this?

I have the GEM working perfectly using XAMPP on a Windows PC on my home network. At the same time, I have several websites hosted on lunarpages so I figured I would try to install the standalone server, set up a mysql database and move everything to the hosted server.

Yeah, not happening.... Either I get nothing going to the server at all or the rare occasions I've been able to get messages actually showing up on the server log, all I get are HTTP 500 errors and an error in the btech/logs file saying error in minutedata. I created the mysql database using the instructions I found in another thread, updated the database.php file to reflect the values I used on CPanel when I created the database. Latest attempt, I don't see anything being sent to the server at all. If I reset and point it back to my localhost server, it runs fine.

Next step will be to do a complete reset on the GEM and start from scratch since I'm guessing something is getting crossed up in the communications. Maybe I'll start a new thread but I was wondering if the OP ever got anywhere with his com issues...
ben
Site Admin
Posts: 4269
Joined: Fri Jun 04, 2010 9:39 am

Re: Variety of Issues, core is likely something Com/WiFi

Post by ben » Tue Dec 29, 2015 2:58 pm

HTTP 500 indicates a problem with the webpage. When you switched to MySQL, there should be some updated php files also beyond the database page.

My guess is one of the models is calling a query function that MySQL doesn't support, but SQLite does.
Ben
Brultech Research Inc.
E: ben(at)brultech.com
Post Reply