Storing RX ID ?

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
17 Apr 2016 13:04 #46693 by goebish
Storing RX ID ? was created by goebish
Hi,

I started having a look at the FlySky AFHDS 2A protocol
www.deviationtx.com/forum/protocol-devel...l-as-used-i10-i6-it4

RX ID (32 bit) needs to be stored on the TX after bind, how can I store it ?
I thought of protocol options, but that's not very clean, do we have another way to store values ?

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

More
17 Apr 2016 13:08 #46694 by PhracturedBlue
Replied by PhracturedBlue on topic Storing RX ID ?
why are protocol options the wrong place? this seems like an ideal place to me. I assume there is no reason to view this value? We should enhance the protocol options to have a non-visible storage, which you could then use. Alternatively, can the fixedid be used for this value? Do we need both a fixed-id and a Rx-Id?

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

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
17 Apr 2016 13:10 #46695 by goebish
Replied by goebish on topic Storing RX ID ?
Yes, that would be better to hide it.

RX ID is sent by the RX at bind time then it needs to be sent by the TX in every packets.

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

More
17 Apr 2016 14:47 #46701 by FDR
Replied by FDR on topic Storing RX ID ?
Then it is the fixed id...

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

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
17 Apr 2016 14:49 #46703 by goebish
Replied by goebish on topic Storing RX ID ?

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

More
17 Apr 2016 14:58 #46705 by FDR
Replied by FDR on topic Storing RX ID ?
Oops!

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

  • goebish
  • goebish's Avatar Topic Author
  • Offline
  • I Void Warranties
More
07 Aug 2016 13:22 - 07 Aug 2016 14:02 #52540 by goebish
Replied by goebish on topic Storing RX ID ?
Sorry to revive this thread, but I need a solution for that.

Until now I used protocol options to store RXID for my afhds2a test builds but there're some issues with that:
- it shouldn't be user modifiable
- I need to store a 32 bit value, looks like only 16 bit (int16_t) can be used for option items so:
- I've to use 2 16 bit values, this is becoming a problem because:
- that takes 2 protocol option "slots", which are limited to 4 per protocol (NUM_PROTO_OPTS), and now I'm running out of slots for a new option (SBUS output enabled/disabled)

Do we already have an existing solution for this issue ?
If not, maybe we could add a function to ProtoCmds eg case PROTOCMD_GETMISCOPTIONS and a .proto_miscopts[] field to the Model struct ?
Last edit: 07 Aug 2016 14:02 by goebish.

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

Time to create page: 0.034 seconds
Powered by Kunena Forum