Devation for mobile devices

More
07 Mar 2015 19:24 - 07 Mar 2015 19:25 #29442 by PhracturedBlue
Devation for mobile devices was created by PhracturedBlue
I am currently waiting for the arrival of the next round of UniversalTx boards, so I decided to start working on a related project. While the UniversalTx board will be plug-and-play on most radios running Deviation (devo7e will require soldiering), it can also be used with any radio supporting PPM. In the latter case, the UniversalTx board will include an optional bluetooth module which will allow configuring protocols from a smartphone.

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(?)
Last edit: 07 Mar 2015 19:25 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
07 Mar 2015 20:28 #29447 by FDR
Replied by FDR on topic Devation for mobile devices
Nice project!

I'm waiting for the UniversalTx module impatiently... ;)

Please Log in or Create an account to join the conversation.

More
08 Mar 2015 01:06 #29450 by cmpang
Replied by cmpang on topic Devation for mobile devices
me too ...

Please Log in or Create an account to join the conversation.

More
08 Mar 2015 15:08 #29455 by Wene001
Replied by Wene001 on topic Devation for mobile devices
Incredible...

Please Log in or Create an account to join the conversation.

More
08 Mar 2015 19:43 #29470 by Zaphod
Replied by Zaphod on topic Devation for mobile devices
I suddenly feel very dumb! This new project sounds awesome!

Please Log in or Create an account to join the conversation.

More
13 Mar 2015 03:01 #29623 by PhracturedBlue
Replied by PhracturedBlue on topic Devation for mobile devices
I have just about finished the app side (feel free to test it at the link above). There is still a bit of bluetooth stuff to take care of, but the API and capabilities are basically all there now. I'm also expecting the new UniversalTX boards to arive any day now.

Please Log in or Create an account to join the conversation.

More
13 Mar 2015 10:25 #29634 by Fernandez
Replied by Fernandez on topic Devation for mobile devices
That would be an excellent development!!

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.

More
13 Mar 2015 19:45 - 13 Mar 2015 19:48 #29661 by IMback!
Replied by IMback! on topic Devation for mobile devices
I don't like the way models are renamed/deleted. You have to go to the models configuration page and then back to the model list. This is not intuitive. I would be better if every model hat a rename/delete button next to them, or if the rename/delete buttons where on the model configuration page.

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)
Last edit: 13 Mar 2015 19:48 by IMback!.

Please Log in or Create an account to join the conversation.

More
13 Mar 2015 20:36 #29668 by PhracturedBlue
Replied by PhracturedBlue on topic Devation for mobile devices
I am not happy with this implementation either.

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.

More
13 Mar 2015 21:19 #29672 by IMback!
Replied by IMback! on topic Devation for mobile devices
Sounds good.

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.

More
13 Mar 2015 23:04 #29676 by PhracturedBlue
Replied by PhracturedBlue on topic Devation for mobile devices
Try it now.
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.

More
14 Mar 2015 12:14 - 14 Mar 2015 12:14 #29695 by IMback!
Replied by IMback! on topic Devation for mobile devices
UI Functionally wise its perfect now, except oc bugs.

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.
Last edit: 14 Mar 2015 12:14 by IMback!.

Please Log in or Create an account to join the conversation.

More
14 Mar 2015 13:28 - 14 Mar 2015 14:12 #29696 by linux-user
Replied by linux-user on topic Devation for mobile devices
Wau, marvellous project.
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" :silly:
=> 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
Last edit: 14 Mar 2015 14:12 by linux-user.

Please Log in or Create an account to join the conversation.

More
14 Mar 2015 14:45 #29699 by PhracturedBlue
Replied by PhracturedBlue on topic Devation for mobile devices
Thanks for the feedback.
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.

More
14 Mar 2015 16:54 #29703 by linux-user
Replied by linux-user on topic Devation for mobile devices

PhracturedBlue 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)

Agreed, rename should be on the model page, so you can give it a name just when creating a new model

Please Log in or Create an account to join the conversation.

More
14 Mar 2015 17:13 #29704 by PhracturedBlue
Replied by PhracturedBlue on topic Devation for mobile devices
Done

Please Log in or Create an account to join the conversation.

More
15 Mar 2015 18:52 #29748 by Cereal_Killer
Replied by Cereal_Killer on topic telemetry display on mobile device screen?
Just checking in, I played with it a bit and set up a couple differnt models. just wondering- will it be possible to display telemetry data on the phone IRT?

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.

More
29 Mar 2015 11:19 #30398 by matrixFLYER
Replied by matrixFLYER on topic Devation for mobile devices

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.

More
01 Apr 2015 01:07 - 01 Apr 2015 01:08 #30594 by PhracturedBlue
Replied by PhracturedBlue on topic Devation for mobile devices
I don't have any more boards for sale.
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
Last edit: 01 Apr 2015 01:08 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
01 Apr 2015 01:13 #30595 by PhracturedBlue
Replied by PhracturedBlue on topic Devation for mobile devices
the mobile_test link above now points at the latest version of the software. This software has full bluetooth support (with a robust emulator in the web version).
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.

Time to create page: 0.082 seconds
Powered by Kunena Forum