HK310 protocol (RX HK-3000, HK3100 and XY3000)
- planger
-
Topic Author
- Offline
Less
More
20 Jan 2016 14:48 #41984
by planger
HK310 protocol (RX HK-3000, HK3100 and XY3000) was created by planger
Hi,
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
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
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
20 Jan 2016 18:17 - 21 Jan 2016 16:18 #41995
by goebish
Replied by goebish on topic HK310 protocol (RX HK-3000, HK3100 and XY3000)
Thanks planger, I was going to implement it but sometimes the RX had a few synch issues at startup.
Looking at your code I think I understand why now
Looking at your code I think I understand why now
Last edit: 21 Jan 2016 16:18 by goebish.
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
22 Jan 2016 11:38 - 22 Jan 2016 12:11 #42067
by goebish
Replied by goebish on topic HK310 protocol (RX HK-3000, HK3100 and XY3000)
Ok, it's working, I only have to manage failsafe then it should be ready for a pull request.
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:As stated, this is poor for resilience against interferences, but this is required for the RXs to work ...
Seems rock solid with my test RX now
(HiSky XY3100)
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
Last edit: 22 Jan 2016 12:11 by goebish.
- planger
-
Topic Author
- Offline
22 Jan 2016 12:10 #42068
by planger
Replied by planger on topic HK310 protocol (RX HK-3000, HK3100 and XY3000)
Thanks for the feedback. I'll update my version as well.
- Pascal
- Pascal
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
22 Jan 2016 17:45 - 22 Jan 2016 17:46 #42086
by goebish
Replied by goebish on topic HK310 protocol (RX HK-3000, HK3100 and XY3000)
Last edit: 22 Jan 2016 17:46 by goebish.
- SeByDocKy
-
- Offline
Less
More
- Posts: 1016
22 Jan 2016 18:16 #42087
by SeByDocKy
Anyone knows if the protocol is used for the HiSky HMX280 ?
Replied by SeByDocKy on topic HK310 protocol (RX HK-3000, HK3100 and XY3000)
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 ?
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
22 Jan 2016 18:17 - 22 Jan 2016 18:18 #42088
by goebish
Replied by goebish on topic HK310 protocol (RX HK-3000, HK3100 and XY3000)
No way, this is a 3 channel protocol 
For cars basically ...
But maybe it's using the same "Air" protocol that's already implemented ?
For cars basically ...
But maybe it's using the same "Air" protocol that's already implemented ?
Last edit: 22 Jan 2016 18:18 by goebish.
- SeByDocKy
-
- Offline
Less
More
- Posts: 1016
22 Jan 2016 21:21 #42095
by SeByDocKy
Ho I should try this variant ...
btw the range control with this 3CH receiver @250Kbits should be amazing ?
Replied by SeByDocKy on topic HK310 protocol (RX HK-3000, HK3100 and XY3000)
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 ?
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
24 Jan 2016 12:30 - 24 Jan 2016 12:32 #42168
by goebish
Replied by goebish on topic HK310 protocol (RX HK-3000, HK3100 and XY3000)
I made another small patch so the payload is transmitted twice per rf channel, as stock transmitters.
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
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
Last edit: 24 Jan 2016 12:32 by goebish.
Time to create page: 0.089 seconds
-
Home
-
Forum
-
Development
-
Protocol Development
- HK310 protocol (RX HK-3000, HK3100 and XY3000)