Syncing Data Between Android Devices

Status
Not open for further replies.
My organization primarily does web development, but we're increasingly unhappy with that use pattern at events. We have an event coming up where we're going to have ~8 Nexus tablets. Visitors will complete a short quiz/survey on one of our tablets. We need to periodically collect the results from all the tablets to award prizes.

Traditionally, we would bring a wifi AP, Raspberry PI, and have the tablets' browser display the content as a web page. We've had technical issues where our event staff can't resolve problems with the "server" stuff. However, the biggest problem is that we don't have power to the booth for some venues. That leads to wifi range problems or worse stolen equipment.

Our desire is to move away from bringing any equipment besides the tablets. I've started looking at Android Studio, and it seems trivial to create the quiz/survey part. I need some advice on syncing results and stats between the devices. I can use Bluetooth or an ad-hoc wifi AP from one of the tablets. Unfortunately, I don't have any experience with Bluetooth and can't tell whether that's going to be a really messy solution that requires re-pairing the devices and all of the complexity that comes with it. Ad-hoc wifi is more appealing on its face since it's IP-based, and I'm good with networking. I suppose one thing to consider would be using DNS-SD to advertise the collector tablet.

How would you sync a few KiB of app data between a handful of Android tablets in an area that doesn't have wifi?
 

Drizzt321

Ars Legatus Legionis
34,925
Subscriptor++
Hmm...well, ad-hoc WiFi network. Maybe bring an extra tablet that acts as a 'server' which asks the others for their data? Or the others push each response to it?

I'm surprised the 'server' stuff of a RaspPi + AP is such a problem. You just have an image that's all setup, and just re-clone the clean image for each new event & add in the small bits that you specifically need for that event.
 

Drizzt321

Ars Legatus Legionis
34,925
Subscriptor++
Well...if the tablets support it you can do direct serial via Bluetooth. Haven't specifically worked with it, but basically you'd have to pair the tablets to the 'master' one at a time. Generally Bluetooth doesn't support being paired to more than once device at a time. It has it's uses, but seems to have been made a bit harder than it could have been (my layman's view), so it hasn't gotten the adoption that could have made it great.
 

ramases

Ars Tribunus Angusticlavius
9,016
Subscriptor++
Re "server issues (unspecified)": Whatever those problems are that your event staff cannot fix, chances are that ad-hoc wireless and Bluetooth will produce even more annoying problems.

Re power:

Cheap (less than 200 Euros): If you replaced the AP and the Pi with something like a PCEngines Alix2d1 and a miniPCI wireless card, you'd be able to run it off the puny (and dirt-cheap) 12V block used in a 50cc scooter (quick guestimate is around 6-9 hours on a 12V/6Ah block). The Alix board isn't particularly fuzzy about its power source and will happily accept anything that is DC, has a voltage between 7 and 20V and can accommodate a peak draw of 15W.

"Simpler" (for you): "The Pi, AP and a UPS" suggestion.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
do you need the data in real (sih) time or just at the end of the day?

If the latter just save it all to an SD card (should the device have one) and grab them off that at the end of the day.

Once you have that working decide if the effort of this being done for each event justifies writing/finding the requisite code to deal with it sufficiently reliably that you don't end up spending just as much time debugging issues with that...
 
[url=http:/civis/viewtopic.php?p=27149237#p27149237:2c2gjyf7 said:
ShuggyCoUk[/url]":2c2gjyf7]do you need the data in real (sih) time or just at the end of the day?

More like 2-3 times over 6 hours. Still not that many times.

If the latter just save it all to an SD card (should the device have one) and grab them off that at the end of the day.

We have the 2013 Nexus 7s that don't have SD cards.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
[url=http:/civis/viewtopic.php?p=27150987#p27150987:3r2ge6wb said:
fandingo[/url]":3r2ge6wb]I don't mean to sound like a twat, but if you don't have any information about Bluetooth or ad-hoc wifi, I'm not really interested in your advice. I came here for programming and development advice, not so much for SD cards and battery packs. Sorry.

Your job is to solve a problem, in the best way for your client/business/self. Pre-supposing a solution is one of the the most common failures I see on places like stack overflow and here, especially when other people have solved it.

If you don't want to hear that, that's fine, don't listen.

Don't read this as me being offended, I'm amused, but am also not trying to start a fight, so shall drop the thread.
 
While that's true, I came here looking for advice on evaluating two new methods. There hasn't been any discussion on either of those. It's all been "keep doing what you're doing." Of course we're looking at largely keeping the status quo; I don't need advice to consider using the method that mostly works right now.

It's my fault for ending the OP with a meaningless and obvious question that shouldn't have been so open-ended.
 
[url=http:/civis/viewtopic.php?p=27150987#p27150987:37qvvzv3 said:
fandingo[/url]":37qvvzv3]I don't mean to sound like a twat, but if you don't have any information about Bluetooth or ad-hoc wifi, I'm not really interested in your advice. I came here for programming and development advice, not so much for SD cards and battery packs. Sorry.

If you ask a bunch of developers a question, you're going to get DoTheSimplestThingThatCouldPossiblyWork answers. Dumb programmers will always look to code to find a solution. Experienced developers look beyond code for simple solutions. Are you not interested in the advice from experienced developers?

Anyways, the questions you asked aren't programming question. The issues you described aren't programming issues either. It's unreasonable to expect a programming response. Example:
... our event staff can't resolve problems ...

This sums up your only problem and is the only real addressable issue. There's no code in the world that will make a wireless network in random locations reliable. Attack the problem, the real problem, and nothing but the problem: send someone resourceful and with the tools needed to resolve problems.

Changing the network has no real effect. You're just trading one wireless problem for another and you have an event staff that can't resolve problems. See a pattern?
 
I honestly don't care what anyone thinks about the present solution. I'm trying to get some feedback on working with Bluetooth on Android that will allow me to see if that's an option worth pursuing. Normally, I'd just build a POC and see if it's worth turning into production-quality. However, I haven't done any Android development before, so I figured it might be better to solicit some feedback as the barrier to complete my own POC is much higher than usual.
 
Status
Not open for further replies.