question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Orange Pi Support?

See original GitHub issue

Hi all,

Has anyone had any luck getting this running on an Orange Pi and/or could point me in the right direction?

I’m running Armbian - and when running start_flash.sh the process starts the four main processes in individual screen sessions (smarthack-smartconfig, smarthack-mqtt, smarthack-web, smarthack-wifi) however when connecting with my Smart phone (as suggested in the setup steps) I’m not getting any IP from the DHCP server on the Pi.

Here’s the logs from my smarthack-wifi screen session:

Backing up NetworkManager.cfg...
Restarting NetworkManager...
Backing up /etc/dnsmasq.conf...
Writing dnsmasq config file...
Creating new /etc/dnsmasq.conf...
Writing hostapd config file...
Configuring AP interface...
Applying iptables rules...
Starting DNSMASQ server...

dnsmasq: failed to create listening socket for port 53: Address already in use
RTNETLINK answers: File exists
Starting AP on wlan0 in screen terminal...
Configuration file: /etc/hostapd/hostapd.conf
Using interface wlan0 with hwaddr 12:42:de:b3:82:25 and ssid "vtrust-flash"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: STA f4:31:c3:52:a0:11 IEEE 802.11: authenticated
wlan0: STA f4:31:c3:52:a0:11 IEEE 802.11: associated (aid 1)
wlan0: AP-STA-CONNECTED f4:31:c3:52:a0:11
wlan0: STA f4:31:c3:52:a0:11 RADIUS: starting accounting session 6C729FA9394EE9D6
wlan0: STA f4:31:c3:52:a0:11 WPA: pairwise key handshake completed (RSN)
wlan0: AP-STA-DISCONNECTED f4:31:c3:52:a0:11
wlan0: STA f4:31:c3:52:a0:11 IEEE 802.11: disassociated
wlan0: STA f4:31:c3:52:a0:11 IEEE 802.11: authenticated
wlan0: STA f4:31:c3:52:a0:11 IEEE 802.11: associated (aid 1)
wlan0: AP-STA-CONNECTED f4:31:c3:52:a0:11
wlan0: STA f4:31:c3:52:a0:11 RADIUS: starting accounting session 6C729FA9394EE9D6
wlan0: STA f4:31:c3:52:a0:11 WPA: pairwise key handshake completed (RSN)

Any help would be greatly appreciated!

Cheers,

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
BuxtonCalvincommented, Oct 2, 2019

As an update, I was able to flash my gosund wp5 plugs with new convert-api branch on and OrangePI PC with a wifi dongle. I loaded standard Debian on the orangePI, upgraded to buster from stretch ( you have to manually update the debian AND the armbian apt sources to buster). Next bring down the wifi (ip link set dev “your wifi name” down), rename the wifi to wlan0, bring up wlan0, and then run the .start_flash.sh program. Also, you may have to do some manually updating of any failed per-requisites. I needed to install Python3 pip and some other Python utils that were causing errors. Once everything was installed, and there were no errors in the per-requisites, I was able to flash without a problem.

Great work here guys. Much appreciated to get my devices off the cloud.

0reactions
BuxtonCalvincommented, Jun 7, 2019

I ran the program on an Orange Pi 2 pc and was not able to get it to work using Armbian, as DNSmasq port (52) conflicted with another network manager. There were some other AP problems as well. But, I was able to get everything running smoothly using Debian.

However, after getting up and running, I was not able to flash my Tuya plugs due to the HTTPS issue that’s been widely commented on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Orange Pi - Orange Pi official website - Orange Pi ...
... open source education ecosystem covering open source hardware, open source software, open source chips, supporting videos, and forum communities.
Read more >
Amazon.com: : Orange Pi
Online shopping from a great selection at Orange Pi Store. ... Quad Core 64 Bit Single Board Computer Support Android 9.0, Ubuntu, Debian...
Read more >
Orangepi.com - Distributor of Orange Pi products in Europe ...
Orangepi.com is the home of the Orange Pi family of products for the UK and Europe. Part of the Lilliput family of websites....
Read more >
Orange Pi PC Download - CircuitPython
What's Orange Pi PC?It's an open-source single-board computer. It can run Android 4.4, Ubuntu, Debian Image. It uses the AllWinner H3 SoC, and...
Read more >
Orange Pi OS arrives to offer Android, Linux and Windows ...
Mistakable for Windows 11, Orange Pi OS can also be customised to resemble macOS but supports Android, Linux and Windows applications.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found