- Posts: 1891
expressLRS
- hexfet
- Offline
The flashing when you go on the device page happens because the screen is repainted as the parameters are received from the TX (or other CRSF device). These packets are received at the same rate as the packet rate, so lower rates take longer. For the TX it's a little over 1K of data.
The issue with the 250/500 packet rate display apparently wrong is puzzling. I can think of a couple of possibilities though neither seems likely. First a question though - when you say " packet rate shows 250 while 500 is selected" do you mean the bad/good ratio shows 0/250 while the packet rate is 500? or that the packet rate config box shows 250 when you know the last time you left the menu it was 500?
If it's the first case it's because the bad/good ratio is not updated while on the device page. If you enter the page at 250, change to 500, then look at the bad/good ratio it will still show 250.
The other way I could see this happening is if the setting is changed while the parameters are still loading. This should be almost impossible in practice, but be sure the screen stops flashing and the LOADING tag on the top line disappears before navigating the menu. I'll look into disabling the buttons until all parameters are loaded.
For the issue of starting up with throttle warning the info about 250 and 500 behavior suggests something to try. My mention of opentx was just to note that the hardware it runs on has a different power-up behavior than Jumper hardware in that with Jumper the TX powers up immediately even if no serial data is being sent from the T8. Maybe that interacts with the TX baudrate detection in some way that causes a problem. Also the baud rate change that Deviation does may be involved. I'd like to be able to just set the baudrate in Deviation instead of trying to detect when the module is ELRS, but since the protocol options are taken over by the CRSF pages there's no good place to put a baudrate selection.
From what I can see in the code ELRS keeps trying different baud rates forever, but maybe there's a timeout somewhere that depends on packet rate. Easy enough to test. Please try test build 1610498 . This build has the baudrate fixed at 1.87Mbps, instead of elevating to that rate only when ELRS module is detected.
When I tested this build there was a strange behavior with model match. I had model match on with the previous version of Deviation, installed the build above, and powered on the T8. The RX LED started flashing the model mismatch code. I went to the 900TX device page, turned model match off and the RX connected, then I turned model match back on. Next I changed Deviation back to the previous build, which bumps the datarate from 400K to 1.87M when ELRS is detected. Again the model ID setting was lost! Finally I changed back to the test version above, but this time model ID was not lost! Still puzzled about this behavior.
Please Log in or Create an account to join the conversation.
- mooiweertje
- Offline
- Posts: 85
When 250Hz shows in the menu while 500Hz was actually selected I see good/bad 0/±340. When I try to switch to 500Hz the menu keeps showing 250Hz. When I switch to 150Hz the menu actually switches to 150 and good/bad shows 0/±150.
On 1610498 the CRSF menu doesn't show
Please Log in or Create an account to join the conversation.
- mooiweertje
- Offline
- Posts: 85
Please Log in or Create an account to join the conversation.
- mooiweertje
- Offline
- Posts: 85
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
One concern is that bad/good is 0/340 at 500Hz. The good needs to be at 500, otherwise packets are being lost. Can you please check what it shows on 6659b95 when the packet rate is 500Hz? Set the rate to 500Hz, then exit the menu, wait a couple seconds, then go back into the menu to check. I'll also look at adding the "good" value to telemetry so we can see what it is during normal operation. It may only be dropping packets while transferring the parameter data so it may not be a flight issue.
I'm very puzzled why 1610498 wouldn't work as the only changes were removing the debug beep and always running the serial port at 1.87Mbps. You said the CRSF menu doesn't show - does the build work other than that? Does the menu show up at lower packet rates?
Thanks for the offer but unfortunately I'm not in The Netherlands . I'm in the US. I did look into running my module at 500Hz and I think I'll try that. The serial packet rate is tied directly to the air packet rate so not sure what it'll do to the TX. It may not run and if it does I doubt it will connect to the receiver.
I'm hopeful we can get everything working at 500Hz. I've got a couple optimizations in mind but they're not quick to implement.
Please Log in or Create an account to join the conversation.
- mooiweertje
- Offline
- Posts: 85
You should buy a 2.4Ghz module. Superfast and crazy range.
On 1610498 the menu shows on all packet rates except 500Hz.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
I would've preferred 2.4G but it's not in stock at the places I usually buy from. I just ordered one from a place I've never heard of - we'll see how that goes. Good excuse to build a new quad.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
Please Log in or Create an account to join the conversation.
- mooiweertje
- Offline
- Posts: 85
Build#|
|
Throttle high on boot|
|
BAD/GOOD|
|
Remarks
|
---|---|---|---|
6659b95
|
OK
|
0/501
|
Flies nice
|
82c3a77
|
FAIL
|
0/501
|
-
|
f848942
|
FAIL
|
0/501
|
-
|
Please Log in or Create an account to join the conversation.
- mooiweertje
- Offline
- Posts: 85
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
From the bad/good it looks like the serial data transfer is working well.
On the safety warning issue I'll have to think about something to try. Build 82c3a77 has the same serial errors as 6659b95, so that can't be it. If my 2.4 module order goes through it will help. I'm out for the weekend so maybe inspiration will strike. We can resume next week.
Please Log in or Create an account to join the conversation.
- mooiweertje
- Offline
- Posts: 85
Please Log in or Create an account to join the conversation.
- mooiweertje
- Offline
- Posts: 85
The 82c3a77 and f848942 do not have this issue but here the power is increased to 1W. I have dynamic power turned on.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
Is the increase to 1W not expected? If the RX is connected and close by I would expect the power to be low.
The 2.4G module I ordered should arrive today. I want to try a few things before putting out another test build.
Please Log in or Create an account to join the conversation.
- mooiweertje
- Offline
- Posts: 85
May I ask which 2.4GHz module you bought?
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
I bought the HappyModel TX with an EP1 receiver.
Please Log in or Create an account to join the conversation.
- mooiweertje
- Offline
- Posts: 85
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
Trying to detect an ELRS module and then switching baudrates causes issues, especially when startup is delayed by the throttle warning. Also found a mistake in the previous test where I tried to fix the baudrate to 1.87Mbps. I decided to remove the baudrate switching. I created an ELRS protocol which is the same as CRSF except it runs at 1.87Mbps. After installing the test build, go into the model and change the protocol from CRSF to ELRS. Then power off and on the T8. This fixes the issue of turning on power with throttle not zero.
I turned on Dynamic Power and set the max to 250mW (highest it would go). But the telemetry said the power was 10mW the whole time. Don't know if that's a related issue or something else.
On the TX I'm running a build from master, and 2.2.0 on the RX. I only saw the issue of the Packet Rate setting jumping from 500 to 250 one time, immediately after installing the module.
Please Log in or Create an account to join the conversation.
- mooiweertje
- Offline
- Posts: 85
The throttle high issue now only persists when keeping it high for a longer time, let's say 20 seconds. The menu now does show but values are incorrect and can change nothing. RX led blinking slow. BAD/GOOD shows 0/500 while packet rate is set lower, 250/150/50.
Please Log in or Create an account to join the conversation.
- mooiweertje
- Offline
- Posts: 85
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- expressLRS