silver13 / CG023

Dual mode firmware for CG023(STM32)
MIT License
35 stars 23 forks source link

Flashing to Syma X5SC/X5SC-1 #6

Open entozoon opened 7 years ago

entozoon commented 7 years ago

Might this be suitable/feasible to flash to Syma X5SC/X5SC-1 type quadcopters? That'd be the dream come true for flying acro mode on a cheap medium sized toy drone

silver13 commented 7 years ago

there is a syma board with stm32fxxx processor, mine is marked SM-X5S-R , if you have one, then yes, it can be done

entozoon commented 7 years ago

Yes, my X5SC appears to have the same board!

Syma x5sc

I managed to successfully erase and flash the syma-x5s-r branch to it.. but can't bind the transmitter anymore.

It just slowly pulses a few times, then flashes rapidly forever without binding no matter what I try :(

Any ideas? I feel like I'm so close!

silver13 commented 7 years ago

that board looks identical to mine

That is a Beken BK2425? radio, I only coded one protocol for it, and tested it with devo. I haven't got a stock tx for it, so I'm not sure if the code is compatible with it or not

the chip is nrf24l01 compatible, you might be able to make a transmitter for it using something like this https://github.com/goebish/nrf24_multipro/

pixel3design-hub commented 6 years ago

BK2425 is similar, but not equal, to NRF24l01. It needs magic numbers and initialization of Bank0 and Bank1 to be operative. That's why it doesn't connect anymore. I wasd trying to solve it but is far beyond my coding knowledge. BK24xx Library Found it on GitHub and this is what I saw to solve the problem, but indeed I miserably failed. If Silver13 is capable (and I know he is) to read the code to integrate it in the branch, I (and many more ppls) will be sooooo happy.

silver13 commented 6 years ago

there is rx code for it, I just can't code the protocol because the devo code is a subset of the stock protocol, so it will only bind to devo as far as I know

silver13 commented 6 years ago

https://github.com/silver13/CG023/blob/master/OpenMicro/src/rx_syma_x5c_protocol.c

pixel3design-hub commented 6 years ago

Well... I found and hassle free (I hope) solution. I'm going to replace the BK2425 with an nRF24l01, as it is supposed to work out of the box... I'll give it a shot and I'll tell you. Cheers dude

roland2025 commented 6 years ago

Hi. You can use this code, https://github.com/roland2025/CG023/tree/syma-x5sc

It will bind with stock transmitter, but there are some issues with channel hopping, about 50% of packages get lost.

Received a logic analyser today, so I can soon try to take a look what the stock tx is doing.