- Posts: 4402
Devation for mobile devices
- PhracturedBlue
- Topic Author
- Offline
I decided to start working on an app to talk to the UniversalTx module while I wait for my new UniversalTx boards.
I decided to use cordova to build it primarily because there is a cross-platform bluetooth module for it. A side benefit is that it can be tested in any HTML5 compliant browser. So you can now test the current code here:
www.deviationtx.com/mobile_test/
The repository is here:
bitbucket.org/PhracturedBlue/deviation-mobile
Currently the code is just a mock-up to see how the layout will work and get me familiar with html5/css/javascript/cordova. It is still very crude, as the last time I did any javascript programming was 15 years ago, and things have changed a little since then.
I am interested in feedback on capabilities/use models, as well as code help if anyone has any mobile programming experience.
More Details:
Q: Is this at all helpful for my Devo6/8/10/12/7e?
A: Yes. Bluetooth will be supported when using the UniversalTx with Deviation. It could bring multiple capabilities including a full GUI implementation for configuring Deviation via your smartphone and voice alerts from the transmitter. I'm open to suggestions (also see the last question below)
Q: Can this be used without UniversalTx?
A: It should be possible to use a bluetooth module with Deviation without UniversalTx by wiring into the uart port, but I haven't tested this as yet. It would provide all the capabilities listed in the previous question.
Q: Does UniversalTx require bluetooth/smartphone?
A: When used with Deviation in a Walkera radio, no. When used in a OpenTx based radio (X9D), no. When used with any other radio via PPM, possibly.
Q: I thought you said it was a mobile app. Why does it run off a web-site? What if I don't have internet access?
A: While the code is HTML5, it is planned that this will be compiled as a native app for Android and iOS. However, at the moment, I am only buildingit as a web-page to facilitate testing (See comment above)
Q: What happens if the bluetooth conenction is lost during flight?
A: As long as you aren't sending PPM over bluetooth (see below) nothing. All parameters are stored on the UniversalTx board/Transmitter
Q: Can this be used with UniversalTx without a transmitter?
A: The UniversalTx board is designed to be able to operate in standalone mode. This means you could theoretically send PPM info to it via bluetooth and use your smartphone as a transmitter
Q: When will UniversalTx be available
A: I have no idea, but probably not very soon.
Q: What features are you planning for Deviation-Mobile?
For Deviation based radios:
* Audio alerts
* Full GUI interface for configuration
* Extra/better model management
* ??
For PPM radios:
* Protocol / Model management
* Full GUI interface for complex mixers(?)
Please Log in or Create an account to join the conversation.
- FDR
- Offline
I'm waiting for the UniversalTx module impatiently...
Please Log in or Create an account to join the conversation.
- cmpang
- Offline
- Posts: 296
Please Log in or Create an account to join the conversation.
- Wene001
- Offline
- Posts: 277
Please Log in or Create an account to join the conversation.
- Zaphod
- Offline
- Posts: 103
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
All the "critical stuff" on the tx module.
And "GUI" and alarms on android APP of choice.
Please Log in or Create an account to join the conversation.
- IMback!
- Offline
- Posts: 84
Also It might be better if the Model list was the main page and instead of clicking on the model name to get back to the list there was a back button or "list" button. Makes more sense that way (why should I click on "my v911" to get to the model list? clicking on "List" makes sense)
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
In mobile, for a given row, it is recommended to only have a single action. having a button to rename/delete as well as click-to-select is considered bad form.
There is also a secondary issue. For the model-name, I don't want to update it until you've actually finished typing, which basically means it needs to be a dialog popup as opposed to edit-in-place.
There are actually several functions needed:
1) Rename
2) Delete
3) Save As
4) Export (provide a way to transfer the model off the phone)
These all seem like file operations to me, which is why they are on the model-list page (which is similar to a file-selection page). having 3 buttons on the model page seems like too much.
How about this:
On startup the model page appears based on the last selected model. The model page has a 'back' arrow to get to the model-list page.
The model-list page gets a 'forward' arrow to get back to the model page
The current 'Model: <name>' line gets moved to the bottom and renamed to 'More Settings' or something. Pressing it will react like pressing the 'Configure' button does today.
Note that there will also need to be a menu linked to the phone's 'configure' button (and/or a top-level button to allow you to get there for devices without said button) to let you configure bluetooth properties and whatnot.
Please Log in or Create an account to join the conversation.
- IMback!
- Offline
- Posts: 84
Another option would be having delete/rename as a longpress action. this would allow having delete/rename on the model list where it IMO makes the most sense,
I would also like better feedback whitch model is currently active on the model list. In adition or instead of the proposed forward button the currently active model could have a green dot to the left of it or somthing like that.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
I know there are a couple of bugs:
1) Loading the page for the 1st time doesn't always work
2) if you select rename, you can't select it again until selecting delete
3) The txpower doesn't always show up on the model screen when you 1st load the page
I'm sure there are others too.
The code is now using an asynchronous bluetooth emulator which is closer to the real thing, and should help identify data availability race conditions.
Please Log in or Create an account to join the conversation.
- IMback!
- Offline
- Posts: 84
I still have one visual nit-pick if im not overstaying my welcome. I would be nicer if the model names where allways slightly to the right, so that they all line up with the one with the ceck mark.
Please Log in or Create an account to join the conversation.
- linux-user
- Offline
- Posts: 271
Took me a while to figure out, how to change a model-name.
1.) tried to click on the model name on top of the model page,
expecting a text box to open.
=> nothing happened
2.) just out of curiosity long pressed on the sentence
"Long-Press for more options"
=> nothing happened
3.) long pressed on the model name on the left side of main page
=> Ahh that's how it works!
Would it make sense, to have the "file manipulation option" on the tpo of the model config page as well?
Greetings
Manfred
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
I've aligned the icons and fixed the popup menu issues.
I've changed the 'long-press' text so it may be a bit more obvious. I'll think more on how to make rename more obvious. Maybe I'll just add an explicit button for it on the model page (rename being the most common option. I don't think delete/copy need to be there too)
Please Log in or Create an account to join the conversation.
- linux-user
- Offline
- Posts: 271
Agreed, rename should be on the model page, so you can give it a name just when creating a new modelPhracturedBlue wrote: Maybe I'll just add an explicit button for it on the model page (rename being the most common option. I don't think delete/copy need to be there too)
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- Cereal_Killer
- Offline
If so I imagine it could be taken a step further and (with properly equipped gear) display a location dot on either a map of even sat. image, that would be awesome, is that in the plans for this thing?
Nice to see new projects being undertaken! Thanks for the work.
Taranis X9E | DEVO 10 | Devo U7E | Taranis Q7
What I do in real life: rivergoequestrian.com/
Please Log in or Create an account to join the conversation.
- matrixFLYER
- Offline
- Posts: 109
FDR wrote: Nice project!
I'm waiting for the UniversalTx module impatiently...
How can I get the new 1.4 multi module pcb? Thank you.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
For a few bucks you can order 3 o them from OshPark. For a bit more, you can get 20 from seeed.
This isn't the trhead though. Go look for the multimod thread if you want to discuss a group buy or something
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
I'm running this software on my S3, and have been able to use it to bind the UniversalTx w/ Bluetooth in PPM mode.
The software is still very crude. I need to do something more intelligent about handling channel ordering, and need to spend some more time on the board-side software, but the board is basically working as a PPM->Deviation translator now.
It seems like at a minimum I need a test page to show current channel values, or else it will be difficult to figue out how to map the PPM channels to the protocol channels. If anyone has ideas about how to handle this, I'm all ears.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- Devation for mobile devices