- Posts: 20
JD 395 cx-10
- bampi2k
-
- Offline
I have a devo7e with 4.0.1 stable release and the 2x2 switch mod recompiled. I also fly the v272 with a nrf24 module.
Right now I just don't know the exact modifications that I need to do to the stable 4.0.1 src to get the 'sky walker' protocol for yd717. Since I have not been following all the threads in deviation development it's very tough to keep track of the nightlies.
I am a newbie with most of this stuff. Sorry if I asked something stupid!
- closedsink
-
- Offline
- Posts: 9
I've read this thread through with great interest. Lots of great work has been done analyzing the CX-10 protocol, and I learned a lot about it, then I did some testing of my own. My goal was to be able to use the GREEN PCB CX-10 with my Taranis radio, by building a JR module that coverts the PPM stream to the proper SPI commands to the TX chip. I saw that a few folks tried to get the NRF42L01 to work, and as far as I can see no one was successful, so I "cheated", and used the XN297 instead. How? I removed the portion of PCB that contains the chip and associated components, and wired it to an Arduino Pro Mini, which does the protocol conversion. And last night, I finished putting it all together, and it works!! I was able to fly my CX-10 with my Taranis radio. I still need to add Mode 2/3 support, and flip control, but I'm very happy to have it working (especially because the stock TX is no longer usable after hacking it up
My application isn't for deviation, so I don't know how appropriate this is. Hopefully other folks here find this information useful. I'll post more details about what i did if folks are interested.
- hexfet
-
- Offline
- Posts: 1971
The nightly builds are now being updated in the download link over on the left. Can you use the latest from there?bampi2k wrote: It would be great if some of the experts here could write a quick guide to get the CX10 working.
I have a devo7e with 4.0.1 stable release and the 2x2 switch mod recompiled. I also fly the v272 with a nrf24 module.
Right now I just don't know the exact modifications that I need to do to the stable 4.0.1 src to get the 'sky walker' protocol for yd717. Since I have not been following all the threads in deviation development it's very tough to keep track of the nightlies.
I am a newbie with most of this stuff. Sorry if I asked something stupid!
If you just want to pull the yd717 support into your own build the place to start is the yd717 branch in the deviationtx repo.
- hexfet
-
- Offline
- Posts: 1971
Nice project! I'd like to see your protocol implementation, mainly to see if there are any differences in the chip initialization.closedsink wrote: My application isn't for deviation, so I don't know how appropriate this is. Hopefully other folks here find this information useful. I'll post more details about what i did if folks are interested.
- closedsink
-
- Offline
- Posts: 9
hexfet wrote:
Nice project! I'd like to see your protocol implementation, mainly to see if there are any differences in the chip initialization.closedsink wrote: My application isn't for deviation, so I don't know how appropriate this is. Hopefully other folks here find this information useful. I'll post more details about what i did if folks are interested.
OK, I started writing this up on my blog on rcgroups:
www.rcgroups.com/forums/showthread.php?t=2367400
I'll add more details, including the source, as soon as I can. The code is currently not pretty (I'm a hardware guy).
- closedsink
-
- Offline
- Posts: 9
hexfet wrote:
Nice project! I'd like to see your protocol implementation, mainly to see if there are any differences in the chip initialization.closedsink wrote: My application isn't for deviation, so I don't know how appropriate this is. Hopefully other folks here find this information useful. I'll post more details about what i did if folks are interested.
I've updated my blog on rcgroups with some info on protocol, as well as the Arduino source. Take a look and let me know if you have any questions.
www.rcgroups.com/forums/showthread.php?t=2367400
- goebish
-
- Offline
- NRF Weirdo
- Posts: 2633
I was wondering, has anyone already dumped the SPI bus in a blue PCB transmitter ?
It's also using a XN297 but I've read it's not compatible with green pcb CX-10 quad, I guess there are slight difference(s) in the protocol. I'll do it myself if nobody else has a dump already, just asking before hooking the logic analyzer...
- victzh
-
- Offline
- Posts: 1386
- closedsink
-
- Offline
- Posts: 9
goebish wrote: Nice work closedsink, thank you very much for sharing !
I was wondering, has anyone already dumped the SPI bus in a blue PCB transmitter ?
It's also using a XN297 but I've read it's not compatible with green pcb CX-10 quad, I guess there are slight difference(s) in the protocol. I'll do it myself if nobody else has a dump already, just asking before hooking the logic analyzer...
If you're able to get the capture of the blue board, please post. If it really uses the XN297, I might be able to tweak the software for my Arduino to work with it.
- goebish
-
- Offline
- NRF Weirdo
- Posts: 2633
closedsink wrote: If you're able to get the capture of the blue board, please post. If it really uses the XN297, I might be able to tweak the software for my Arduino to work with it.
Here it is
www.dropbox.com/s/yy8ymmvczd2w1e1/cx10-blue.zip?dl=0
- closedsink
-
- Offline
- Posts: 9
- goebish
-
- Offline
- NRF Weirdo
- Posts: 2633
MOSI in my capture is the red wire on my picture.
- goebish
-
- Offline
- NRF Weirdo
- Posts: 2633
The blue board have MOSI and MISO wired !
I hope we don't really need the data coming from MISO...
Ok, now I know where MOSI is... let's go for another capture after soldering a wire.
- closedsink
-
- Offline
- Posts: 9
- goebish
-
- Offline
- NRF Weirdo
- Posts: 2633
www.dropbox.com/s/yy8ymmvczd2w1e1/cx10-blue.zip?dl=0
pinout on the mcu is different:
brown: channel 0 -> MOSI
yellow: channel 1 -> CS
green: channel 2 -> CLK
red: channel 3 -> MISO
- closedsink
-
- Offline
- Posts: 9
Thanks for uploading this!
- goebish
-
- Offline
- NRF Weirdo
- Posts: 2633
I may have a try on my side with the help of your code (hey, there's my name in there
- hexfet
-
- Offline
- Posts: 1971
The switch from tx to rx mode happens without powering down, which along with the timing indicates the CE signal is used to move to the standby-1 state.
The tx also switches to receive mode during the data phase but the aircraft doesn't send anything. Maybe it's to recover if bind is lost.
Annotated capture attached. Good luck
- goebish
-
- Offline
- NRF Weirdo
- Posts: 2633
I'll make a capture with CE hooked up and try to code something...
updated capture
Oh s.... it's already 2am :/
- goebish
-
- Offline
- NRF Weirdo
- Posts: 2633
hexfet wrote: Annotated capture attached. Good luck
Here it is:
gist.github.com/goebish/f8982353c34f2b71ffe8
www.rcgroups.com/forums/showthread.php?t...&page=3#post31068187
unfortunately this still doesn't help for having a nrf24l01 to talk with a xn297...
-
Home
-
Forum
-
Development
-
Protocol Development
- JD 395 cx-10