- Posts: 409
SPI capture guide
- C0ckpitvue 777
- Offline
www.mediafire.com/download/a7jftawe9s11y...On+Capture.logicdata
I'm capturing spi for the sj x300-2 quadcopter
www.mediafire.com/view/b38895fz888pe97/sj%20x300-2.JPG#
Inside of the quad
www.mediafire.com/view/9dg6m9j3kqsbmr0/image%282%29.jpeg#
www.mediafire.com/view/gtfaj4z2rz5jak9/image.jpeg#
www.mediafire.com/view/rp1oihm8o5pezow/image%283%29.jpeg#
Please Log in or Create an account to join the conversation.
- wukong
- Offline
- Posts: 15
Link expired...
Please Log in or Create an account to join the conversation.
- Caerus
- Offline
- Posts: 59
www.mediafire.com/file/dsd8l2m4hds5zxe/J....Then.Bind.logicdata
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Yes, you can post directly in the H20 thread.
Please Log in or Create an account to join the conversation.
- Caerus
- Offline
- Posts: 59
Please Log in or Create an account to join the conversation.
- lani
- Offline
- Posts: 17
Opening the resulting CSV into excel can be then used e.g. for plotting the different bytes in the frame upon time. Very handy IMO.
#!/usr/bin/env python
import csv
# open file and create reader
with open('input.csv', 'rb') as f:
with open('output.csv', 'w') as o:
reader = csv.reader(f, delimiter=',', quotechar='"', skipinitialspace=True)
# read header
header = reader.next()
printstr = ""
current_packageid = 0
bytecount = 0
for row in reader:
new_packageid = row[1]
new_time = row[0]
new_byte = row[2]
if new_packageid != current_packageid:
o.write(str(bytecount) + "," + printstr + "\n")
printstr = new_time + "," + str(new_packageid)
current_packageid = new_packageid
bytecount = 0
#print in decimal so excel understands
printstr += "," + str(int(new_byte, 16))
bytecount += 1
# print last line
if printstr != "":
o.write(str(bytecount) + "," + printstr + "\n")
Please Log in or Create an account to join the conversation.
- mwm
- Offline
Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.
My remotely piloted vehicle ("drone") is a yacht.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
I tested different versions, device is detected as "logic", when starting a capture, it mentions it can't keep up with the selected sample rate.
Anybody can give some hints to get it work, I rarely use it......
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- 52dgj
- Offline
- Posts: 52
DEVO12,DEVO8S,DEVO7E,DEVO10,Taranis QX7,FS-i6
Please Log in or Create an account to join the conversation.
- dc59
- Topic Author
- Offline
- Posts: 799
52dgj wrote: dc59大大,请问你知道mc6的协议吗?如果知道可以告诉一声吗?谢谢了
很抱歉,我沒有買MC6所以對它使用的協定不是很清楚!
I'm sorry, I don't know about the protocol of MC6 TX due to I didn't buy it.
Please Log in or Create an account to join the conversation.
- manotroll
- Offline
- Posts: 14
Hantek 6022BE
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
Please Log in or Create an account to join the conversation.
- manotroll
- Offline
- Posts: 14
I had a protocol that works, I'll see if I can make funsionar and test others
Bayang X16 AH
Please Log in or Create an account to join the conversation.
- Bangdc
- Offline
- Posts: 7
could you help me take a look at this thread when you have time? www.deviationtx.com/forum/protocol-devel...tx-use-xn297lbw-chip
Thank you.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- SPI capture guide