Frsky compatibility
- stevecox
- Offline
- Keep swinging
Adelaide
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
should have read this closer...oh wellFriedSky wrote: 1. The reset command has a delay of > 50us after being sent. ... On RC groups people have come across problems with the reset but not realised what was happening. If in doubt, read some known data out of the cc2500 before continuing.
You are rightFriedSky wrote: 2. The seed should be a "u32".
This is what I wrote in the Frsky docs:FriedSky wrote: So far i think the relationship between Tx ID and the hopping table channels is simply the TX ID modulo division 5. The 50 channels in the hopping table being spaced apart by 5 with the remainder added as an offset. I'm guessing that any selection 50 channels could be used.
which seems to indicate it doesn't much matter how you choose the 50 channel sequence.PhracturedBlue wrote: The binding packets define a list of 50 channels that will
be used during data transmission. At least for some
transmitters, these channels are sequential with a uniform spacing of 5,
but this is likely not strictly required. Channel values of 0 and 1 are
apparently invalid. From observed data, the 1st channel in the sequence
was 6.
FriedSky wrote: I'm probably going to have a go at automating the process of finding the connection between crc start value and Tx ID for the data packets.
Listening to the spi on the rx side wont work because the crc is generated and checked in software.
I'm looking at this now, but I don't see the issue you do. So far I've tried many different values, and my V8R7-II works fine with any txid I use (after binding) without recalculating the crc initialization
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
FriedSky:
What receiver are you using?
Please Log in or Create an account to join the conversation.
- midelic
- Offline
- Posts: 174
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
reveng -w 8 -s 00000e 0001d7 0002bb 000362 1257a6 12587d 1259a4 1e2d89 1e2ee5 1e2f3c 32101f 3fff45
width=8 poly=0xc1 init=0x6b refin=true refout=true xorout=0x00 check=0xc6 name=(none)
so polynomial is 0xc1, init is 6b and it is a little-endian CRC, the code I used in the mlink protocol should work here:
www.deviationtx.com/forum/protocol-devel...s-crc?start=20#20793
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
I am also unsure of the servo range on the v8 protocol. Will need to do some testing to find the proper range.
Please Log in or Create an account to join the conversation.
- midelic
- Offline
- Posts: 174
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
It seems 0x8CB is center value.
PXX protocol for FrSky modules
Please Log in or Create an account to join the conversation.
- FriedSky
- Offline
- Posts: 15
FriedSky wrote: I'm probably going to have a go at automating the process of finding the connection between crc start value and Tx ID for the data packets.
Listening to the spi on the rx side wont work because the crc is generated and checked in software.
I'm looking at this now, but I don't see the issue you do. So far I've tried many different values, and my V8R7-II works fine with any txid I use (after binding) without recalculating the crc initialization
Congratulations PhracturedBlue, Your on a roll now !.
I was beginning to think it was only Me that had the misfortune to hit every possible problem.
Re: CRC Start values
I did my initial testing with a V8R4 ... probably one of the early ones. I was convinced the CRC start value changed with TXID. I also have a V8R7 or something like that. I must go back and check.
Like i said, my code for AVR was a copy of your earlier work and maybe i introduced a bug / typo.
Have You sussed out the 3 data packet types yet ? From memory you can get away with sending 0x0F and 0xF0, 0x00 not used ?.
Regards, Rick.
Please Log in or Create an account to join the conversation.
- FriedSky
- Offline
- Posts: 15
PhracturedBlue wrote: there is a power-on-reset on the cc2500, so I don't think you should need to go through the reset procedure. At least my modules so far have not needed it.
I've lost count of the times i've updated firmware on a board and left the support chips in their previous state ... then went looking for a bUg that wasn't. NRF24L01+ was good for that.
Please Log in or Create an account to join the conversation.
- Hexperience
- Offline
- Posts: 588
There are 10 types of people in this world. Those that understand binary and those that don't.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
If you want to use telemetry, you should wire:
PA_EN to GDO0
LNA_EN to GDO2
If you have already wired PA_EN to 3.3V and LNA_EN to GND, that is ok too, but you can't receive telemetry that way.
Please Log in or Create an account to join the conversation.
- Hexperience
- Offline
- Posts: 588
There are 10 types of people in this world. Those that understand binary and those that don't.
Please Log in or Create an account to join the conversation.
- Hexperience
- Offline
- Posts: 588
PhracturedBlue wrote: yes, the current code is good enough for testing. Mostly just binding and servo motors. I wouldn't fly with it yet.
If you want to use telemetry, you should wire:
PA_EN to GDO0
LNA_EN to GDO2
If you have already wired PA_EN to 3.3V and LNA_EN to GND, that is ok too, but you can't receive telemetry that way.
Sorry, I'm not the best inside the radios.
I have installed a NRF24L01+ for SLT and it seems to be working fine.
I have both the XL2500 and the Ali Express CC2500. Should I use one over the other? The XL2500 is a little easier for me because I bought a wire wrap tool.
I will follow the same idea for the install of the 2500 module, obviously using TMS because TCS is already used. (or the other way around).
Is there a wiring diagram I could follow when installing this second module?
If I can't get it right, I'll just un-wrap the NRF24L01+ and only use the one extra module.
Cheers
PS. once I have it installed and working, is there anything I can do to help capture telemetry data?
There are 10 types of people in this world. Those that understand binary and those that don't.
Please Log in or Create an account to join the conversation.
- Hexperience
- Offline
- Posts: 588
So far nothing back on the telemetry, but I can move some servos!!
WooHoo!
There are 10 types of people in this world. Those that understand binary and those that don't.
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
Hexperience wrote: Bound to my D8R-II Plus!!
So far nothing back on the telemetry, but I can move some servos!!
WooHoo!
How solid is the connexion ?
Please Log in or Create an account to join the conversation.
- Hexperience
- Offline
- Posts: 588
I haven't got the tx back together yet,
There are 10 types of people in this world. Those that understand binary and those that don't.
Please Log in or Create an account to join the conversation.
- Hexperience
- Offline
- Posts: 588
I do have the GDO's going to the correct places. The LNA and PA are only connected to the GDO's and not directly connected to 3.3v in anyway.
There are 10 types of people in this world. Those that understand binary and those that don't.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- Frsky compatibility