Hitec protocol
- planger
- Topic Author
- Offline
I see a number of issues:
- the hopping frequencies are choosen based on the current clock which is wrong it should be based on the ID since we want always the same hoping table to be generated for the same ID.
- the ID is not initialized, rx_tx_addr in multi is loaded with the content of the 32bit ID of the TX which is MProtocol_id also used to generate the hopping frequencies.
- the channels value calculation is also not quite right just use the min max of the Devo, a sizing is not required before.
@sfrench808: in the current form of the code, you should be able to bind the RX and have something kind of moving if you do not turn off the TX. This is important if you power cycle the TX or stop the bind process or do whatever with it the bind information will be lost...
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
Test build is updated (6e9c5f3).
- Use txid to choose hopping frequencies and initialize rx_tx_addr
- Calculate channel values directly from deviation channel range (-10000/10000)
Please Log in or Create an account to join the conversation.
- sfrench808
- Offline
- Posts: 9
Please Log in or Create an account to join the conversation.
- planger
- Topic Author
- Offline
The trickiest part was the bind which is working so it's nearly there.
Pascal
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
Wrote some test code to verify the same channel values are produced for -100%, 0, 100%, etc.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
u16 max = 2048;
u16 pct_100 = (u32)max * 100 / 150;
s32 value = (s32)Channels[idx] * (pct_100 / 2) / CHAN_MAX_VALUE + (max / 2);
if (value >= max)
value = max - 1;
else if (value < 0)
value = 0;
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
so Hitec pct_100 can be:
u16 pct_100 = (u32)max * 100 / 140;
Please Log in or Create an account to join the conversation.
- sfrench808
- Offline
- Posts: 9
Please Log in or Create an account to join the conversation.
- planger
- Topic Author
- Offline
Have you tested the telemetry with an Optima RX? At least RSSI and RXVoltage?
Pascal
Please Log in or Create an account to join the conversation.
- sfrench808
- Offline
- Posts: 9
Please Log in or Create an account to join the conversation.
- Suter
- Offline
- Posts: 21
Keep up the good work and thank you.
Will
Please Log in or Create an account to join the conversation.
- sfrench808
- Offline
- Posts: 9
Please Log in or Create an account to join the conversation.
- planger
- Topic Author
- Offline
Check the telmetry screen, you should RSSI and RX voltage.
Pascal
Please Log in or Create an account to join the conversation.
- Suter
- Offline
- Posts: 21
I have been finally able to proceed with trial of the Hitec protocol..
I have updated my Jumper T8sg V2 plus to the nightly build firmware v5-0-0-e44bf33
and have created a Crack laser aero plane model. Using 4 channels and flight modes.
I have successfully linked:-
2 x 3rd Party minima 4 channel RX’s
And also
1 Genuine Optima 7.
I have tested extensively both minima’s and appear to have the same problem as described in post 70357
Both these RX’s are having the same problem.
It appears that they are hanging momentarily during the stick waggling process.
They can be hung for random lengths of time from ½ second to 5 to 10 seconds.
I have made a short video which can be found at:
The glitches are as follows:-
At 6 secs when changed from low to high rate.
At 28 secs small one.
At 1.04 quite big one.
Hope this will help,
Cheers
Will.
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
Please Log in or Create an account to join the conversation.
- Suter
- Offline
- Posts: 21
I had not even thought about swamping.
Now that I think about it, it is a real possibility.
I did have the TX power at 150mw, and was holding the TX at this point to get the sticks and model in the same picture.
I have had 600 flights with that same RX in this model aircraft using Hitec Aurora 9 without any glitches or evidence of swamping even while working on the model on the bench.
I have tried to find the Hitec output stats, it appears that the A9 could be transmitting at 100mw so the 150 would be a huge increase.
I must admit I am still nervous about this new protocol in case it is not the swamping so will perform a lot of testing with varying output power, to get the confidence I need.
Could you please tell me , what is a CC2500? Is it th TX or the RX?
Cheers
Will
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
Normally you would expect that if swamping is present, it will also do it with original TX, as it is the RX which has the problem.
Could be that due Tx power differences, you really must put antenna's close and parrell to obtain swamping with original Tx?
Another thing what you could try, is ensure you have matched the freq tune. So put tx in 100uW mode, put antenna's fixed approx. 1m distance, try find min max edges of tune value when it just can.cannot bind. Then set freq tune in middle and fly like that.. This way you have tuned out any tolerances between oscillators. Nice feature of deviation.
.
Please Log in or Create an account to join the conversation.
- Suter
- Offline
- Posts: 21
Thank you so much for your advice and help.
I have extensively tested 2 X Hitec 3rd party Minima 4 channel compatible receivers, as well as the Delta 8, and Hitec optima 7 channel.
As you suggested the 4 channel RX’s were being swamped and I was able to produce the swamp affect with my Hitec A9 TX.
I entered 2 x models, a Twisted Hobbies crack laser, and a Twisted Hobbies Crack pitts, into the Jumper and written ini files for them.
Today was bite the bullet day and took the 2 models to the field.
Both models were range tested with the transmit wattage at 100. Adequate range equaling the Hitech Aurora 9 tests was achieved.
Both models had 3 flights each and no glitches were detected.
I would consider the Jumper protocol for Hitec to be good and would now have no hesitation in using it and recommending it to others.
As mentioned above I have bound and tested Delta 8 and Optima 7 but as yet have not flown them.
Cheers
Will
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- Hitec protocol