18 channels for DSM2 / DSMX ?

More
14 Aug 2013 14:23 - 26 Oct 2013 20:59 #12969 by Cesco
18 channels for DSM2 / DSMX ? was created by Cesco
Would it be possible to have a Devo12S version with 14 channels DSM2 / DSMX ?
Last edit: 26 Oct 2013 20:59 by Cesco.

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

More
14 Aug 2013 15:51 #12976 by vlad_vy
Replied by vlad_vy on topic 14 channels for DSM2 / DSMX ?
If you have installed the build environment, I can send you modified protocol file 'dsm2.c' with 14 channels.

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

More
14 Aug 2013 16:57 - 14 Aug 2013 17:11 #12978 by vlad_vy
Replied by vlad_vy on topic 14 channels for DSM2 / DSMX ?
Sorry, I modified 'dsm2.c' but it doesn't help. Number of channels in Deviation limited to 12 output channels. I don't know is it possible to change this safely. We need ask PB about this limit.
Last edit: 14 Aug 2013 17:11 by vlad_vy.

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

More
14 Aug 2013 17:56 #12979 by Cesco
Replied by Cesco on topic 14 channels for DSM2 / DSMX ?
I dont have the build stuff installed. Sounds frightening to do so.

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.

More
15 Aug 2013 01:54 #12983 by Cesco
Replied by Cesco on topic 14 channels for DSM2 / DSMX ?
I did install the build stuff and ... well miraculously i did not mess up.

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.

More
15 Aug 2013 03:31 - 10 Dec 2013 16:03 #12985 by vlad_vy
Replied by vlad_vy on topic 14 channels for DSM2 / DSMX ?
OK, if you like to test.

protocol

DELETYED

target\devo12

DELETED

I don't test if it works, but you can try.
Last edit: 10 Dec 2013 16:03 by vlad_vy.

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

More
15 Aug 2013 11:40 - 15 Aug 2013 11:55 #12989 by Cesco
Replied by Cesco on topic 14 channels for DSM2 / DSMX ?
IT WORKS !

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 :lol: I got a 14 chan Devo12S :lol:
Last edit: 15 Aug 2013 11:55 by Cesco.

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

More
15 Aug 2013 14:26 #12993 by Hexperience
Replied by Hexperience on topic 14 channels for DSM2 / DSMX ?
Are you just using the standard dsmx sat?

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.

More
15 Aug 2013 14:45 - 16 Aug 2013 14:16 #12994 by Cesco
Replied by Cesco on topic 14 channels for DSM2 / DSMX ?
No, that is a orangerx DSM2 sat for $11. But i think dsmx ones will work too.
Be aware multiwii does not natively read 14 channels, only 12, but its an easy fix.

Btw works on Devo10 too :)
Last edit: 16 Aug 2013 14:16 by Cesco.

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

More
27 Aug 2013 05:48 #13335 by mariya
Replied by mariya on topic 14 channels for DSM2 / DSMX ?
very informative post ,thanks for sharing

mariya

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

More
29 Aug 2013 12:19 - 29 Aug 2013 12:21 #13373 by Cesco
Replied by Cesco on topic 14 channels for DSM2 / DSMX ?
I was told the DX18 does multiplex 18 channels into this 14 channel space. The high channels at a lower 512 step resolution and at a lower rate.

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.
Last edit: 29 Aug 2013 12:21 by Cesco.

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

More
06 Oct 2013 04:32 - 06 Oct 2013 04:37 #14278 by vlad_vy
Replied by vlad_vy on topic 14 channels for DSM2 / DSMX ?
I found some DSM data capture from DX18 to AR9020 with XPlus channels. If anybody want to decode Xplus.

paparazzi.enac.fr/wiki/DSM#Raw_DSM_data_capture_files
Last edit: 06 Oct 2013 04:37 by vlad_vy.

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

More
23 Oct 2013 15:24 #14902 by Cesco
Replied by Cesco on topic 14 channels for DSM2 / DSMX ?
Unluckily the file format is total rubbish.

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.

More
23 Oct 2013 15:48 - 23 Oct 2013 15:54 #14903 by vlad_vy
Replied by vlad_vy on topic 14 channels for DSM2 / DSMX ?
I can open files with Saleae Logic software without problems. Options -> Open Session -> file.


Attachments:
Last edit: 23 Oct 2013 15:54 by vlad_vy.

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

More
23 Oct 2013 15:53 - 25 Oct 2013 09:36 #14904 by Cesco
Replied by Cesco on topic 14 channels for DSM2 / DSMX ?
I feel ashamed ... it works

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
Last edit: 25 Oct 2013 09:36 by Cesco.

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

More
26 Oct 2013 12:49 - 26 Oct 2013 20:38 #14995 by Cesco
Replied by Cesco on topic 14 channels for DSM2 / DSMX ?
I made some progress.

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
Last edit: 26 Oct 2013 20:38 by Cesco.

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

More
26 Oct 2013 13:37 - 26 Oct 2013 15:03 #14999 by vlad_vy
Replied by vlad_vy on topic 14 channels for DSM2 / DSMX ?
What is b1 and b2? xval = (b1 & 0x01) * 256 + b2;

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.
Last edit: 26 Oct 2013 15:03 by vlad_vy.

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

More
26 Oct 2013 15:03 - 26 Oct 2013 15:12 #15002 by Cesco
Replied by Cesco on topic 14 channels for DSM2 / DSMX ?

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.
Last edit: 26 Oct 2013 15:12 by Cesco.

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

More
26 Oct 2013 15:07 - 26 Oct 2013 15:14 #15003 by vlad_vy
Replied by vlad_vy on topic 14 channels for DSM2 / DSMX ?
OK, I have last questions. Xchannels transmitted sequentially (1,2,3,..) or with any other order? If any xchannel is disabled, then what? What is transmitted at that case? Possible it will be DCCCCXXF FFFFFFFF?
Last edit: 26 Oct 2013 15:14 by vlad_vy.

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

More
26 Oct 2013 15:14 - 26 Oct 2013 15:16 #15004 by Cesco
Replied by Cesco on topic 14 channels for DSM2 / DSMX ?
you ask more than i know ... no, not sequential.

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.
Last edit: 26 Oct 2013 15:16 by Cesco.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum