New SYMA protocol

More
01 Feb 2014 23:09 #19642 by victzh
Replied by victzh on topic New SYMA protocol
Failed to open for me in Saleae software. Mine is Logic 1.1.15.

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

More
01 Feb 2014 23:19 #19644 by SeByDocKy
Replied by SeByDocKy on topic New SYMA protocol

victzh wrote: Failed to open for me in Saleae software. Mine is Logic 1.1.15.



I am using the last beta 1.1.18 ....

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

More
01 Feb 2014 23:39 - 01 Feb 2014 23:42 #19648 by hexfet
Replied by hexfet on topic New SYMA protocol
There's a note on the beta software page:

A Note on Saved Files
The logic software can save captures (*.logicdata) and setups (*.logicsettings). These saved files are forward compatible, but not backwards.
Files saved using the Logic 1.1.18 beta software will not be openable in older versions of the software, but they will be openable in future releases. Please keep this in mind when you save your work.
Last edit: 01 Feb 2014 23:42 by hexfet.

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

More
01 Feb 2014 23:44 #19649 by SeByDocKy
Replied by SeByDocKy on topic New SYMA protocol

hexfet wrote: There's a note on the beta software page:

A Note on Saved Files
The logic software can save captures (*.logicdata) and setups (*.logicsettings). These saved files are forward compatible, but not backwards.
Files saved using the Logic 1.1.18 beta software will not be openable in older versions of the software, but they will be openable in future releases. Please keep this in mind when you save your work.


Everyone is using the 1.1.15 ?

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

More
01 Feb 2014 23:54 #19652 by SeByDocKy
Replied by SeByDocKy on topic New SYMA protocol

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

More
02 Feb 2014 00:07 #19654 by hexfet
Replied by hexfet on topic New SYMA protocol
Here's the capture processed with a script of mine. Happy to share the source if anyone wants it.

Haven't looked closely yet. Looks like init, bind, and data.

Something strange that doesn't show up in the CSV file is a bunch of transitions on MOSI after the init sequence but with enable high. Don't know what that means.

File Attachment:

File Name: capture1_fmt.csv.txt
File Size:337 KB
Attachments:

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

More
02 Feb 2014 00:17 #19655 by SeByDocKy
Replied by SeByDocKy on topic New SYMA protocol
Ok I am uploading a video of my experiment ..... maybe I am doing something wrong. I will also upload the associated logicdata file

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

More
02 Feb 2014 00:30 #19657 by SeByDocKy
Replied by SeByDocKy on topic New SYMA protocol

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

More
02 Feb 2014 00:34 #19658 by SeByDocKy
Replied by SeByDocKy on topic New SYMA protocol
I will go to sleep now ....

Can continue tmr ....

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

More
02 Feb 2014 00:42 - 02 Feb 2014 02:38 #19659 by hexfet
Replied by hexfet on topic New SYMA protocol
Edit: Try binding this quad with the YD717 protocol. There may be a slight difference in the data packets, but it looks like it should bind at least.

Spoke too soon. I see two differences from YD717.
- A different bind address is used. I think this is pre-configured in the rx so it's unlikely to bind.
- The data packets are 9 bytes instead of 8. Looks like the extra byte is a checksum.

Is there a good way to accommodate these differences without duplicating the rest of the yd717 code?
Last edit: 02 Feb 2014 02:38 by hexfet.

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

More
02 Feb 2014 05:10 #19671 by victzh
Replied by victzh on topic New SYMA protocol
I decode it from SPI output - it's a bit easier, but does not allow extra signals like CE. The results of decoding for the first data are attached.
Attachments:

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

More
02 Feb 2014 05:18 - 02 Feb 2014 05:21 #19673 by cstratton
Replied by cstratton on topic New SYMA protocol

hexfet wrote: Something strange that doesn't show up in the CSV file is a bunch of transitions on MOSI after the init sequence but with enable high. Don't know what that means.


I'd suspect that the SPI bus is also being used for something else, like an LCD, with it's own enable. Possibly the lines could even be being used for something that is not SPI - while the enable is invalid, it doesn't really matter to the radio chip what the processor does with them.

Incidentally, for mapping sticks to fields in a packet, I found the ability of sigrok (instead of saleae) client software to provide raw streaming output to a custom decoder quite useful. At 1 or 2 MSPS my decoder would fall behind, so I ended up running short bursts of capture/decode in a loop repeating a few times a second. That let me move sticks and push buttons, and immediately see how the packet data changed.
Last edit: 02 Feb 2014 05:21 by cstratton.

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

More
02 Feb 2014 06:06 #19676 by PhracturedBlue
Replied by PhracturedBlue on topic New SYMA protocol
I keep meaning to try sigrok. that is a pretty cool capability.

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

More
02 Feb 2014 07:56 - 02 Feb 2014 08:27 #19679 by SeByDocKy
Replied by SeByDocKy on topic New SYMA protocol
Is the YD717 protocol have been updated since NB from 10 juanuary ?. Coz I tried with my actual version.... it doesn't work but the TX is emitting strange noise ... Maybe I don't have the last version.

EDIT : the video with 16 juanuary Happyharry build



With the 26 juanuary build, the same problem



@victzh: with your decoded packet can you now be sure that this new SYMA protocol would be compatible with the nRF24L01 ?


Anyways, thanks guy for trying this new challenge :). I am impressed by your tecknic level skill in this area ... I am completly rooky but I would like to learn :)
Last edit: 02 Feb 2014 08:27 by SeByDocKy.

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

More
02 Feb 2014 10:21 #19681 by SeByDocKy
Replied by SeByDocKy on topic New SYMA protocol
Ok, thanks to hexfet, I did an error in saleae logic analyser in the SPI mapping configuration.

Now I got some extra informations appearing on timeplot. I exported both the session as well as the SPI output in the following zip



www.wetransfer.com/downloads/172a95a18f8...0140202101753/1f56af

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

More
02 Feb 2014 14:47 #19686 by hexfet
Replied by hexfet on topic New SYMA protocol

cstratton wrote:

hexfet wrote: Something strange that doesn't show up in the CSV file is a bunch of transitions on MOSI after the init sequence but with enable high. Don't know what that means.


I'd suspect that the SPI bus is also being used for something else, like an LCD, with it's own enable. Possibly the lines could even be being used for something that is not SPI - while the enable is invalid, it doesn't really matter to the radio chip what the processor does with them.


That's probably the explanation. Clock and MISO are also inactive during the MOSI activity. In any case it won't affect the radio chip.

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

More
02 Feb 2014 14:57 #19687 by hexfet
Replied by hexfet on topic New SYMA protocol

SeByDocKy wrote: Is the YD717 protocol have been updated since NB from 10 juanuary ?.
With the 26 juanuary build, the same problem


The 26 Jan version has the latest YD717, but as mentioned I don't think it will bind.

For testing I'll make a YD717 version that has a protocol option to support the Syma X4. If you're not building from source I can make a dfu file for you. Is that a Devo 7e radio?

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

More
02 Feb 2014 18:00 #19702 by hexfet
Replied by hexfet on topic New SYMA protocol
Still learning myself, but I think a new yd717.mod file is all that's needed to try this on a 7e. Please copy this file to the protocol directory on your radio (after saving the yd717.mod that's already in there!).

Select YD717 protocol and click ENT to bring up the options. Change Model to Syma X4. Then click re-init and power up the Syma. Hopefully it will bind. There are still two minor differences in the bind process but they shouldn't matter.

One thing in your video is concerning. The YD717 protocol should stay in bind mode until successful, but it looks like the bind notice on your screen disappears as soon as it starts. Are you flying any nRF24L01 protocols successfully? I killed my nRF module with static and now the bind mode ends as soon as it starts, resulting in the same behavior as in your video.

I've included an annotated SPI capture. It was almost a complete copy/paste from the YD717 version.

Looks like at least the throttle channel should be in the correct spot. Not sure about the others.


File Attachment:

File Name: SymaX4module.zip
File Size:55 KB
Attachments:

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

More
02 Feb 2014 18:04 #19703 by SeByDocKy
Replied by SeByDocKy on topic New SYMA protocol

hexfet wrote: Still learning myself, but I think a new yd717.mod file is all that's needed to try this on a 7e. Please copy this file to the protocol directory on your radio (after saving the yd717.mod that's already in there!).

Select YD717 protocol and click ENT to bring up the options. Change Model to Syma X4. Then click re-init and power up the Syma. Hopefully it will bind. There are still two minor differences in the bind process but they shouldn't matter.

One thing in your video is concerning. The YD717 protocol should stay in bind mode until successful, but it looks like the bind notice on your screen disappears as soon as it starts. Are you flying any nRF24L01 protocols successfully? I killed my nRF module with static and now the bind mode ends as soon as it starts, resulting in the same behavior as in your video.

I've included an annotated SPI capture. It was almost a complete copy/paste from the YD717 version.

Looks like at least the throttle channel should be in the correct spot. Not sure about the others.


File Attachment:

File Name: SymaX4module.zip
File Size:55 KB


Yes my nRF24L01+ is working perfectly with my V2x2 quad for example.

Ok I will test your mod now .... feedback in few minutes

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

More
02 Feb 2014 18:24 - 02 Feb 2014 18:27 #19709 by SeByDocKy
Replied by SeByDocKy on topic New SYMA protocol
Strange ... I can't bind or re-init at all ... no action at all ...


Very strange ...

Did you installed the last Nightly build before ?


EDIT . Your YD717 seems to not be compatible with my current .dfu and or for devo7E
Last edit: 02 Feb 2014 18:27 by SeByDocKy.

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

Time to create page: 0.066 seconds
Powered by Kunena Forum