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

Setting HqHandler::host to an IP address doesn't seem to take #6

Open
amcjen opened this issue Mar 13, 2014 · 1 comment
Open

Setting HqHandler::host to an IP address doesn't seem to take #6

amcjen opened this issue Mar 13, 2014 · 1 comment
Assignees

Comments

@amcjen
Copy link
Member

amcjen commented Mar 13, 2014

Setting the host to an IP address in HqInfo.cpp:

const char HqHandler::host[] = "10.0.1.100";

And reflashing a lead scout results in NAUTO switching from it, to 0.0.0.0 then to 127.0.0.1

Hello from Pinoccio!
 (Shell based on Bitlash v2.0 (c) 2014 Bill Roy)
 14562 bytes free
 Build 2014031201
 Lead Scout ready
> wifi.status
Wi-Fi Versions: S2W APP VERSION=2.5.1
S2W GEPS VERSION=2.5.1
S2W WLAN VERSION=2.5.1
MAC=20:f8:5e:a1:49:d0
WSTATE=NOT CONNECTED    MODE=NONE 
BSSID=00:00:00:00:00:00   SSID="" CHANNEL=NONE   SECURITY=NONE
RSSI=0
IP addr=0.0.0.0   SubNet=0.0.0.0  Gateway=0.0.0.0
DNS1=0.0.0.0       DNS2=0.0.0.0
Rx Count=0     Tx Count=0 
 No valid Cids
> wifi.status
Wi-Fi Versions: S2W APP VERSION=2.5.1
S2W GEPS VERSION=2.5.1
S2W WLAN VERSION=2.5.1
MAC=20:f8:5e:a1:49:d0
WSTATE=NOT CONNECTED    MODE=NONE 
BSSID=00:00:00:00:00:00   SSID="" CHANNEL=NONE   SECURITY=NONE
RSSI=0
IP addr=0.0.0.0   SubNet=0.0.0.0  Gateway=0.0.0.0
DNS1=0.0.0.0       DNS2=0.0.0.0
Rx Count=0     Tx Count=0 
 No valid Cids
> wifi.command("AT&V")
ACTIVE PROFILE
C0 &Y0 E0 V0 &K1 CPL0 CPH0
+NDHCP=1 +NSET=192.168.1.99,255.255.255.0,192.168.1.1
+DNS1=0.0.0.0, +DNS2=0.0.0.0
+WM=0 +WAUTO=0,"Pinoccio",,
+WRETRY=5 +WP=0 +WRXPS=1 +WRXACTIVE=0
+NAUTO=0,1,10.0.1.100,22757
+WAUTH=0 +WWPA="***"+PSK-valid=0 +SSID=
+WWEP1=1234567890 +WWEP2=
+WWEP3= +WWEP4=
S0=01000 S1=00500 S2=00500 S3=00003 S4=00010 S5=00150 S6=01000 S7=00000
+BDATA=1  +WSEC=0  +ASYNCMSG=1 
STORED PROFILE 0
E0 V0 &K1 CPL0 CPH0
+NDHCP=1 +NSET=192.168.1.99,255.255.255.0,192.168.1.1
+DNS1=0.0.0.0, +DNS2=0.0.0.0
+WM=0 +WAUTO=0,"Pinoccio",,
+WRETRY=5 +WP=0 +WRXPS=1 +WRXACTIVE=0
+NAUTO=0,1,0.0.0.0,22757
+WAUTH=0 +WWPA="***"+PSK-valid=0 +SSID=
+WWEP1=1234567890 +WWEP2=
+WWEP3= +WWEP4=
S0=01000 S1=00500 S2=00500 S3=00003 S4=00010 S5=00150 S6=01000 S7=00000
+BDATA=1  +WSEC=0  +ASYNCMSG=1 
> wifi.status
Wi-Fi Versions: S2W APP VERSION=2.5.1
S2W GEPS VERSION=2.5.1
S2W WLAN VERSION=2.5.1
MAC=20:f8:5e:a1:49:d0
WSTATE=CONNECTED     MODE=AP 
BSSID=90:84:0d:d6:8f:ab   SSID="Pinoccio" CHANNEL=11   SECURITY=WPA2-PERSONAL
RSSI=-60
IP addr=10.0.1.114   SubNet=255.255.255.0  Gateway=10.0.1.1
DNS1=10.0.1.1       DNS2=0.0.0.0
Rx Count=18     Tx Count=925 
 No valid Cids
> wifi.status
Wi-Fi Versions: S2W APP VERSION=2.5.1
S2W GEPS VERSION=2.5.1
S2W WLAN VERSION=2.5.1
MAC=20:f8:5e:a1:49:d0
WSTATE=CONNECTED     MODE=AP 
BSSID=90:84:0d:d6:8f:ab   SSID="Pinoccio" CHANNEL=11   SECURITY=WPA2-PERSONAL
RSSI=-60
IP addr=10.0.1.114   SubNet=255.255.255.0  Gateway=10.0.1.1
DNS1=10.0.1.1       DNS2=0.0.0.0
Rx Count=18     Tx Count=1091 
 No valid Cids
> wifi.command("AT&V")
ACTIVE PROFILE
C0 &Y0 E0 V0 &K1 CPL0 CPH0
+NDHCP=1 +NSET=192.168.1.99,255.255.255.0,192.168.1.1
+DNS1=0.0.0.0, +DNS2=0.0.0.0
+WM=0 +WAUTO=0,"Pinoccio",,
+WRETRY=5 +WP=0 +WRXPS=1 +WRXACTIVE=0
+NAUTO=0,1,127.0.0.1,22757
+WAUTH=0 +WWPA="***"+PSK-valid=1 +SSID=Pinoccio
+WWEP1=1234567890 +WWEP2=
+WWEP3= +WWEP4=
S0=01000 S1=00500 S2=00500 S3=00003 S4=00010 S5=00150 S6=01000 S7=00000
+BDATA=1  +WSEC=0  +ASYNCMSG=1 
STORED PROFILE 0
E0 V0 &K1 CPL0 CPH0
+NDHCP=1 +NSET=192.168.1.99,255.255.255.0,192.168.1.1
+DNS1=0.0.0.0, +DNS2=0.0.0.0
+WM=0 +WAUTO=0,"Pinoccio",,
+WRETRY=5 +WP=0 +WRXPS=1 +WRXACTIVE=0
+NAUTO=0,1,0.0.0.0,22757
+WAUTH=0 +WWPA="***"+PSK-valid=0 +SSID=
+WWEP1=1234567890 +WWEP2=
+WWEP3= +WWEP4=
S0=01000 S1=00500 S2=00500 S3=00003 S4=00010 S5=00150 S6=01000 S7=00000
+BDATA=1  +WSEC=0  +ASYNCMSG=1 
> 
@matthijskooijman
Copy link
Collaborator

This turns out to be a bug in the gainspan firmware: Once you set a hostname, it will never be unset again, even when you specify an IP address (additionally, the length of the hostname can only grow, not shrink...). You'll have to factory reset and then only send an IP address to make that work. Nothing we can do to fix this, except add a warning comment.

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

2 participants