Help to find the protocol for JJRC H31 please!

More
01 May 2019 10:44 #74180 by tianma780
Replied by tianma780 on topic Help to find the protocol for JJRC H31 please!
ok,thanks for help!

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

More
04 May 2019 19:57 - 05 May 2019 13:00 #74229 by goebish
Making some progress, parameters:

LT8910
62.5 kbps
base frequency: 2402 MHz
channel spacing: 1 MHz
gfsk modulation, deviation: 225 (avg) - 280 kHz (max)
NRZ line coding
no FEC
3 byte preamble
32 bit syncword
4 bit trailer
crc enabled
crc init = 0x00
no scramble
no auto-ack
packet length = 1st byte of payload

annotated bind sequence:
gist.github.com/goebish/25d28ae2086eff31fb3b3df33eca19ae

Nothing sure yet, but it might be possible to emulate it with the cc2500.
Last edit: 05 May 2019 13:00 by goebish.

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

More
05 May 2019 08:12 #74236 by tianma780
Replied by tianma780 on topic Help to find the protocol for JJRC H31 please!
Great! exciting and expecting

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

More
05 May 2019 19:38 #74241 by goebish
First attempt, can't get it to bind so far.
github.com/goebish/deviation/blob/protoc...col/jjrch31_cc2500.c
More debugging required ...

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

More
06 May 2019 04:53 #74247 by tianma780
Replied by tianma780 on topic Help to find the protocol for JJRC H31 please!
You have done a good job. Thank you very much.
You are a genius.
Come on,I really believe you can fix it.Because you are so many ideas!

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

More
06 May 2019 05:13 #74248 by tianma780
Replied by tianma780 on topic Help to find the protocol for JJRC H31 please!
// Rf settings for CC2500
//
// Base Frequency = 2402.000000 (same as LT8910)
// CRC Enable = false
// Channel Spacing = 333.251953
// Data Format = Normal mode (FIFO)
// Data Rate = 62.4847
// Deviation = 228.515625 (same as LT8910)
// Manchester Enable = false
// Modulated = true
// Modulation Format = GFSK
// Packet Length Mode = Variable packet length mode.Packet length configured by the first byte after sync word
// Sync Word Qualifier Mode = No preamble / sync
// Whitening = false

Why cant bind?The frequency is not corresponding?

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

More
06 May 2019 09:24 - 06 May 2019 10:46 #74251 by goebish
No, I've tweaked base frequency and gfsk deviation with protocol options so they're the same as stock transmitter (checked with SDR) but that still doesn't work.
Still trying stuffs ...
I'm no genius, just a hacker trying stuffs until it works ... or not :p
Last edit: 06 May 2019 10:46 by goebish.

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

More
08 May 2019 03:15 #74257 by tianma780
Replied by tianma780 on topic Help to find the protocol for JJRC H31 please!
Ok,thanks your hard working.
Never give up,I believe that you can fix it at last.
Have you used a oscilloscope testing the transmitter`s single to make sure the cc2500 is working correct?

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

More
08 May 2019 03:17 #74258 by tianma780
Replied by tianma780 on topic Help to find the protocol for JJRC H31 please!
transmitter`s signal

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

More
08 May 2019 14:28 #74261 by goebish
I'm not at home this week, I'll continue during the week-end

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

More
13 May 2019 12:22 - 13 May 2019 12:36 #74291 by goebish
An oscilloscope is useless for this kind of work, required tools are a logic analyzer and a SDR device (I use a HackRF One).
The LT8910 is working fine, I'm sure of that because the stock Tx can bind to the Rx. And I'm sure my cc2500 is fine as well.

I spent some more time on it, that's weird, my emulated protocol does exactly what I expect:
(here sending bind packet):


But that's not the case of the stock transmitter:


I'm not sure what's wrong (tried demodulating for every supported LT8910 bitrates with no consistent result), I see in the logic analyzer dump that the stock transmitter writes to a lot of undocumented LT8910 registers, I've to connect a LT8920 breakout board (that's all I have ...) to an Arduino to make some tests.

I don't give up yet, but more work is required, just be patient ;)
Last edit: 13 May 2019 12:36 by goebish.

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

More
13 May 2019 12:57 #74292 by tianma780
Replied by tianma780 on topic Help to find the protocol for JJRC H31 please!
It‘s very kind of you.Thank you for your hard work,much appreciate.
I guest mabye the stock transmitter use a variable code,it change all the time.

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

More
13 May 2019 13:02 #74294 by tianma780
Replied by tianma780 on topic Help to find the protocol for JJRC H31 please!
设置动态编码有两种方式
1、先接收内容,然后把内容转化成字节数组。给字节数组编码后转化成String对象
成功率高但是编码量大
String name = request.getParameter("uname") ;
byte[] b = name.getBytes("ISO8859-1") ;
name = new String(b) ;
2、先对即将接收得参数进行编码再接受参数
成功率低,但编码量少
request.setCharacterEncoding("GBK") ;
String name = request.getParameter("uname") ;
服务端跳转代码
<jsp:forward page="demo1.jsp"/>

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

More
13 May 2019 14:13 #74297 by goebish
there's no variable or rolling code, that's not a keyfob ;)

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

More
13 May 2019 14:19 #74298 by tianma780
Replied by tianma780 on topic Help to find the protocol for JJRC H31 please!
:lol: :lol: :lol:

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

More
20 May 2019 09:18 #74342 by tianma780
Replied by tianma780 on topic Help to find the protocol for JJRC H31 please!
Hello Goebish,can you help to capture the 2 channels tx/rx first ?Thank you very much.

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

More
20 May 2019 09:35 #74343 by goebish
The other Tx/Rx is using a LT8920, I'll probably have the same issue with it, except if it's using 1 Mbps bitrate, I haven't checked yet.

Just be patient ;)

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

More
20 May 2019 09:52 #74344 by goebish
Don't worry, even if I don't post here, work is going on behind the scene, we're 3 people looking at your stuffs ;)

And in worst case, if in a few weeks I've not been able to make it work here's the deal: if you've a T8SG V2 plus (or another transmitter with JR module bay) I'll send you an external LT8920 module that can do both protocols.

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

More
20 May 2019 09:54 #74345 by tianma780
Replied by tianma780 on topic Help to find the protocol for JJRC H31 please!
That is great! Hha,just be patient be patient ,thank you goebish!

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

More
20 May 2019 10:05 #74346 by tianma780
Replied by tianma780 on topic Help to find the protocol for JJRC H31 please!
Ok,please please! Because I like 7E very very very much!If can I would only use 7E for my life!so please! Thanks for your deviation team! Thanks thanks!I like the last nightly build(20/5/2019) ,Because it have the both protocol of e010/Phoenix and Mjxq/e010/Phoenix .

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

Time to create page: 0.073 seconds
Powered by Kunena Forum