uavpal / disco4g

4G/LTE softmod for the Parrot Disco
http://uavpal.com
397 stars 91 forks source link

Software lock up after temporary signal loss #64

Open StevenLawyer opened 5 years ago

StevenLawyer commented 5 years ago

Hello. Flying a Disco with a large capacity battery mod. Using the Huawei E3372 modem with a 128Gb microSD for video over Verizon in the US. Here's the problem I'm facing. On two separate long range flights so far, I've had the 4g mods "lock up". Here's what happens: Somewhere along the flight I hit a spot where the 4g signal is lost (due to distance from an antenna, aircraft orientation, whatever). Normally, when that happens, when the craft gets back in a good reception area (say in a minute or two), telemetry and FPV comes back and my glympse feed starts updating again. But twice now, I've had where it never reconnects. The first time, the Disco was over an hour away. For an hour I waited watching the skies until it came home. Something in the Disco had locked up to the point that, even when it got back to me and began loitering, I could not reconnect on the direct wifi in order to land the drone. I tried controller off and on, etc. Nothing worked. After the 5 minute loiter, the Disco auto-landed with me never regaining control. I powered the Disco off and back on and, as soon as I did so, everything worked including 4g connection and Glympse. Yesterday, I had a similar experience when I was over an hour and a half into the flight. I had had two momentary signal losses where they had regained. On the third one, I never regained telemetry, FPV or glympse. The drone came all the way home (through the exact same areas it had passed through outbound that have great coverage) with the connection never regaining, with the exception that I got one solitary glympse update about half way back. This time, I was able to take control via direct wifi when it got back. Again, after I powered the drone off and back on, everything worked fine. I have eliminated heat as the likely cause (good ventilation, cool weather, etc). I am running continual video recording onto the microSD in the Huawaii modem. On the first flight (the one where even wifi connection didn't work), the video file that was being written at the time of the loss of 4g control was not closed properly--clear that all connection to the modem had stopped. I don't think it was a cabling issue, since a power off and on immediately restored connection. On the second flight (where 4g and glympse quit but I could control via wifi), the video continued to record to the SD card. Any thoughts on what is occurring?

AndKe commented 3 years ago

@Robifpv20 - you wrote

The call will be blocked all the time until the other phone hangs up. Did you know about it?

Yes, this is normal, unless you have the call over VoLTE, (Voice over LTE) - then you lose internet connection while calling. It's how the cellular network works.

As for your successful reports - yes - this is how it usually works, most of the time. There is a slight chance for unsuccessful re-establishing of 4G and wifi - as I documented. The actual reason for my testing is that two years ago, I were flying on 4G , and lost connection - then the disco came, and did a circular landing, with no chance of re-connection (I tried wifi, and even re-started the controller after the landing. - until I rebooted Disco , the glympse, wifi, 4g could not be re-established.)

s0ftice commented 2 years ago

this seems to be related to the microSD card in the modem. Please try without and let me know if that solved the issue. Thanks!

AndKe commented 2 years ago

@s0ftice : I've never used the SD slot of the modem.

Robifpv20 commented 2 years ago

It seems to me that the memory card in the modem has no effect on blocking the connection and on disconnections. I often recorded to the card in the modem and did not notice any problems. Recently, I was disconnected when I was flying LTE, because there was a storm in the town next to the cellular network transmitter. Disco came back by itself and started landing very nicely against the wind. But I was able to switch to wi-fi at the last minute and take control, and then switched back to 4G LTE while in the air.

disco555 commented 2 years ago

Hi All , Can anyone help me , i set up the 4g softmod parrot disco got a solid blue light when into Zerotier the disco and controller are bridge, the next day decided to do a test flight with the 4g softmod in the park , turned on the disco then the skycontroller 2 got the green light everything was connected then i hit the setting button twice and the light went purple/pinky/ flashing blue for ages then went back to red and then to green i went home and tried this again and it worked at home i got a solid blue light and the Zerotier was bridge I am using a Huawei p20 phone is there something i am missing ?

s0ftice commented 2 years ago

Hi All , Can anyone help me , i set up the 4g softmod parrot disco got a solid blue light when into Zerotier the disco and controller are bridge, the next day decided to do a test flight with the 4g softmod in the park , turned on the disco then the skycontroller 2 got the green light everything was connected then i hit the setting button twice and the light went purple/pinky/ flashing blue for ages then went back to red and then to green i went home and tried this again and it worked at home i got a solid blue light and the Zerotier was bridge I am using a Huawei p20 phone is there something i am missing ?

this is not related to the above described issue. You got some useful answers in the Disco Group on Facebook, I suggest you go trough that first. Have a look at https://github.com/uavpal/disco4g/wiki/faq#badconnection as well.

Robifpv20 commented 2 years ago

If the LTE connection is unstable or too slow, it will disconnect frequently. First, check the LTE signal strength and internet speed in your area, if the 4G LTE Internet is good, you should not experience disconnection. The blue diode should be on all the time, and if during the flight a disconnection occurs and the red diode is blinking, it should take several seconds to quickly switch to blue. As a colleague said above, go through all the threads on this topic and gain the required knowledge and experience later. I greet you, do not give up.

Leolux226 commented 2 years ago

Hello im new here and have exactly same issue i tested a lot around looks like really happend only in 4g mode mostöy after 20-40 minutes wifi mode it runs 1h or more without problems. i checked if overhets but with open cover same if this heppend the check stops record files on sd crad are like not finished container wifi connection back not possibel only after restart the disco. I use 1.41 master version after glympse was not working, but btw glympse still now not work right dont show the right way. strange is teh plane still work my flight data on the parrot page is compleed it looks like a part of the check fails out. It happend on bench to connection lte is really good. what im checking now is OTG cable and probebly the stick at self. Is there any news about this problem i love this plane i love the 4g mod i buyd batterys 2 planes and got stuck in this issue for now

Leolux226 commented 2 years ago

So i did it agan i truy cool down the lte stick took longest test possibel 50 min but still get the issue after i made debug on take sd card out of the stick and i got it agan i will attach the log here i gues the problem comes at line 31129 at the log hopefully this will help to fix ulog_debug_20221030232151.log

Leolux226 commented 2 years ago

i guess thats the event looks like usb kernal issues i will truy other otg cable and i will order a other lte stick that son the supported list LOG: U I MassStorage (dragon-prog/Behaviour) : List id = 0 ; name = "internal" ; internal = 1 ; size = 29009 MB ; occupied = 5485 MB; U I COMMANDS (dragon-prog/Behaviour) : Cmd Tx : mass storage state ID <0> name U I COMMANDS (dragon-prog/Behaviour) : Cmd Tx : mass storage state info ID <0> usage <5485/29009> plugged <1> full <0> K E KERNEL : ci_hdrc ci_hdrc.1: fatal error K E KERNEL : ci_hdrc ci_hdrc.1: HC died; cleaning up K E KERNEL : usb_wwan_indat_callback: resubmit read urb failed. (-19) K I KERNEL : usb 1-1: USB disconnect, device number 2 K I KERNEL : usb 1-1.1: USB disconnect, device number 3 K E KERNEL : option: option_instat_callback: error -108 K W KERNEL : bcm_rpc_call_with_return: bcm_rpc_tp_recv_rtn() failed K W KERNEL : bcm_rpc_down K W KERNEL : DONGLE rpc dump: K W KERNEL : Version: 0x6257240 State: 4 K W KERNEL : session 105 trans 0x3ab9 oe_trans 0x5f75 rtn_trans 0x0 K W KERNEL : xactionID out of order 0 reorder ovfl 0 dropped hole 0 K W KERNEL : reorder queue depth 0 first ID 0x0 reorder_q_depth_max 0, tossthreshold 40 K W KERNEL : rpc_dbus_state_change: DBUS is down U E VIDEO_CAM_ANGLES(dragon-prog/camAngles) : [video_camAngles->handler_thread_video_camAngles()] error, failed to get intput data (res=-1) K E KERNEL : ci_hdrc ci_hdrc.1: force halt; handshake ee400144 00004000 00004000 -> -110 K E KERNEL : ci_hdrc ci_hdrc.1: HC died; cleaning up U E VIDEO_REPROJ(dragon-prog/video_reproj) : error, video_imu_frame_sync2 returned -2 K W KERNEL : bcm_rpc_down U E VIDEO_REPROJ(dragon-prog/video_reproj) : time between two frames to reproj > 50ms : 300296µs

parrotdisc commented 2 years ago

Hi guys if you want to save time and headache listen to me, I can garatee you that the disconnection issue without reconnecting is caused by the firmware version of your modem. I have spent days doing all possible checks I have 3 modems : two that open a web interface when inserted in the pc and one that opens an application. The one that opens the application when connected to the pc, when connected to the drone disconnects radomly without reconnecting again (sometimes only after one hour and sometimes also after only 30 minutes) , when that happens the drone won't even reconnect through wifi. Only restarting the drone reconnects it to the 4g. I don't know if downgrading the modem firmware fixes the problem. I just bought another one and lickyly with the compatible firmware. So if you want to solve this issue focus on the modem firmware!

ClassAxion commented 2 years ago

@parrotdisc so do you mean, that only modem without hilink (web interface) firmware cause the problem? You can flash hilink firmware on that modem and check if problem no longer exists.

parrotdisc commented 2 years ago

yes if you have that issue try to Flash it

Leolux226 commented 2 years ago

i was thinking the same but not so easy flashig right HILINK firmwares on this sticks do you can shre us wich firmware your sticks have that work fine? i also baught a new stick E8372h but teh disco dont come to the zerotier with that modem light all good. I will check to find a HILINK E3372h-153 and truy agan hopefully i got fixed not so easy more to find this sticks

ClassAxion commented 2 years ago

@Leolux226 I can flash any e3372 -153 (h or s hw version) with HiLink, even the "bricked" ones. Here is my guide for flashing (including firmware that I use): https://www78.zippyshare.com/v/HV6C0dyE/file.html

Leolux226 commented 2 years ago

i got 403 massage on that link :/

ClassAxion commented 2 years ago

@Leolux226 Ok, so try from this link: https://casmall1.smallhost.pl/E3372-GUIDE.zip

Leolux226 commented 2 years ago

i just follow this manual with that link: https://www.youtube.com/watch?v=oRii6o6JeZI&t=287sand worked on first time i just connected sk2 and disco over 4g start video and lets see tha to all here

parrotdisc commented 2 years ago

in order not to go into the trouble of flashing it I have bought another modem with the web interface wich works fine... so I am not going to waste any more time to flash the one that is not working I rather throw it away

ClassAxion commented 2 years ago

@parrotdisc if you did, you would prove that flashing the modem solves this problem. I don't have such a problem because I only fly on Hilink.

Leolux226 commented 2 years ago

I was now able to flash it. The tut on the Video works really good if you follow step by step. I think is a good idear to add this on the Faq that only the HILINK version work right. FInaly its fixed thx to all that helped i think this will help many guys for now and the future.

this is offtopic but is anybody able get glympse able to work right BAT volt dont show more thats no problem but if i fluy mostly only 30% of the route is inside. i recognise mostly and of the trip but even this is not compleed

ClassAxion commented 2 years ago

@Leolux226 Yes, tutorials like this will work for most people but if you got stuck with any problem during flash then you won't find a solution. My tutorial always work because I flashed many modems even those that were bought as damaged for $2.

Leolux226 commented 2 years ago

thx saved im happy this problem is solved

parrotdisc commented 2 years ago

I have managed to flash the firmware of the not working modem wich has now web interface. I will test it and let you know. The test consist in just switching on the drone and leave it on the table connected to the 4g (no need to connect the sc2). If after a few hours the modem has still a stable blue light and everything works this means the modem is fixed.

parrotdisc commented 2 years ago

when I go into the webui menu to change the language it stays in Russian, have tried also reinstalling the factory type Google won't also translate the page When I create a new profile inserting the new APN it won't even save it

ClassAxion commented 2 years ago

@parrotdisc Did you erase the user data? (last step in my guide) That's important. Language you can change using the select box in right top corner.

parrotdisc commented 2 years ago

yes you are right... I forgot the last step now it's working! I will do all the tests now thanks!

parrotdisc commented 2 years ago

I have tested the modem with the new firmware and now it does not disconnect anymore. The 4g Connection was stable for 2 hours so I can reconfirm that the issue was caused by the firmware of the modem...

ClassAxion commented 2 years ago

@parrotdisc Great! I personally prefer hilink firmware for e3372 modems, I have no problem with them.

parrotdisc commented 2 years ago

Hi I don't know about the Hi link software the modem that had the issue did not open the web interface but was using an application instead that you had to install first to connect it to the internet (mobile partner) now after reinstalling the firmware is uses the web interface and works fine like the other two modems that I had tested already

Nicktk23 commented 2 years ago

This is great news, il upgrade the modem to Hi-Link, i had the same problem before. Il begin my own test. I hope this is the Fix ;)

ClassAxion commented 2 years ago

If it works for you, in my opinion we should consider the hilink firmware as stable option and non-hilink firmwares as unstable.

Leolux226 commented 1 year ago

i baught more discos used here in germany and i saw that one of them have issue with the skycontroller even on wifi it get disconected. So its really improtant that your system work on bench like 1-2h without issues an dthan you can compare to the 4g connection. One of the worst things is if you restart the Sc2 there is no way get connection back without before connected over wifi its really improtent to know you cna restart all the lte stick the app but never restart the sc2 if the DIsco is to faar for an wifi connection.

parrotdisc commented 1 year ago

Hi there is a way to reconnect to the drone while it's flying even after restarting the SC2, since you have more drones connect it to another drone on wifi first and then switch back to 4g and it will connect back to the flying drone over 4g! I have a secondary chuck that I take with me ad use it for that when needed

Leolux226 commented 1 year ago

if there is a way to cennect back after restart over 4g would be supernice i dont know why this dont work. Probebly is doining a initialisation or something. Probebly is possibel safe that from last connect for the 4g connect or something like that

skyer29 commented 1 year ago

è successo anche a me!! Una volta disconnesso dal 4g non è riuscito a ricollegarsi ne al 4g ne al wi fi. Glympse non dava più dati e posizione. Ha fatto RTH e atterraggio circolare .

skyer29 commented 1 year ago

In merito si è trovata una soluzione?

parrotdisc commented 1 year ago

ciao come già discusso il problema è causato dal modem dipende dal firmware dello stesso in alto nella discussione vedi la soluzione (agg firmware)

skyer29 commented 1 year ago

ciao come già discusso il problema è causato dal modem dipende dal firmware dello stesso in alto nella discussione vedi la soluzione (agg firmware)

aggiornare il firmware, quale versione è quella corretta? o modificarlo tramite pc?

parrotdisc commented 1 year ago

non so quale versione sia meglio io ho 3 modem e l'unico che aveva tale problema non usava l'interfaccia web quando lo uso per collegare il PC all internet..ma bensì richiedeva l'installazione di un programma che era nella memoria del modem. Perciò dalla mia esperienza basta che abbia l'interfaccia web per funzionare bene. I test li faccio lasciando il drone acceso sul tavolo collegato al 4g (non serve mandarlo il volo) puoi anche spegnere il telecomando. Se resta collegato per più di un'ora (io faccio test da 2-3 ore) senza scollegarsi il modem funzione bene. Quello che non andava bene si scollegava dopo 30 min ma a volte anche dopo un'ora. Dopo l'aggiornamento firmware ho fatto un test di 3 ore. Nella discussione sopra trovi le note come fare l'aggiornamento. In ogni caso posso garantire che il problema è causato da modem e non dal chuck

skyer29 commented 1 year ago

ti ringrazio mi sei stato di grande aiuto. Anche il mio al collegamento apre un app e non interfaccia web… ora devo solo capire come fare per rimediare (non so se basta fare un aggiornamento). Qual è il modello di chiavetta con interfaccia web?

parrotdisc commented 1 year ago

in questa discussione in cima c'è scritto tutto anche come fare l'aggiornamento...