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

Unable to connect to WiFi network using kbox-config.json file #129

Open
BlackPearl293 opened this issue Feb 18, 2018 · 10 comments
Open

Unable to connect to WiFi network using kbox-config.json file #129

BlackPearl293 opened this issue Feb 18, 2018 · 10 comments
Labels

Comments

@BlackPearl293
Copy link

BlackPearl293 commented Feb 18, 2018

KBOX is able to understand that WiFi AP is set as disable (so it reads the config file), but cannot connect to WiFi network:
Display shows WiFi-C Connecting with IP 0.0.0.0

/Johan

kbox-config.json:

{
"imu": {
"enabled": true,
"frequency": 20,
"enableHdg": true,
"enableHeelPitch": true,
"mounting": "verticalStarboardHull"
},
"barometer": {
"enabled": true,
"frequency": 1
},
"wifi": {
"enabled": true,
"nmeaConverter": {
"xdrPressure": true,
"xdrAttitude": true,
"xdrBattery": true,
"hdm": true,
"mwv": true,
"rsa": true
},
"accessPoint": {
"enabled": false,
"ssid": "KBox"
},
"client": {
"enabled": true,
"ssid": "BlueCruise",
"password": "secret33"
}
},
"serial1": {
"inputMode": "nmea",
"outputMode": "nmea",
"baudRate": 38400,
"nmeaConverter": {
"xdrPressure": true,
"xdrAttitude": true,
"xdrBattery": true,
"hdm": true,
"mwv": true,
"rsa": true
}
},
"serial2": {
"inputMode": "nmea",
"outputMode": "nmea",
"baudRate": 4800,
"nmeaConverter": {
"xdrPressure": false,
"xdrAttitude": false,
"xdrBattery": false,
"hdm": true,
"mwv": true,
"rsa": true
}
},
"nmea2000": {
"txEnabled": true,
"rxEnabled": true
}
}

@sarfata
Copy link
Owner

sarfata commented Feb 18, 2018

@BlackPearl293 can you give more information on the network you are connecting to?

  • Is it 2.4 or 5Ghz?
  • What type of encryption is used?
  • What is the brand/type of access point you are using?

@BlackPearl293
Copy link
Author

BlackPearl293 commented Feb 18, 2018 via email

@BlackPearl293
Copy link
Author

Se my comments above
/Johan

@sarfata
Copy link
Owner

sarfata commented Jul 27, 2018

@BlackPearl293 Did you ever get this working? Looking at this now, I think the problem might be that the wifi module was not the same firmware version as the host.

Did you run both update command?

platformio run -e host -t upload
platformio run -e esp -t upload

So sorry I did not follow up earlier :/

@BlackPearl293
Copy link
Author

BlackPearl293 commented Jul 29, 2018 via email

@BlackPearl293
Copy link
Author

BlackPearl293 commented Jul 29, 2018 via email

@BlackPearl293
Copy link
Author

BlackPearl293 commented Jul 29, 2018 via email

@sarfata
Copy link
Owner

sarfata commented Jul 29, 2018

Johan,

Now it works, the kbox-config.json file.

Great :) Glad this works!

However there is a new error message also available as fatal at time of upload on the PC screen ”fatal: not a .git repository (or any of the parent directories): .git”

The git error is because you just downloaded a zip instead of using git to update the source code. This makes it impossible for kbox to detect the current version.

It's not critical, it just means you will not get the version number on the screen.

What values are valid for “mounting”. I have Starboard Hull (facing port), but I am not sure it is perfectly aligned with the boats longitudal axis.

The correct syntax for your mounting position is verticalStarboardHull. There is no option to adjust the axis slightly.

Also: is there reason to manipulate with frequency?

Frequency allows you to change how fast the message is sent. With 20, the heel/roll angles will be sent 20 times per second. I would recommend reducing this to 1 or 5 because otherwise it will fill up your logs very fast.

thomas

@BlackPearl293
Copy link
Author

BlackPearl293 commented Jul 29, 2018 via email

@sarfata
Copy link
Owner

sarfata commented Jul 29, 2018

@BlackPearl293 the images are not included in github replies. Can you email it directly to me or upload it in the issue via the github web interface?

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

No branches or pull requests

2 participants