- Posts: 268
DSM2 Reports
- suvsuv
- Offline
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
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.
- PhracturedBlue
- Offline
- Posts: 4402
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.
- vlad_vy
- Offline
- Posts: 3333
JR12X - R1221
1 frame - 1, 4, 10, 2, 3, 7, ff
2 frame - 8, 9, 12, 6, 5, 11, ff
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
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.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
2048 Resolution
High-speed 11ms frame rate (when paired with DX7se)
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
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.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
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)
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
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)
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.
- FDR
- Offline
If the tx asked for 7 channels, the rx will respond 7 channels...
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
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.FDR wrote: 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.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
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.
Please Log in or Create an account to join the conversation.
- hoggy
- Offline
- Posts: 1
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
Please Log in or Create an account to join the conversation.
- coaster
- Offline
- Posts: 50
Please Log in or Create an account to join the conversation.
- NotFastEnuf
- Offline
- Posts: 69
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.
- vlad_vy
- Offline
- Posts: 3333
This way you recalibrate ESC at your Ultra Micro.
If it doesn't help, try to rebind your Ultra Micro.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- DSM2 Reports