HK310 protocol (RX HK-3000, HK3100 and XY3000)
- planger
- Topic Author
- Offline
I would like to propose a new protocol not available yet on deviation based on the nrf24l01 module.
It's used by car radio HK300, HK310 and TL-3C to control these RX HK-3000, HK3100 and XY3000.
The working code is posted here github.com/pascallanger/DIY-Multiprotoco...l/Hisky_nrf24l01.ino .
The main protocol is Hisky and sub protocol HK310.
Channels assignment are:
CH1 CH2 CH3 CH4 CH5 CH6 CH7 CH8
- - T R AUX T_FSAFE R_FSAFE AUX_FSAFE
It should be quick and easy to integrate.
Regards, Pascal
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Looking at your code I think I understand why now
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
I confirmed what was wrong with my first implementation, that's because I did not thoroughtly understood the protocol description at first ( github.com/laneboysrc/nrf24l01-rc/blob/m.../doc/hkr3000-info.md ) ,and my generated list of channels for hopping was wrong.
Also, I modified your frequency hops generation, so it uses an arbitrary first channel instead of always using 0~19, as explained in the description:
// for HiSky surface protocol, the transmitter always generates hop channels in sequencial order.
// The transmitter only generates the first hop channel between 0 and 49. So the channel range is from 0 to 69.
static void calc_surface_fh_channels(u32 seed)
{
u8 idx = 0;
u8 chan = seed % 50;
while(idx < FREQUENCE_NUM) {
hopping_frequency[idx++] = chan++;
}
}
Seems rock solid with my test RX now (HiSky XY3100)
Please Log in or Create an account to join the conversation.
- planger
- Topic Author
- Offline
- Pascal
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.
- SeByDocKy
- Offline
- Posts: 1016
goebish wrote: Here's a test build with a new HiSky protocol option: Format (Air / Surface)
Devo 7e
Devo 10
source
Scaling works (-/+ 125% = 1000-2000us)
Failsafe works
Note that the surface protocol will only work with nRF24L01+ as it operates at 250Kbps.
Anyone knows if the protocol is used for the HiSky HMX280 ?
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
For cars basically ...
But maybe it's using the same "Air" protocol that's already implemented ?
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
goebish wrote: No way, this is a 3 channel protocol
For cars basically ...
But maybe it's using the same "Air" protocol that's already implemented ?
Ho I should try this variant ...
btw the range control with this 3CH receiver @250Kbits should be amazing ?
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
bitbucket.org/goebish/deviationtx/commit...d89c977cc?at=default
I think it's ready to be merged with default...
bitbucket.org/deviationtx/deviation/pull.../protocol_hk310/diff
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- HK310 protocol (RX HK-3000, HK3100 and XY3000)