DIY-Multiprotocol-TX-Module icon indicating copy to clipboard operation
DIY-Multiprotocol-TX-Module copied to clipboard

Eachine E010 and JJRC H36 now being issued with different protocol

Open BadRaven opened this issue 6 years ago • 77 comments

Both the Eachine E010 and the JJRC H36 65mm Quadcopters are now being issued with Revision 5 (REV5) circuit boards (which are red colour, all previous being green).

Reason for the change unknown, just stumbled across. Not even Banggood knew!

Poss change of supplier or increased number supported or even poss bind change to "Listen before Talk" to meet Euro regs????

These will not bind using existing Module settings.

BadRaven avatar Oct 25 '20 18:10 BadRaven

Are you able to identify the RF components on the new board or TX? That's usually the first step to figuring it if it can be reversed. Post some close up pictures if you're not sure.

benlye avatar Oct 25 '20 19:10 benlye

20201025_192226 20201025_192201

The only IC I can read is the 10 pin on the connector side, which appears to say

RF2600 2021

Though its very feint!

BadRaven avatar Oct 25 '20 19:10 BadRaven

The Transmitter is single chip, and is marked

RF 2618 2027

The top black strap and cut tracks (and removed yaw pot) is to move yaw to roll to make a two stick Hovercraft use Tx.

20201025_193812 20201025_193753

BadRaven avatar Oct 25 '20 19:10 BadRaven

I would need to have access to the hardware TX+RX, nothing I can do from the pics.

pascallanger avatar Oct 26 '20 19:10 pascallanger

I'm going to close this issue since there is no way to move forward with the given information...

pascallanger avatar Nov 06 '20 08:11 pascallanger

Hi @pascallanger, I'm facing the same problem. If I can be of any help, please instruct me and I'll be glad to collaborate!

PS: can I use an Arduino as ISP (powering the target with 3.3V instead of 5V) to program the Mega328P? Should I use a logic level converter for MISO/MOSI too?

Maik93 avatar Dec 02 '20 09:12 Maik93

@Maik93 There is no SPI to dump. You need a SDR tool to look at the communication to see if this can be hacked or not...

pascallanger avatar Dec 17 '20 17:12 pascallanger

@pascallanger I've got one of this: https://reference.digilentinc.com/reference/instrumentation/analog-discovery/start I could attach it to the pins that run toward the antenna on the radiocontroller and collect both analog or digital signals. Can this help?

Maik93 avatar Dec 17 '20 21:12 Maik93

Nope

kilrah avatar Dec 17 '20 21:12 kilrah

The E010 and its renamed but identical boards alternatives like the JJRC H36 and H36F (there's a Cheerson, too, but don't know its code) must be the highest selling 65mm Quadcopter worldwide and are also widely used for micro racing hovercraft, etc. It would be a great shame if their latest electronic iterations were not multi-module suitable. This would need to be done retaining the older 1-3 Rev option since there are literally millions out there!

I currently have two on the way to me, and assuming they are the new Rev5 boards, I'm prepared to send one onward to be the test item. I assume I could remove the 1S Lipo to make posting system choice easier and cheaper? The battery is an extremely common plug as you'll see from the above pics.

If this is acceptable contact me with address privately?

Edit:- In addition, sellers are now sending out replacement boards that are not usable with the original Transmitters, so having a Multi-Module option is a way of keeping existing models in use!

BadRaven avatar Dec 18 '20 07:12 BadRaven

The E010 and its renamed but identical boards alternatives like the JJRC H36 and H36F (there's a Cheerson, too, but don't know its code) must be the highest selling 65mm Quadcopter worldwide and are also widely used for micro racing hovercraft, etc. It would be a great shame if their latest electronic iterations were not multi-module suitable. This would need to be done retaining the older 1-3 Rev option since there are literally millions out there!

I currently have two on the way to me, and assuming they are the new Rev5 boards, I'm prepared to send one onward to be the test item. I assume I could remove the 1S Lipo to make posting system choice easier and cheaper? The battery is an extremely common plug as you'll see from the above pics.

If this is acceptable contact me with address privately?

Edit:- In addition, sellers are now sending out replacement boards that are not usable with the original Transmitters, so having a Multi-Module option is a way of keeping existing models in use!

Contact me in PM (hpnuts) on rcgroups: https://www.rcgroups.com/forums/showthread.php?2165676-DIY-Multiprotocol-TX-Module/page1387 The board is not enough. I need the TX + quad to test.

pascallanger avatar Dec 18 '20 08:12 pascallanger

oncemoretime: if you want to get TX, quad for test - please, give me your private address. It's all ready to ship.

CU frank

fe-copter avatar Dec 30 '20 20:12 fe-copter

Here is a preliminary look with the SDR. Normal packets are sent using GFSK at 1Mb on channel 48 and others. They send the same frame 6 times on each channel with the following timing: 1.183ms, 1.183ms, 3.399ms, 1.183ms, 1.183ms and then switch 3.4ms later to the next channel. Channels in use are in order: 48, 69, 64, 53. 46.181ms for a full loop on the 4 freqs.

Here is the signal: image

That's 75 bytes!!! The only RF component on multi which could send this is the cyrf6936 which is a real pain :-( I'm not sure if it's even going to work in the end so not sure if it's worse it...

This could be the binary translation of the signal but it could well be inverted or shifted:

AA AA AA A8 39 52 5B BB 0F 0F 0F 30 CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC F0 CC CC CC F0 CC CC CC F0 CC CC CC CC CC CC CC CC CC CC CC CC CF 0F 0C CF 0C F3 0C CF 0F 0F 0F 0C F3 30 CC F0 CC F3 30 F0 F3
Preamble Preamble Preamble Address Address Address Address Address -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

The payload seems to have multiple things applied to it:

  • a FEC consisting of each bit being sent twice ? which could give this once removed:
33 34 AA AA AA AA AA AA AA AA AA AA CA AA CA AA CA AA AA AA AA AA AB 32 B2 D2 B3 33 2D 4A CA D4 CD
  • there are a lot of AA so I'm wondering if the payload is not fully xored with AA then if removed:
99 9E 0 0 0 0 0 0 0 0 0 0 60 0 60 0 60 0 0 0 0 0 1 98 18 78 19 99 87 E0 60 7E 67

That's a lot of bytes (33) being sent...

It could also be code word based where the TX and RX have a dictionnary.

I need to do other dumps to get an idea.

pascallanger avatar Jan 06 '21 15:01 pascallanger

The FEC seems to follow this rule: aabbccddeeff... -> each letter represents a bit a: bit0 b: !bit0 c: bit1 d: !bit1 e: bit2 f: !bit2 ....

pascallanger avatar Jan 07 '21 08:01 pascallanger

Given the above the original signal looks to be more (bit shifted by 2 from previous post):

AA AA AA AA 0E 54 96 EE C3 C3 C3 CC 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 3C 33 33 33 3C 33 33 33 3C 33 33 33 33 33 33 33 33 33 33 33 33 33 C3 C3 33 C3 3C C3 33 C3 C3 C3 C3 3C CC 33 3C 33 3C CC 3C 3C C0
Preamble Preamble Preamble Preamble Address Address Address Address -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

That's 67 bytes for the payload FEC encoded. There are 2 bits per FEC byte so the original payload is 16.75 bytes in total. So I have either too many bits or some are missing or something else in play...

pascallanger avatar Jan 07 '21 14:01 pascallanger

I'm now receiving and decoding live the start of the message using the NRF24L01:

5 0D 00 00 00 00 20 20 x0
unk? len? THR AIL ELE RUD Ail trim? Ele trim Rud trim

THR: 00..FF, AIL/ELE/RUD: 7F..01..center=00..80..FF

Based on the above the payload seems to be 16.5 bytes long: unk=0.5+len=1->13+crc16=2 => 16.5 . Which looks to match what I said on the previous post.

bool ok=true;
//realign bits
for(uint8_t i=0; i<packet_length; i++)
	buffer[i]=buffer[i+2];

//check for validity and decode
memset(packet_in,0,packet_length);
for(uint8_t i=0; i<packet_length-2; i++)
{
	for(uint8_t j=0;j<2;j++)
	{
		packet_in[i>>2] >>= 1;
		if( (buffer[i]&0xC0) == 0xC0 && (buffer[i]&0x30) == 0x00 )
			packet_in[i>>2] |= 0x80;
		else if( (buffer[i]&0xC0) == 0x00 && (buffer[i]&0x30) == 0x30 )
			packet_in[i>>2] |= 0x00;
		else
			ok=false;	// RX error
		buffer[i] <<= 4;
	}
}

Next step is to decode the end of the payload and find out the CRC...

pascallanger avatar Jan 07 '21 16:01 pascallanger

The payload from 2 post above is decoded like this:

5 0D 00 00 00 00 20 20 20 00 00 00 45 46 95 23 AE
ctrl len THR AIL ELE RUD TAIL TELE TRUD flag1 flag2 ? ID? ID? check CRCL CRCH

flag1=0x00 low rate, =0x01 high rate, 0x10 headless, 0x20 one key return, flag2=0x01 flip

check=sum of all bytes after len (excluded) until check + 0x9D

The 16 bits CRC is calculated from len (included) until end with Input reflected, Result reflected, Polynomial: 0x1021, Initial Value: 0x00, Final Xor Value: 0x00.

pascallanger avatar Jan 07 '21 17:01 pascallanger

Bind packet, frequencies 48, 56, 64, 72 (next hop +8):

5 0D 00 00 00 00 20 20 20 00 80 00 45 46 15 7E A0
ctrl len THR AIL ELE RUD TAIL TELE TRUD flag1 flag2 ? ID? ID? check CRCL CRCH

flag2=0x80 -> bind

pascallanger avatar Jan 07 '21 18:01 pascallanger

The protocol is now reversed at the exception of 3 unknown bytes which are most likely IDs and associated frequencies. The problem is now the implementation on the CYRF6936... I'm not confident it will work but I'll try...

pascallanger avatar Jan 07 '21 18:01 pascallanger

That's something I had already tried for another protocol without success because gfsk deviation is different on the cyrf6936 and it cannot be set... but maybe you'll be more lucky with this chip https://www.deviationtx.com/forum/protocol-development/7150-eachine-e012?start=40#63021

goebish avatar Jan 07 '21 18:01 goebish