- Posts: 54
Help to find the protocol for JJRC H31 please!
- tianma780
-
Topic Author
- Offline
Less
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!
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
04 May 2019 19:57 - 05 May 2019 13:00 #74229
by goebish
Replied by goebish on topic Help to find the protocol for JJRC H31 please!
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.
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.
- tianma780
-
Topic Author
- Offline
Less
More
- Posts: 54
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
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
05 May 2019 19:38 #74241
by goebish
Replied by goebish on topic Help to find the protocol for JJRC H31 please!
First attempt, can't get it to bind so far.
github.com/goebish/deviation/blob/protoc...col/jjrch31_cc2500.c
More debugging required ...
github.com/goebish/deviation/blob/protoc...col/jjrch31_cc2500.c
More debugging required ...
- tianma780
-
Topic Author
- Offline
Less
More
- Posts: 54
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!
You are a genius.
Come on,I really believe you can fix it.Because you are so many ideas!
- tianma780
-
Topic Author
- Offline
Less
More
- Posts: 54
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?
//
// 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?
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
06 May 2019 09:24 - 06 May 2019 10:46 #74251
by goebish
Replied by goebish on topic Help to find the protocol for JJRC H31 please!
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
Still trying stuffs ...
I'm no genius, just a hacker trying stuffs until it works ... or not
Last edit: 06 May 2019 10:46 by goebish.
- tianma780
-
Topic Author
- Offline
Less
More
- Posts: 54
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?
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?
- tianma780
-
Topic Author
- Offline
Less
More
- Posts: 54
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
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
08 May 2019 14:28 #74261
by goebish
Replied by goebish on topic Help to find the protocol for JJRC H31 please!
I'm not at home this week, I'll continue during the week-end
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
13 May 2019 12:22 - 13 May 2019 12:36 #74291
by goebish
Replied by goebish on topic Help to find the protocol for JJRC H31 please!
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
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.
- tianma780
-
Topic Author
- Offline
Less
More
- Posts: 54
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.
I guest mabye the stock transmitter use a variable code,it change all the time.
- tianma780
-
Topic Author
- Offline
Less
More
- Posts: 54
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"/>
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"/>
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
13 May 2019 14:13 #74297
by goebish
Replied by goebish on topic Help to find the protocol for JJRC H31 please!
there's no variable or rolling code, that's not a keyfob
- tianma780
-
Topic Author
- Offline
Less
More
- Posts: 54
13 May 2019 14:19 #74298
by tianma780
Replied by tianma780 on topic Help to find the protocol for JJRC H31 please!
- tianma780
-
Topic Author
- Offline
Less
More
- Posts: 54
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.
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
20 May 2019 09:35 #74343
by goebish
Replied by goebish on topic Help to find the protocol for JJRC H31 please!
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
Just be patient
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
20 May 2019 09:52 #74344
by goebish
Replied by goebish on topic Help to find the protocol for JJRC H31 please!
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.
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.
- tianma780
-
Topic Author
- Offline
Less
More
- Posts: 54
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!
- tianma780
-
Topic Author
- Offline
Less
More
- Posts: 54
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 .
Time to create page: 0.305 seconds
-
Home
-
Forum
-
Development
-
Protocol Development
- Help to find the protocol for JJRC H31 please!