- Posts: 54
Help to find the protocol for JJRC H31 please!
- tianma780
- Topic Author
- Offline
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
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.
Please Log in or Create an account to join the conversation.
- tianma780
- Topic Author
- Offline
- Posts: 54
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
github.com/goebish/deviation/blob/protoc...col/jjrch31_cc2500.c
More debugging required ...
Please Log in or Create an account to join the conversation.
- tianma780
- Topic Author
- Offline
- Posts: 54
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.
- tianma780
- Topic Author
- Offline
- Posts: 54
//
// 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.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Still trying stuffs ...
I'm no genius, just a hacker trying stuffs until it works ... or not
Please Log in or Create an account to join the conversation.
- tianma780
- Topic Author
- Offline
- Posts: 54
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.
- tianma780
- Topic Author
- Offline
- Posts: 54
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
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
Please Log in or Create an account to join the conversation.
- tianma780
- Topic Author
- Offline
- Posts: 54
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.
- tianma780
- Topic Author
- Offline
- Posts: 54
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.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- tianma780
- Topic Author
- Offline
- Posts: 54
Please Log in or Create an account to join the conversation.
- tianma780
- Topic Author
- Offline
- Posts: 54
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Just be patient
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
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.
- tianma780
- Topic Author
- Offline
- Posts: 54
Please Log in or Create an account to join the conversation.
- tianma780
- Topic Author
- Offline
- Posts: 54
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- Help to find the protocol for JJRC H31 please!