- Posts: 77
Fixed_id queries
- vmsda
- Topic Author
- Offline
1. If a RxA binds to a modelX.ini file with a fixed-id coded in TxA, the Rx is "stamped" with that fixed-id associated with TxA.
2. A modelY.ini in TxA will fail to bind to RxA if it presents a different fixed-id.
3. A modelY.ini in TxB will fail to bind to RxA even if it presents the same fixed_id.
4. As a corollary: every model.ini file should be specified with a different id to avoid binding a model.ini file to the wrong aircraft.
How deluded am I?
Please Log in or Create an account to join the conversation.
- Cereal_Killer
- Offline
3 is true in stock DeviationTx FW however any number of Devo transmitters can be forced to ID themselves (called TXID) the same therefore allowing the situation in your scenario 3 to be false.
See here for an explanation on that:
www.deviationtx.com/forum/how-to/6358-ho...eral-tx-to-one-model
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.
- vmsda
- Topic Author
- Offline
- Posts: 77
Please Log in or Create an account to join the conversation.
- FDR
- Offline
In deviation it is not true until you assign different fixed IDs. It's your choice.
I like to have different configs for the same model...
Please Log in or Create an account to join the conversation.
- Thomas.Heiss
- Offline
- Posts: 698
For DSMx protocol I do not use FixedIDs in DeviationTX model configs so far....I thought I was OK with ModelMatch automatically.
Would have to re-test 1-3 models to make sure....
Actually you do NOT want to fly a 450 3D flybar heli with a glider / warbird model config, neither you would want to fly the StrykerQ as delta/elevon wing with your 450 flybar settings. You really want ModelMatch
If you want to share 1-3 model configs, well then you would have to share the same Fixed modelID, which is not possible on Spektrum transmitters and this requires a re-bind to the #2, #3 model.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
There's a request in this thread to change DSM protocols to auto-bind if fixed id is set to none (like Devo and Flysky) and I've made a test build. If this is adopted it will (partly) break your model files (they'll still work but deviation will go into bind mode every time if the fixed id is set to none. You'll have to exit bind mode and then the receivers will connect.)
I do think the auto-bind change is a good idea. It probably should be that way for all protocols capable of a true bind just to encourage users to set some fixed id value before binding. But I'm hesitant to make any changes that would break existing model files.
Maybe we should put a random fixed id in the default model files instead of them all having the same value...
Please Log in or Create an account to join the conversation.
- Cereal_Killer
- Offline
hexfet wrote: Maybe we should put a random fixed id in the default model files instead of them all having the same value...
I think this is a great idea, I always ALWAYS set a fixed ID but sometimes worry (because I'm crazy) that I've already used that number (I have a tendency to come up with the same repeating number sequences subconsciously when attempting to make up random numbers in my head). For the last ~6 months now if I'm setting up a new model i just pull up a random number generator on my phone just so I can trust I'm entering a truly random number, stupid pattern loving human brain...
Is there an easy way to get STM32 to deliver a random number? I've played with randomization on 8bit PIC and AVR and it's not simple to do (in either of those 8bit architectures, especially not AVR)...
On AVR it's nearly impossible, on PIC I can setup a randomization table then feed it I crazy (but solvable) algorithm to come up with X, Y coordinates on the table for which random solution to use that time
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.
- gdenton
- Offline
- Posts: 71
All of my ~40 model files have fixed id set to none...
Can you not make this an option?
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
But I think those model files are broken already, at least as far as the fixed id functionality. Any of those 40 DSM receivers will respond when the tx is powered on with any of the 40 models. The purpose of fixed id is to prevent that from happening by having a different fixed id for each model.
Seems like it would be better for deviation to manage fixed id automatically to enforce this safety aspect. Remove it from the GUI. Use a separate option for auto-bind. If for some reason it was desired to have two models share a fixed id the model.ini file could be edited. But managing fixed id automatically seems non-trivial - supporting trading/copying of model.ini files, changing fixed id on model Copy, etc. Needs more thought - comments invited.
Please Log in or Create an account to join the conversation.
- magic_marty
- Offline
- Posts: 706
That way the user could choose to change or if they wanted to use the same ID proceed with the bind process..
Please Log in or Create an account to join the conversation.
- FDR
- Offline
I think we should remove the fixed id from the default model.ini files, and generate a random id with the added model slot number each time it auto binds, but only in case of auto binding, i.e. when the fixed id is empty. The auto generated id wouldn't be saved to the model.ini file...
I would leave the fixed id field editable and let the user decide what id he wants to use for his different (or same) models.
We would also need an error message for those protocols, which are not capable of auto bind, and the fixed id is empty...
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
I can't think of any way to make auto-bind backward compatible without a configuration option, and that seems awkward. Looking at the code it seems the way auto-bind works for Devo and Flysky is the intended design, but DSM (and Frsky) didn't follow the intention. However a breaking fix is not likely to be merged by anyone but PB.
Are there any reasons to have multiple models with the same fixed id other than when moving a receiver from aircraft to aircraft?
Current thought is to remove the default fixed id from model.ini. If no fixed id is set when the bind button is pressed, then generate and store a random id (as cereal_killer suggested). The fixed id stays in the GUI for cases where a user wants to force a particular value. This doesn't solve the auto-bind issue but would help prevent users from inadvertently binding multiple models with the same fixed id.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
For example I have a separate trainer config, which is way more complex and is tamed down, but I use an other one if I fly it myself.
One can have a separate config for sports or indoor flying and an other one for 3D ...etc.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- Fixed_id queries