DSM2 Reports

More
13 Nov 2012 16:35 #2915 by suvsuv
Replied by suvsuv on topic DSM2 Reports
PB, I got reports from 2 Blade nano cp users: their ncp worked well with devo8s using the release verison. However, after using the latest dfu built from your repo, the thr channel has no output(whether or not to rebind with the TX).

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

More
13 Nov 2012 17:36 #2919 by vlad_vy
Replied by vlad_vy on topic DSM2 Reports
PB, if I comment two lines at dsm2.c, 8-channel and 9-channel mode working just fine. All channels working!!!

static void build_data_packet(u8 upper)
{
u8 i;
const u8 *chmap = ch_map[num_channels - 4];
// if(upper)
// chmap += 7;

#if DSMX
packet[0] = cyrfmfg_id[2];
packet[1] = cyrfmfg_id[3] + model;
#else

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

More
13 Nov 2012 18:33 #2922 by PhracturedBlue
Replied by PhracturedBlue on topic DSM2 Reports
Thanks!

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

More
13 Nov 2012 19:27 #2924 by Hexperience
Replied by Hexperience on topic DSM2 Reports
Woo Hoo! Building a test here right now... :)

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
14 Nov 2012 08:21 #2930 by vlad_vy
Replied by vlad_vy on topic DSM2 Reports
Seems JR 12X has next sequence of channels:

JR12X - R1221

1 frame - 1, 4, 10, 2, 3, 7, ff
2 frame - 8, 9, 12, 6, 5, 11, ff
Attachments:

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

More
16 Nov 2012 13:58 - 16 Nov 2012 14:26 #2931 by vlad_vy
Replied by vlad_vy on topic DSM2 Reports
Ooops. Some messages are lost. But anyway, next test with 11 bit mode only - 6/7 channels:

1. Spektrum AR6210, 6 channels mode - doesn't work, all messed.
2. Spektrum AR6210, 7 channels mode - doesn't work, all messed.

3. JR R921, 6 channels mode - doesn't work, nothing at all.
4. JR R921, 7 channels mode - doesn't work, nothing at all.
5. JR R921, 8 channels mode = OK, all channels work fine.
6. JR R921, 9 channels mode = OK, all channels work fine.

As I expected, DSM2 at <8 channels have to work with 10 bit.
Last edit: 16 Nov 2012 14:26 by vlad_vy.

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

More
17 Nov 2012 06:39 #2960 by vlad_vy
Replied by vlad_vy on topic DSM2 Reports
Maybe High Speed DSM2 receivers (7 channel) can work with 11 bit mode? AR7600, AR7610.

2048 Resolution
High-speed 11ms frame rate (when paired with DX7se)

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

More
17 Nov 2012 07:35 - 17 Nov 2012 08:07 #2961 by vlad_vy
Replied by vlad_vy on topic DSM2 Reports
Interesting result:

If at 'dsm2.c' I extend/double ch_map tables for 6 and 7 channels:
static const u8 ch_map6[] = {1, 5, 2, 3, 0, 4, 0xff, 1, 5, 2, 3, 0, 4, 0xff}; //HP6DSM
static const u8 ch_map7[] = {1, 5, 2, 4, 3, 6, 0, 1, 5, 2, 4, 3, 6, 0}; //DX6i

Set Tx capability byte always = 0x12:
packet[12] = num_channels < 8 ? 0x12 : 0x12;

Set bits always 11:
u8 bits = 11;

Comment one frame transmittion and enable always two frames transmittion (11ms):
if (state == DSM2_CH2_CHECK_A) {
//            if (num_channels < 8) {
//                state = DSM2_CH1_WRITE_A;
//                return 15800;
//            }
            state = DSM2_CH1_WRITE_B;
            return 4800;
        }
        state = DSM2_CH1_WRITE_A;
        return 4800;

I can get next results:

1. Spektrum AR6210, 6 channels mode - doesn't work, all messed.
2. Spektrum AR6210, 7 channels mode - doesn't work, all messed.

Seems that AR6210 ignore high bit of data and servo do full travel twice for 1 full travel of Tx channel (throttle with 150% scale). Channels with 100% scale (or centered?) don't work at all.

3. JR R921, 6 channels mode = OK, all 6 channels work fine.
4. JR R921, 7 channels mode = OK, all 7 channels work fine.
Last edit: 17 Nov 2012 08:07 by vlad_vy.

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

More
17 Nov 2012 15:28 - 17 Nov 2012 15:31 #2962 by vlad_vy
Replied by vlad_vy on topic DSM2 Reports
I think, at interchange between Tx and Rx, the most significant byte is capabilities byte, not number of channels.

DSM2:
0x01 = 1 frame, 10 bit, <= 7 channels, 22ms, DSM2
0x02 = 2 frames, 10 bit, > 7 channels, 22ms, DSM2
0x12 = 2 frames, 11 bit, > 7 channels, 22ms, DSM2
0x12 = 2 frames, 11 bit, >= 7 channels, 11ms, High Speed DSM2)

DSMX:
0xA2 = 1 frame, 10/11 bit, <= 7 channels, 22ms, DSMX
0xB2 = 2 frames, 10/11 bit, > 7 channels, 22ms, DSMX
0xB2 = 2 frames, 10/11 bit, >= 7 channels, 11ms, High Speed DSMX)
Last edit: 17 Nov 2012 15:31 by vlad_vy.

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

More
17 Nov 2012 17:09 - 17 Nov 2012 17:10 #2964 by PhracturedBlue
Replied by PhracturedBlue on topic DSM2 Reports
Which interchange?
There are 2 bytes:
11) # of channels
12) capabilities

I think I'm misunderstanding what you are saying.

The Tx sends info on what format it wants to transmit
The Rx sends back a subset of that corresponding to what it supports.

So you should never see a transmitter send '6 channel, 22ms' and get back '9ch 11ms' (I think)
Last edit: 17 Nov 2012 17:10 by PhracturedBlue.

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

More
17 Nov 2012 18:12 #2965 by vlad_vy
Replied by vlad_vy on topic DSM2 Reports
Unfortunately I don't really know what Rx return on each possible Tx request (# of channels and capabilities). But for example, AR8000 always send back 7 channels and really support 8 channels. I just wanted to say that the number of channels is not a reliable parameter.

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

More
17 Nov 2012 18:23 #2966 by FDR
Replied by FDR on topic DSM2 Reports
With what kind of tx?
If the tx asked for 7 channels, the rx will respond 7 channels...

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

More
17 Nov 2012 18:53 #2967 by PhracturedBlue
Replied by PhracturedBlue on topic DSM2 Reports

FDR wrote: With what kind of tx?
If the tx asked for 7 channels, the rx will respond 7 channels...

I thinks one probelm is that Spektrum didn't really think out their original protocol spec, and tried to extend it as new capabilities were needed. So some Rx may not send back anything, some won't understand newer capabilities, etc. So I don't think there is a clear definition, but more a bunch of corner cases that need to be understood to provide complete support.

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

More
18 Nov 2012 20:59 #2985 by PhracturedBlue
Replied by PhracturedBlue on topic DSM2 Reports
I have just updated the code so that channels are calculated via interrupt. If I got everything right, it should give a much smoother response, but it definitely needs testing. The changes also dramatically change how the emulator works. This was the last big change I am planning before the release. At this point I'm planning to start working on documentation. If there are any issues/changes/fixes that do not have an open report on bitbucket, this is a good time to add them. Do not assume that because it is discussed in a thread here that I've remembered about it.

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

More
19 Nov 2012 16:00 - 19 Nov 2012 16:30 #3005 by vlad_vy
Replied by vlad_vy on topic DSM2 Reports
I've found several dumps and channels order is not always the same as at dsm2.c:

The DX7 has:

Aileron
Flaps (Pitch)
Gear
Elevator
Aux2
Throttle
Rudder

For example a centre stick packet from a DX7 is (HEX values):

(0301) 0601 1600 10AA 0A00 18AB 015F 0DFC

#ch 0001 0101 0100 0010 0110 0000 0011

(0x01) 1 5 4 2 6 0 3
=======================================

The DX6i has a different channel order:

Aileron
Flaps (Pitch)
Elevator
Rudder
Throttle
Gear
Aux2 = fixed value

(0301) 05FF 1765 09FF 0DFF 01FB 1365 1800=fixed value '0'

#ch 0001 0101 0010 0011 0000 0100 0110

(0x01) 1 5 2 3 0 4 6-have to be 0xff???
=======================================

The DX8 has:
(02EE) 0BF8 2EAA 13F0 1C1B 3156 FFFF FFFF
#ch 0001 0101 0010 0011 0110 ffff ffff

(02EE) A156 0156 3EAA FFFF FFFF FFFF FFFF
#ch 0100 0000 0111 ffff ffff ffff ffff

(0x12) 1 5 2 3 6 ff ff
(0x12) 4 0 7 ff ff ff ff
=======================================

Will be interesting to check DX7 channels order (1, 5, 4, 2, 6, 0, 3) with Tarot ZYX-S at 7-channel mode.
Last edit: 19 Nov 2012 16:30 by vlad_vy.

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

More
21 Nov 2012 20:41 - 22 Nov 2012 09:16 #3087 by hoggy
Replied by hoggy on topic DSM2 Reports
hey guys first if all thanks for the firmware and software you have done a great job!

The prorgamming is very powerful it took me a while to figure it all out but i Think i have it sorted now.

I am having a little trouble with getting my devo 6 to work with my 130x.
I have done everything as per instruction manual and had to tweak a few things to get it to work as i fly mode 1.

All the swashplate movements seem correct however when i go to positive pitch the swashplate moves foward right not up and negative pitch backwards left not down.

any ideas on what i have done wrong?

thanks in advance for your help

also does anyone have a template for a mcpx or a130x they could send me?

cheers
Last edit: 22 Nov 2012 09:16 by hoggy.

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

More
22 Nov 2012 09:43 #3095 by coaster
Replied by coaster on topic DSM2 Reports

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

More
22 Nov 2012 14:44 #3096 by NotFastEnuf
Replied by NotFastEnuf on topic DSM2 Reports
Not sure if this has been addressed yet, although I have seen mention of a similar problem. I have some ultra Micro Horizen products like the UM T28 and UM Mustang. I believe they have the AR6400 brick. I can get them to bind and have working control surfaces but get no throttle response. I have tried setting the throttle scale to 150% and still no luck. Any suggestions? So far I have no problems with the Orange RX micro 4 ch receivers in other micros - just the AR6400 with throttle.

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

More
22 Nov 2012 14:56 #3097 by Hexperience
Replied by Hexperience on topic DSM2 Reports
Which build are you using? I have the t28 and will try it when i get to the office.

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
22 Nov 2012 15:16 - 22 Nov 2012 15:40 #3099 by vlad_vy
Replied by vlad_vy on topic DSM2 Reports
You need turn on the Tx, set throttle scale 100%, set the throttle stick in the highest position, plug the flight battery in. After the beep, set the throttle stick in the minimum position, unplug the flight battery and turn off the Tx.

This way you recalibrate ESC at your Ultra Micro.

If it doesn't help, try to rebind your Ultra Micro.
Last edit: 22 Nov 2012 15:40 by vlad_vy.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum