Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Firmware Stopped Dafang Connecting to WiFi #291

Closed
mynameisdaniel32 opened this issue Apr 24, 2018 · 9 comments
Closed

Updating Firmware Stopped Dafang Connecting to WiFi #291

mynameisdaniel32 opened this issue Apr 24, 2018 · 9 comments

Comments

@mynameisdaniel32
Copy link

I just had a go at updating my firmware (was previously using one from about a month ago) and now the camera won't connect to WiFi at all. When powering up I get a solid orange LED for about 5 seconds, a half second blink of the blue LED, then it goes back to the orange LED.

I have tried reflashing the CFW without change. I formatted the entire SD card and put a fresh copy of the firmware files onto it (and recreated the wpa_supplicant.conf file) without improvement.

Any ideas?

@jmtatsch
Copy link
Collaborator

Maybe your motors are stuck. Try commenting out hcalibrate & vcalibrate in run.sh

@jmtatsch
Copy link
Collaborator

And please rename you issue, it is highly misleading.

@jmtatsch
Copy link
Collaborator

Probably related to #287

@mynameisdaniel32 mynameisdaniel32 changed the title Updating Firmware Killed Dafang Updating Firmware Stopped Dafang Connecting to WiFi Apr 25, 2018
@mynameisdaniel32
Copy link
Author

Changed the title. I don't think it's related as my camera won't even connect to WiFi for me to ping/telnet to it.

I also spent some time reverting the firmware to what was on there previously, as well as an older build from here, both now have the same issue so something isn't happy. Will try stripping down run.sh to see what happens (motors were working fine when I reflashed the cfw though).

@mynameisdaniel32
Copy link
Author

I've worked this out and resolved the problem. Turns out when I updated the firmware using the GitHub Desktop software to clone the repo, it does something strange to the files and they cause corruption when read by the camera. Downloading the zip and using the files from that was my only change to fix it.

I only just found this from a comment somewhere deep in another issue, so I'm leaving this open for now as it's probably worthwhile adding a warning to the installation instructions? Or even better investigating the cause of this and fixing it.

@Dopeyr
Copy link
Contributor

Dopeyr commented Apr 26, 2018

Perhaps a .gitattributes file in the repo would resolve this? I haven't looked into it in any depth but https://help.github.com/articles/dealing-with-line-endings/#per-repository-settings suggests .gitattributes could control the line endings?

@atus
Copy link

atus commented Apr 27, 2018

@mynameisdaniel32 it's the line endings in windows vs linux. The camera can't digest \r\n. That's why the install instructions say download instead of clone repo.

atus added a commit to atus/Xiaomi-Dafang-Hacks that referenced this issue Apr 27, 2018
Add reason for downloading instead of cloning in windows to avoid more issues about wifi not working and similar issues to EliasKotlyar#291
@jmtatsch
Copy link
Collaborator

Fixed via pr #309

@sajeevfive
Copy link

sajeevfive commented Jun 25, 2018

I have the same problem but I did firmware update through Mobile app when it was recommending.

Can someone provide the steps to solve this issue as I'm a newbie.

Thanks in advance, sajeev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants