I’m developing an application based the cobra2 card. The device acts like a server where users can connect with a mobile phone to access collected data and make settings. Wanting to support both Android and IOS phones I have run in to a few problems on the way that I would like to share.
We first started out using the built in RS21 module. As the RS21 cannot act as an access point we used an ad-hoc network for this. Working great on IOS. But android does not support ad-hoc networks. So we switched to the more advanced module RN171 module (discontinued at this point). This module can act as an access point. Worked fine until we found out that it can only do one socket connection at the time. This did not work to well with the jquery webpage that wants multiple sockets. We ended up solving this with a custom application on the phones that periodically polls the jquery webpages using only one socket. But we lost the snappy feeling of send/receive sockets doing this.
I know you can root some Android devices to get ad-hoc. But for a fairly large market product with “non forum” users, it’s just not gonna work
Rumors say that GHI might update the driver for RS21 to support access point mode and multiple sockets. But nothing official about when, or even if they will.
I imagine that having a gadgeteer device that acts as “server” for mobile phone clients (IOS Android etc) must be a common need?