How to bind several Tx to one model

More
20 Jul 2017 04:18 - 20 Jul 2017 04:18 #63530 by vlad_vy
Replied by vlad_vy on topic How to bind several Tx to one model

In the top-section of hardware.ini (above [modules])


I placed TXID at very top of hardware.ini
txid=XXXXXXXX
;Only useful for transmitters with an after-market vibration motor
...
...
Last edit: 20 Jul 2017 04:18 by vlad_vy.

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

More
20 Jul 2017 20:33 #63534 by jejeg
Replied by jejeg on topic How to bind several Tx to one model
thanks thanks
No problem with the devo 7e but big problem with the 12s, I can no longer pair any receiver and can no longer access the file "hardware ini".
I will do a complete reset because I can no longer delete this file alone ;-(
Has anyone had this problem ??

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

More
21 Jul 2017 01:21 - 21 Jul 2017 01:23 #63537 by magic_marty
Replied by magic_marty on topic How to bind several Tx to one model
sometimes on the devo12/12s if you are in usb mode and connected to the computer if you just power off or unplug it will corrupt the hardware.ini file..It's happened to me several times the only way to avoid this from happening is when you are ready to disconnect from the computer right click the drive letter for the devo and select "eject" before you unplug ...Since i have been doing it this way it has not corrupted my hardware file anymore..

Hopefully you made a full backup copy of your files and all you have to do is right click the drive and select "Repair Drive" then replace the hardware file with the one you hopefully have saved as backup...
Last edit: 21 Jul 2017 01:23 by magic_marty. Reason: typo

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

More
24 Jul 2017 20:47 #63579 by jejeg
Replied by jejeg on topic How to bind several Tx to one model
Thanks magic_marty ,It works, but I have to rebind all receivers :-(


I thought I could share my module of telemetry with all my models of aircraft with the same identifier but it does not work, while with the protocol dsm2 and the telemetry "orange" yes ???

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

More
25 Jul 2017 03:43 #63583 by vlad_vy
Replied by vlad_vy on topic How to bind several Tx to one model
If you change TXID, you need rebind all your models. You need rebind your telemetry module also. It will work with one model only. If you want to use telemetry module with several models, you need bind all these models and telemetry module with equal Fixed ID.

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

More
30 Jul 2017 07:37 #63634 by jejeg
Replied by jejeg on topic How to bind several Tx to one model
I can use my telemetry module on all my models using the same identifier. Thanks
Another problem has happened, all the rotary switches do not work anymore !!!

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

More
31 Jul 2017 06:32 #63647 by vlad_vy
Replied by vlad_vy on topic How to bind several Tx to one model
Don't forget to calibrate all AUX pots along with sticks.

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

More
31 Jul 2017 20:01 #63653 by jejeg
Replied by jejeg on topic How to bind several Tx to one model
Oups !! thanks ;)

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

More
31 Dec 2017 17:14 #66649 by gdenton
Replied by gdenton on topic How to bind several Tx to one model
Any user defined txid greater than 0x7fffffff is not working correctly due to a typo/mistake in config/hardware.c on line 107:

is:
Transmitter.txid = strtol(value, NULL, 16);

should be:
Transmitter.txid = strtoul(value, NULL, 16);

Transmitter.txid is defined as u32 in config/tx.h line 90.

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

More
01 Jan 2018 15:50 #66658 by Moeder
Replied by Moeder on topic How to bind several Tx to one model
@gdenton: good catch! Please go ahead and make a PR on Github for the fix, I don't want to take credit for this ;) Unless you don't want to register with GitHub.

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

More
02 Jan 2018 03:07 #66669 by gdenton
Replied by gdenton on topic How to bind several Tx to one model
I opened an issue as I don't know anything about PR's, thanks Moeder.

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

More
02 Jan 2018 06:33 #66670 by FDR
Replied by FDR on topic How to bind several Tx to one model
Does it really matter?
While the txid is indeed an u32, you can only give 6 digits of txid on the GUI, which is way under 0x7fffffff...

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

More
02 Jan 2018 07:20 #66671 by vlad_vy
Replied by vlad_vy on topic How to bind several Tx to one model
It's for hardware.ini processing.
        if(MATCH_KEY("txid")) {
            Transmitter.txid = strtol(value, NULL, 16);
        }
        return 1;

But, in my case it works fine with txid=FABEA2E6

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

More
02 Jan 2018 08:29 #66673 by FDR
Replied by FDR on topic How to bind several Tx to one model
Oops, you are right, of course.
I don't remember what number I used for the txid, but I will check it later...

BTW what are the symptoms of "not working correctly" in case of a txid over 0x7fffffff?

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

More
02 Jan 2018 08:50 #66674 by Moeder
Replied by Moeder on topic How to bind several Tx to one model
Strtol returns LONG_MAX for all values above that, so all txid higher than 0x7fffffff will be the same, which could mess up things with two transmitters using the same txid although users think they use different ones.

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

More
02 Jan 2018 09:11 #66675 by vlad_vy
Replied by vlad_vy on topic How to bind several Tx to one model
txid=7FFFFFF instead FABEA2E6

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

More
02 Jan 2018 10:06 #66676 by FDR
Replied by FDR on topic How to bind several Tx to one model
I see.
It well deserves a patch, however those who used larger txids need to rebind all their receivers if I'm not mistaken...

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

More
02 Jan 2018 10:22 #66677 by Moeder
Replied by Moeder on topic How to bind several Tx to one model
Unfortunately, yes. I see no other solution to this.

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

More
02 Jan 2018 19:49 #66684 by FDR
Replied by FDR on topic How to bind several Tx to one model
Phew, luckily I used smaller txid... :whistle:

I've changed it in the code.

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

More
03 Jan 2018 05:57 #66687 by Moeder
Replied by Moeder on topic How to bind several Tx to one model
Without a pull request.. You're so naughty :P

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

Time to create page: 0.038 seconds
Powered by Kunena Forum