SPI capture guide

More
22 Mar 2016 01:21 #44959 by C0ckpitvue 777
Replied by C0ckpitvue 777 on topic SPI capture guide
Trying to do some spi capture for the Yifei xs1.1,How do I establish the channels mosi,miso Ck,etc.I got 8 pins these are the multimeter voltage readings.
1.64
0.20
3.10
0.21
2.44
3.10
Grd
Vdd
Any help would greatly be appreciated

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

More
22 Mar 2016 01:23 #44960 by goebish
Replied by goebish on topic SPI capture guide
Please open a dedicated thread and make a picture of the board, maybe that could help identify the IOs, if not, just capture all 6 of them, we'll be able to sort them then.

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

More
22 Mar 2016 01:36 #44961 by C0ckpitvue 777
Replied by C0ckpitvue 777 on topic SPI capture guide
Thanks Goebish,I'll capture all 6 and let you guys do the laundry,lol :P

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

More
22 Mar 2016 03:00 #44963 by victzh
Replied by victzh on topic SPI capture guide
There is a way to figure out which is which. You need to find out only one signal - ground - correctly :-)

Other signals:
1. CLK, or CLOCK, or SCK, or SCLK is the most frequent signal, usually pulses are coming in groups of eight, but can be no visible pause between groups - depends on the device.
2. CS, or SS, or ENABLE - most infrequent signal - it usually active low (that is why it is often marked as CSN - Chip Select Negative, or CS with bar over it). So going down means the beginning of transfer, going up - the end of it. There can be large pauses between up and the next down.
3. MOSI, or SI, or DIN - usually the most diverse signal. It is transfer of information from MCU to radio chip and it is diverse.
4. MISO, or SO, or DOUT - slightly less diverse. The device usually reports status and this status is almost the same. An exception is when MCU reads data packet from RF chip - this happens when there is telemetry or when you deal with receiver.

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

More
23 Mar 2016 01:21 #45017 by C0ckpitvue 777
Replied by C0ckpitvue 777 on topic SPI capture guide
Thanks for the in depth walkthrough,had 2 of these yifei xs1.1 quadcopterss real great flyers,lost both 1 in tree and the other in a neighbors yard.Still have both stock tx that are horrible and the reason for the losses,0k not totally 99% tx 1% pilot error for making a mistake trying to fly them with the horrible tx,lol.Got another 1 coming from Tomtop soon as it gets in will upload the captures.Also waiting for 2 sj x300-2 tx coming from gearbest to catch capture from this nice flyer also,stay tuned and thanks a lot.

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

More
02 Apr 2016 03:26 #45613 by C0ckpitvue 777
Replied by C0ckpitvue 777 on topic SPI capture guide
Can someone pleaser check out this power capture for the yifei Xs1.1 and tell me if I'm capturing correctly.
www.mediafire.com/download/hqivd439b9cyp...Samples_%5B14%5D.zip

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

More
02 Apr 2016 03:35 #45614 by goebish
Replied by goebish on topic SPI capture guide
Looks like Channel 1 is clock, Channel 4 is CS and Channel 6 is MISO (not sure).
MOSI is missing, we can't do anything without it.

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

More
02 Apr 2016 03:49 #45615 by SeByDocKy
Replied by SeByDocKy on topic SPI capture guide

C0ckpitvue 777 wrote: Can someone pleaser check out this power capture for the yifei Xs1.1 and tell me if I'm capturing correctly.
www.mediafire.com/download/hqivd439b9cyp...Samples_%5B14%5D.zip


This model is not 100% compatible with the JJRC X1 ? (already deviated by HexFet btw)

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

More
02 Apr 2016 03:52 #45617 by C0ckpitvue 777
Replied by C0ckpitvue 777 on topic SPI capture guide
Which model name or protocol?

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

More
02 Apr 2016 04:01 #45618 by C0ckpitvue 777
Replied by C0ckpitvue 777 on topic SPI capture guide
Here's another attempt,hope I got it right.
www.mediafire.com/download/jh024vqb274tc...Samples_%5B10%5D.zip
Btw,this is this great little wind cutter being flown by double f

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

More
02 Apr 2016 04:09 - 02 Apr 2016 04:15 #45619 by SeByDocKy
Replied by SeByDocKy on topic SPI capture guide

C0ckpitvue 777 wrote: Which model name or protocol?


Last NB, Banyang=> X1 sub protocol


Sorry I am wrong ...
Last edit: 02 Apr 2016 04:15 by SeByDocKy.

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

More
02 Apr 2016 04:20 #45620 by C0ckpitvue 777
Replied by C0ckpitvue 777 on topic SPI capture guide
No prob,still waiting for the diagnosis of the recent power captures.Does all look ok?

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

More
02 Apr 2016 04:21 #45621 by goebish
Replied by goebish on topic SPI capture guide
No, looks like Channel 0 & Channel 2 carry data, but nothing that I can understand.

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

More
02 Apr 2016 05:21 #45624 by C0ckpitvue 777
Replied by C0ckpitvue 777 on topic SPI capture guide
Sorry for the confusion gentlemen,I was using 1.25 version of software.This s the capture from the 1.15 version,I hope it's good.
www.mediafire.com/download/xjqjp4jkbtp8l...ture_yifei_xs1.1.zip

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

More
02 Apr 2016 05:26 #45626 by C0ckpitvue 777

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

More
02 Apr 2016 05:35 #45627 by goebish
Replied by goebish on topic SPI capture guide
Your files are empty, post pictures of the transmitter, but in the dedicated thread please ;)
www.deviationtx.com/forum/protocol-devel...1-1-in-the-nightlies

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

More
06 Apr 2016 14:15 #45921 by 92zb
Replied by 92zb on topic SPI capture guide
HI, newbee here, trying to capture SPI but very confused. The analyser I have is from channel 1 to channel 8 then there is Clk pin and GDN pin.
But the Saleae software start from Channel 0, so which pin of the analyser correspond to Ch O? Or should I complete ignore it and start from Ch i.
Is GDN connection from TX is to be connected to the GDN Pin ?
After setting the Triger how do you activate it ?
Now there is confusion about collecting the data itslef. Some say 24 MHz and some says 8MHz. How many samples would be enough for each.
Thank you for your help.

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

More
06 Apr 2016 15:15 #45924 by victzh
Replied by victzh on topic SPI capture guide
I suspect that the analyzer you talk about is this: www.ebay.com/itm/24MHz-8-Channel-USB-Log...ino-MCU/371496519627 or something like it.
The lowest 2 pins are GND (not GDN) - contraction from Ground. Grounds of the TX and logic analyzer should be connected. CH1 corresponds to Channel 0 in the program, they were not very attentive when they made this knock-off of a real product.

You need to set a trigger to down front (actually it does not matter much, initial signal contains several nonsensical signal changes which are enough to trigger the analyzer) of CS signal. Then you start recording - the analyzer is going to wait for trigger and then you turn on your device and the analyzer will record your signal.

I record at 16MHz or sometimes 24MHz - 8MHz is often enough but does not preserve the timing correctly. You need to have enough samples to be able to operate the TX so that you catch signal from sticks - so 10 seconds or so at 16MHz - 100 to 200 million samples. If you're recording just chip initialization routine and idle signal you can get a second or so - 10 - 20 million.

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

More
06 Apr 2016 22:10 #45967 by 92zb
Replied by 92zb on topic SPI capture guide
You are right the analyzer is similar to it. I tried to capture data by switching on TX and binding it. First I was getting errors, see the photo attached. Then I altered the Analyzer Setting from CPOL=0 to COPL=1. I dont knnow whether it was right or wrong, but the errors disappeard, see the second photo. The data captured file is also attached. But I do not know if I realy have captured data or not. Please advice and guide me, as I am tottaly new to this. Thanks.

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

More
06 Apr 2016 22:13 #45968 by 92zb
Replied by 92zb on topic SPI capture guide
Sorry did attached photos, why it did upload I do not know, I will try to do it again.

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

Time to create page: 0.080 seconds
Powered by Kunena Forum