C-17 Transport

More
10 Apr 2019 16:58 #73785 by Moeder
Replied by Moeder on topic C-17 Transport
@planger looks good...I'm sure goebish will update the test build for Fer tonight ;)

@Fer One more thing you could test for us: go in to protocol settings for xn297dump and set "Get Intvl" to 20. Then with the c-17 original tx already bound go back in to the xn297 Dump menu and start another scan. After hitting the first channel it will show "Measuring packet intervals...", this will take about half a minute in which the tx looks like it hangs. After that, tell us the result that is displayed. This is just a confirmation for something we already know, just want to make sure this works right. I suggest turning the option off again after that.

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

More
10 Apr 2019 17:14 #73786 by Moeder
Replied by Moeder on topic C-17 Transport
@planger which packet does payload xor go? forked goebishs branch on my GitHub

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

More
10 Apr 2019 17:20 #73787 by planger
Replied by planger on topic C-17 Transport
packet[3]=(packet[0]+packet[1]+packet[2]+packet[4])^(rx_tx_addr[0]^rx_tx_addr[1]^rx_tx_addr[2]);

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

More
10 Apr 2019 17:24 #73788 by Moeder
Replied by Moeder on topic C-17 Transport
@planger Thanks!

@Fer please try if the attached test build works with your c-17. Protocol GD00X and in protocol options select "Format" "V2"
Attachments:

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

More
10 Apr 2019 17:52 #73789 by planger
Replied by planger on topic C-17 Transport
There is a check somewhere which makes the TX ID valid. So not all IDs work with what I've provided to calculate the xor and channels.

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

More
10 Apr 2019 17:54 #73790 by Fer
Replied by Fer on topic C-17 Transport

Moeder wrote: @planger Thanks!

@Fer please try if the attached test build works with your c-17. Protocol GD00X and in protocol options select "Format" "V2"


I installed the new firmware you posted, still didn't bind with the V2 option selected. Also, there isn't there the 6th option anymore (for XNdump), but i guess that is not needed anymore.

Let me know if you want me to do something else.

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

More
10 Apr 2019 17:57 #73791 by Fer
Replied by Fer on topic C-17 Transport

planger wrote: There is a check somewhere which makes the TX ID valid. So not all IDs work with what I've provided to calculate the xor and channels.


Hmmm... I don't know if this makes any difference, but since i have 3 DEVO 10s, i have assigned one TX ID to all of them, so my models bind to all of them, no matter which one i use. If this is the problem, the ID is 1971.

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

More
10 Apr 2019 18:09 #73792 by planger
Replied by planger on topic C-17 Transport
There is another mistake line 200:
if (phase == GD00X_DATA)
{
NRF24L01_WriteReg(NRF24L01_05_RF_CH, hopping_frequency[hopping_frequency_no++]);
hopping_frequency_no &= 3; // 4 RF channels
}
That should be somethink like:
if (phase == GD00X_DATA)
{
NRF24L01_WriteReg(NRF24L01_05_RF_CH, hopping_frequency[hopping_frequency_no]);
if(Model.proto_opts[PROTOOPTS_FORMAT]==FORMAT_V1)
{
hopping_frequency_no++;
hopping_frequency_no &= 3; // 4 RF channels
}
}

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

More
10 Apr 2019 18:12 - 10 Apr 2019 18:14 #73793 by planger
Replied by planger on topic C-17 Transport

Fer wrote:

planger wrote: There is a check somewhere which makes the TX ID valid. So not all IDs work with what I've provided to calculate the xor and channels.


Hmmm... I don't know if this makes any difference, but since i have 3 DEVO 10s, i have assigned one TX ID to all of them, so my models bind to all of them, no matter which one i use. If this is the problem, the ID is 1971.

The TX ID is fixed in the code for now.
It's important to state the RX LED behavior which points where in the code there is an issue.
You see if the bind works when the RX stops blinking fast, after it can do one of the 2:
- If the RX does not see a valid signal it blinks slowly.
- If the RX receives a valid signal the led is solid.
Last edit: 10 Apr 2019 18:14 by planger.

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

More
10 Apr 2019 18:50 #73794 by Moeder
Replied by Moeder on topic C-17 Transport
fixed hopping channels and hard coded Fer's fixed id for testing purpose
Attachments:

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

More
10 Apr 2019 18:58 #73795 by goebish
Replied by goebish on topic C-17 Transport
Have you fixed bind channel as well ?

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

More
10 Apr 2019 19:08 - 10 Apr 2019 19:10 #73796 by Fer
Replied by Fer on topic C-17 Transport

Moeder wrote: fixed hopping channels and hard coded Fer's fixed id for testing purpose


I installed this, but it doesn't work correcty with my TX. I can't select anything, the ENT button doesn't work the way it should. I can't select model, nor select subprotocol or anything. I don't know why... Any ideas, or is it something i did wrong?
Last edit: 10 Apr 2019 19:10 by Fer.

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

More
10 Apr 2019 19:13 #73797 by Moeder
Replied by Moeder on topic C-17 Transport
That's odd, there are really only minor changes. Try reflashing

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

More
10 Apr 2019 19:28 #73798 by Fer
Replied by Fer on topic C-17 Transport

Moeder wrote: That's odd, there are really only minor changes. Try reflashing


I reflashed, had the same result. I installed the previous version posted above (that is c6ba262), and everything went back to normal. It must be something with this file.

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

More
10 Apr 2019 19:32 #73799 by goebish
Replied by goebish on topic C-17 Transport
I'll make another build

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

More
10 Apr 2019 19:40 #73800 by goebish

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

More
10 Apr 2019 20:01 #73801 by Fer
Replied by Fer on topic C-17 Transport
We are getting somwhere, but still no success. It tries to bind, but the light after very short period of time, flashes slowly (like planger mentioned).

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

More
11 Apr 2019 09:41 #73808 by goebish
Replied by goebish on topic C-17 Transport
hmmm we've been looking at the code with 6 eyes and everything seems fine ;)
Can you try to decrease TX power output and also try with another nrf24l01 module as you've several Deviation transmitters ?

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

More
11 Apr 2019 11:02 #73810 by Fer
Replied by Fer on topic C-17 Transport
Ok, as soon as i am back home, i will try with another DEVO, which has an original NRF in it, and will let you know.

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

More
11 Apr 2019 14:03 #73813 by Fer
Replied by Fer on topic C-17 Transport
Finally SUCCESS!!! The DEVO i used this time, is one with original CYRF plus XL7105 and NRF (CC2500 not installed in this DEVO).

I used the exact same file as with the other DEVO. The other DEVO has a CYRF and a 3in1 Module installed, and has never failed before to bind to anything it should. This is weird. I will have to try to bind it to some NRF small quads i have and see if there is something wrong with the 3in1 in this DEVO.

Also, i will upgrade my main DEVO with 4in1 to this version, and see if that one binds ok. Thank you all :cheer: :cheer:

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

Time to create page: 0.102 seconds
Powered by Kunena Forum