- Posts: 76
SPI capture guide
- 92zb
-
- Offline
Less
More
- 92zb
-
- Offline
Less
More
- Posts: 76
06 Apr 2016 22:22 #45970
by 92zb
Replied by 92zb on topic SPI capture guide
One more thing, what are those red dots appering on CLK, what does it mean ?
Here is the data file :-
www.mediafire.com/download/maw5lll0031r4cw/TX-On-Off.csv
Here is the data file :-
www.mediafire.com/download/maw5lll0031r4cw/TX-On-Off.csv
- C0ckpitvue 777
-
- Offline
Less
More
- Posts: 409
07 Apr 2016 00:05 #45984
by C0ckpitvue 777
Replied by C0ckpitvue 777 on topic SPI capture guide
Which model is this?
- victzh
-
- Offline
Less
More
- Posts: 1386
07 Apr 2016 02:01 #45988
by victzh
Replied by victzh on topic SPI capture guide
Don't export to CSV, just upload the whole session - .logicdata file. It can be opened and zoomed in while CSV needs to be looked by bare eyes.
- 92zb
-
- Offline
Less
More
- Posts: 76
07 Apr 2016 10:52 #46007
by 92zb
Replied by 92zb on topic SPI capture guide
It is for LIANSHENG LS114 4CH 2.4GHz RTF UFO Drone. I will open a new thread for it when every thing captured properly.
www.ebay.co.uk/itm/LIANSHENG-LS114-4CH-2...?hash=item3cfe669d8f
www.ebay.co.uk/itm/LIANSHENG-LS114-4CH-2...?hash=item3cfe669d8f
- 92zb
-
- Offline
Less
More
- Posts: 76
07 Apr 2016 13:53 #46029
by 92zb
Replied by 92zb on topic SPI capture guide
Here is the first capture. There is a problem though. When I connect GND to the analyzer I do not get any signal from CSN, without it error of "Mismatch" and red dots on clock. Any idia ?
www.mediafire.com/download/kbrfkd3q3r2v0fz/TX-ON-BIND-OFF.7z
www.mediafire.com/download/kbrfkd3q3r2v0fz/TX-ON-BIND-OFF.7z
- victzh
-
- Offline
Less
More
- Posts: 1386
07 Apr 2016 15:13 #46033
by victzh
Replied by victzh on topic SPI capture guide
No, your capture is invalid. While you have CS (it's positive, not negative as it is usually happens, but SPI has many options), your clock is invalid. Clock pulses mark the bits of a byte transferred, so there should be packs of 8 clock pulses at least. Your clock repeats CS edges mainly, so there is high intertalk between the signals. Another option is weakly connected ground - all your signals look weird, that's one sign of bad ground connection. Also, the shorter the wires between your device and logic analyzer the better.
- 92zb
-
- Offline
Less
More
- Posts: 76
08 Apr 2016 20:35 #46128
by 92zb
Replied by 92zb on topic SPI capture guide
This is a new capture. Please have a look and let me know which channel is right. Thanks
www.mediafire.com/download/gz81inmxhtz0d6f/TX-ON-BIND-OFF.7z
www.mediafire.com/download/gz81inmxhtz0d6f/TX-ON-BIND-OFF.7z
- victzh
-
- Offline
Less
More
- Posts: 1386
09 Apr 2016 04:10 #46151
by victzh
Replied by victzh on topic SPI capture guide
Now, we are talking! It's better, your signals are in this order: ENABLE, MISO, MOSI, CLOCK. But one thing bothers me - it's low complexity. While it's well formed - multiple of 8 clock pulses per one CS (ENABLE in Saleae parlance) pulse, some changes on MISO and MOSI which do not contradict other signals - they still are changing very little, not as if it was a real transmission. Can you read markings on a radio chip?
- 92zb
-
- Offline
Less
More
- Posts: 76
09 Apr 2016 15:23 #46181
by 92zb
Replied by 92zb on topic SPI capture guide
The chip is XN297 1452, the configuration is like this :-
( 1) 100mV
( 2) 3.30V
( 3) .5V
( 4) GND
( 5) 2.35V
( 6) 1.35V
(7) 2.35V
[8 ] 1.5V
1) = CLK
3) = CSN
4) = GND
6) = MISO
7) = MOSI
The data extracted @ 24MHz. Please let me know if any thing has to be changed. After that I will go ahead the extract the rest of the Data.
( 1) 100mV
( 2) 3.30V
( 3) .5V
( 4) GND
( 5) 2.35V
( 6) 1.35V
(7) 2.35V
[8 ] 1.5V
1) = CLK
3) = CSN
4) = GND
6) = MISO
7) = MOSI
The data extracted @ 24MHz. Please let me know if any thing has to be changed. After that I will go ahead the extract the rest of the Data.
- victzh
-
- Offline
Less
More
- Posts: 1386
11 Apr 2016 23:01 #46332
by victzh
Replied by victzh on topic SPI capture guide
It's a known chip, but so far no real data is present in your capture. As I said - it's low complexity, you have CS and clock right but MOSI and MISO do not look real. They change very little and do not form sensible commands. Check your soldering on MISO and MOSI.
- 92zb
-
- Offline
Less
More
- Posts: 76
12 Apr 2016 14:51 #46365
by 92zb
Replied by 92zb on topic SPI capture guide
How about this capture
www.mediafire.com/download/qwyr7tbs9l820...ND-TX-ON-BIND-OFF.7z
www.mediafire.com/download/qwyr7tbs9l820...ND-TX-ON-BIND-OFF.7z
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
12 Apr 2016 17:48 - 12 Apr 2016 17:51 #46373
by goebish
Replied by goebish on topic SPI capture guide
At first glance it looks a lot like MT99xx / H7 protocol.
I think this proto is not in nightly yet because I've to size optimize xn297 emulation layer for one of its sub-format (it's on my priority todo list), but there's a test build here:
www.deviationtx.com/forum/protocol-devel...in-h7?start=60#42624
I think this proto is not in nightly yet because I've to size optimize xn297 emulation layer for one of its sub-format (it's on my priority todo list), but there's a test build here:
www.deviationtx.com/forum/protocol-devel...in-h7?start=60#42624
Last edit: 12 Apr 2016 17:51 by goebish.
- 92zb
-
- Offline
Less
More
- Posts: 76
12 Apr 2016 19:41 #46379
by 92zb
Replied by 92zb on topic SPI capture guide
If you mean the following test built
deviation-devo7e-v4.0.1-37035f6.zip
I tried but no joy.
deviation-devo7e-v4.0.1-37035f6.zip
I tried but no joy.
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
12 Apr 2016 20:08 #46380
by goebish
Replied by goebish on topic SPI capture guide
Ok, probably a protocol option is required, please add your captures to the H7 thread, I'll have a further look
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
12 Apr 2016 22:56 - 12 Apr 2016 23:14 #46392
by goebish
Replied by goebish on topic SPI capture guide
Ah OK, I've already seen this kind of protocol some time ago in another forum but never implemented it, it's pretty similar to H7 protocol but has something weird in the sense that it has a channel hopping sequence, but it is not used actually because it always switches to the same channel before transmitting the packets 
eg:
25 3D ; set RF channel 3D
27 70 ; clear interrupts
E1 00 ; flush TX fifo
25 2D ; set RF channel 2D
A0 E1 88 70 70 20 1F 00 27 B0 ; fill TX fifo then transmit packet
; wait packet period
25 0E ; set RF channel 0E
27 70 ; clear interrupts
E1 00; flush TX fifo
25 2D; set RF channel 2D (!!!!)
A0 E1 88 70 70 20 1F 00 00 89 ; fill TX fifo then transmit packet
; wait packet period
... and so on ... so in the end it always transmits on channel 2D.
It shouldn't be very hard to implement, I've to check a few stuffs then I'll try to do it.
Have you opened a dedicated thread yet ?
eg:
25 3D ; set RF channel 3D
27 70 ; clear interrupts
E1 00 ; flush TX fifo
25 2D ; set RF channel 2D
A0 E1 88 70 70 20 1F 00 27 B0 ; fill TX fifo then transmit packet
; wait packet period
25 0E ; set RF channel 0E
27 70 ; clear interrupts
E1 00; flush TX fifo
25 2D; set RF channel 2D (!!!!)
A0 E1 88 70 70 20 1F 00 00 89 ; fill TX fifo then transmit packet
; wait packet period
... and so on ... so in the end it always transmits on channel 2D.
It shouldn't be very hard to implement, I've to check a few stuffs then I'll try to do it.
Have you opened a dedicated thread yet ?
Last edit: 12 Apr 2016 23:14 by goebish.
- victzh
-
- Offline
Less
More
- Posts: 1386
12 Apr 2016 23:33 #46394
by victzh
Replied by victzh on topic SPI capture guide
Interesting strategy!
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
12 Apr 2016 23:55 #46396
by goebish
Replied by goebish on topic SPI capture guide
Smells like debug firmware sent to production
- 92zb
-
- Offline
Less
More
- Posts: 76
13 Apr 2016 04:40 #46400
by 92zb
Replied by 92zb on topic SPI capture guide
[quote="goebish" post=46392
Have you opened a dedicated thread yet ?[/quote]
I will open a dedicated trread for it and let you know.
Have you opened a dedicated thread yet ?[/quote]
I will open a dedicated trread for it and let you know.
Time to create page: 0.466 seconds
-
Home
-
Forum
-
Development
-
Protocol Development
- SPI capture guide