- Posts: 37
18 channels for DSM2 / DSMX ?
- Cesco
- Topic Author
- Offline
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- Cesco
- Topic Author
- Offline
- Posts: 37
I would need the .dfu files for Devo12S or Devo10S. I have both. The channels 13 and 14 could be data from chan 1 and 2 or even a fixed value, just to test if the SAT is capable of 14 channels or not.
Then, i wonder how the DX18 does 18 channels? Is it 18 chan or not?
Please Log in or Create an account to join the conversation.
- Cesco
- Topic Author
- Offline
- Posts: 37
I was able to make a dsm version sending 14 channels, last two channels a fixed value (upper=1 and i=5 or i=6). And it works, i can read those values of channel 13 and 14 from the SAT
Now the real task is to do this via chmap[] and Channels[] ...
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
protocol
DELETYED
target\devo12
DELETED
I don't test if it works, but you can try.
Please Log in or Create an account to join the conversation.
- Cesco
- Topic Author
- Offline
- Posts: 37
After re-bind with 14 chan selected i got data on ch13 and ch14. I did set up 13 as aile and 14 as elev and i can read it back on the multiwii conf screen debug values.
TY Vlad I got a 14 chan Devo12S
Please Log in or Create an account to join the conversation.
- Hexperience
- Offline
- Posts: 588
There are 10 types of people in this world. Those that understand binary and those that don't.
Please Log in or Create an account to join the conversation.
- Cesco
- Topic Author
- Offline
- Posts: 37
Be aware multiwii does not natively read 14 channels, only 12, but its an easy fix.
Btw works on Devo10 too
Please Log in or Create an account to join the conversation.
- mariya
- Offline
- Posts: 1
mariya
Please Log in or Create an account to join the conversation.
- Cesco
- Topic Author
- Offline
- Posts: 37
I do not know anybody with a dx18 to do dump the protocol and find out which bit is what, and to replicate it on deviation. This 14 channels the Devo + R100 sat do may not be compatible with spektrum gear, but nice to have anyway.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
paparazzi.enac.fr/wiki/DSM#Raw_DSM_data_capture_files
Please Log in or Create an account to join the conversation.
- Cesco
- Topic Author
- Offline
- Posts: 37
I cant read that with saleae software. Maybe it works if you have the device, but i have not.
Why not let the grabber store it as 115200 baud serial signal?
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- Cesco
- Topic Author
- Offline
- Posts: 37
Edit:
The additional channels are always marked as "channel 12". They are sent in 2048 mode, in every packet, last position in packet.
Channel numbers 0 to 11 are normal, 2048 resolution shift.
Speculation:
channel 12 is 8 multiplexed channels, 11 bit total.
- 3 bits is channel indicator 0 to 7.
- 8 bits is data, mid is 128
Please Log in or Create an account to join the conversation.
- Cesco
- Topic Author
- Offline
- Posts: 37
Channel numbers 0 to 11 are normal, 2048 resolution shift.
Channel 12 carries the xchannel data.
Channel transfer structure:
packet 1 -> 1 5 2 4 6 10 12
packet 2 -> 0 7 3 8 9 11 12
xchannel data format
DCCCCXXN NNNNNNNN
D=dummy,
C=channel, always 12,
X=xchannel-number, low 2 bits
N=xchannel-data, 9 bits
xchannel data is 9 bit, 256 midpoint.
xval = (b1 & 0x01) * 256 + b2;
xchannel channel is a messup. Its a 3 bit value split in half
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Byte 1 and byte 2 of 16 bit xchannel data?
Channel 12 at every packet (1 and 2) has new or repeated data? I.e. new xchannel number transmitted at every packet or at every frame?
From DX18 manual: X-Plus channels have a resolution of 512 and variable latency from 22ms to about 88ms.
From it seems that xchannel data is transmitted at every packet.
Please Log in or Create an account to join the conversation.
- Cesco
- Topic Author
- Offline
- Posts: 37
vlad_vy wrote: What is b1 and b2?
Byte 1 and byte 2 of 16 bit xchannel data?
Yes
vlad_vy wrote: Channel 12 at every packet (1 and 2) has new or repeated data?
New
vlad_vy wrote: new xchannel number transmitted at every packet or at every frame?
packet. 2 DIFFERENT xchannel data per frame.
vlad_vy wrote: From DX18 manual: X-Plus channels have a resolution of 512 and variable latency from 22ms to about 88ms.
I really dont know. The average repeat should be every 8 packets, or every 4 frames. 4*22 = 88, but 4*11=44, no idea about the 22.
I dont got a DX18, only the dump from paparazzi site.
vlad_vy wrote: From it seems that xchannel data is repeated twice at every frame.
yes, 2 xchannels per frame.
What i did is to load the dump in logic, decode it with internal serial 115200 baud, and save it as hex. Looks like this:
Time , Data
13.493882,0xAA,,
13.493968,0x51,,
13.494056,0x60,,
13.494142,0x60,,
13.49423,0x58,,
13.503932,0x00,,
13.504018,0x00,,
13.504106,0x81,,
13.504192,0x60,,
13.50428,0x3C,,
13.504366,0x2A,,
13.504454,0x1C,,
I used a processing script to decode, its very very very very ugly code.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- Cesco
- Topic Author
- Offline
- Posts: 37
I think you just dont send channels you dont want. This could explain the 22ms latency claim. If a channel is disabled, just send the next one.
You may only send xchannel 0 all the time i guess.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- 18 channels for DSM2 / DSMX ?