|
Post by shakyjake on Jul 15, 2018 14:40:43 GMT -8
I've spent 5 hours trying to get this hardware to work, and am quite frustrated. Admittedly, I'm a noob. But I can read directions and nothing is working and the "tutorials" are no help. I have gone through multiple iterations, unistalled, reinstalled all my serial/usb drivers, the the IDE. I've gone through your threads on this forum and have tryed propsed fixes and am still stuck.
I am on a Win 8.1 machine. I am trying to load V008, I can't get it to compile in the IDE. I added the ESP32 libraries using the updated "additional URL" links you provided. Selected "Adafruit ESP32 Feather", try to compile and get the following error (in italics):
____________________________________________
C:\Users\***\Downloads\SDL_ESP32_BC24DEMO-master (1)\SDL_ESP32_BC24DEMO-master\SDL_ESP32_BC24DEMO\SDL_ESP32_BC24DEMO.ino:69:21: fatal error: TimeLib.h: No such file or directory
compilation terminated.
Multiple libraries were found for "WiFi.h"
Used: C:\Users\***\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0-rc3\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
Error compiling for board Adafruit ESP32 Feather.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
____________________________________________
Additionally, I bought two of these. It appears I may have bricked the first one trying to upload the SmartConfig sketch up to it since I couldn't connect with any of the 3 ways the documentation says it supports. So once we figure out how to get this second board connected, I'll need help getting that back on line...
Thanks.
|
|
|
Post by Powderjockey on Jul 15, 2018 16:39:34 GMT -8
C:\Users\***\Downloads\SDL_ESP32_BC24DEMO-master (1)\SDL_ESP32_BC24DEMO-master\SDL_ESP32_BC24DEMO\SDL_ESP32_BC24DEMO.ino:69:21: fatal error: TimeLib.h: No such file or directory compilation terminated. Multiple libraries were found for "WiFi.h" Used: C:\Users\***\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0-rc3\libraries\WiFi Not used: C:\Program Files (x86)\Arduino\libraries\WiFi exit status 1 Error compiling for board Adafruit ESP32 Feather. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. ____________________________________________ Additionally, I bought two of these. It appears I may have bricked the first one trying to upload the SmartConfig sketch up to it since I couldn't connect with any of the 3 ways the documentation says it supports. So once we figure out how to get this second board connected, I'll need help getting that back on line... Thanks. Go to this link github.com/PaulStoffregen/Time and download the .zip file. Then, in the IDE, go to Sketch>Include Library and click on Add .ZIP Library... In your file download area, you should be able to find the Time-Master.zip. Click on it and Open. It will install the Time.h required for the compilation of the sketch. Try to compile. If you get a repeat error, ,then close the IDE and restart it. Then re-compiling should work.
The WiFi error is not a problem if multiple libraries were found.
Just for a word on the Smartconfig. I used the IOT Espressif App on the Android side of things and was able to connect to mine.
|
|
|
Post by SDL on Jul 15, 2018 17:55:22 GMT -8
You beat me to it. I'll add the Time.h in the instructions. Funny how this is included in some installations and not in others. Won't hurt to install it again, though for the ones that don's need it.
BP
|
|
|
Post by shakyjake on Jul 17, 2018 22:07:37 GMT -8
Go to this link github.com/PaulStoffregen/Time and download the .zip file. Then, in the IDE, go to Sketch>Include Library and click on Add .ZIP Library... In your file download area, you should be able to find the Time-Master.zip. Click on it and Open. It will install the Time.h required for the compilation of the sketch. Try to compile. If you get a repeat error, ,then close the IDE and restart it. Then re-compiling should work.
The WiFi error is not a problem if multiple libraries were found.
Just for a word on the Smartconfig. I used the IOT Espressif App on the Android side of things and was able to connect to mine. Thank you Powderjockey, that worked! I was able to get the libraries added and then it compiled and uploaded. I had a devil of a time getting it to connect to WiFi, no luck after multiple different attempts on SmartConfig. Finally got the WiFi AP to connect. You have to sit and watch it and connect as soon as you see it pop up. I could only connect to the web server using my iPhone. I could not get it to load on any Windows based browser. Seems like all the dev and testing for this product only occured on MAC/IOS based devices.
|
|
|
Post by shakyjake on Jul 17, 2018 22:11:28 GMT -8
You beat me to it. I'll add the Time.h in the instructions. Funny how this is included in some installations and not in others. Won't hurt to install it again, though for the ones that don's need it. BP @sdl, so in all my troubleshooting of trying to get these to work (I bought two), I screwed up the first one. Based on the instructions, I tried to load SmartConfig Wifi onto the chip because it wasn't working and the instructions read like it had to be loaded on, so i used the ESP Feather Wifi tools and it compiled and uploaded to the BC24. At this point I lost the ability to communicate with the chip and all the lights are off. However, when I plug it into my Win 8.1 system, it recognizes a device has been plugged in. I tried loaded the V008 software onto the BC24, but the Arduino IDE compiles and then gives this error message. So it's not seeing the board appraently. Any tips? __________ serial.serialutil.SerialException: could not open port 'COM5': WindowsError(2, 'The system cannot find the file specified.')
Failed to execute script esptool
the selected serial port Failed to execute script esptool
does not exist or your board is not connected __________
|
|
|
Post by shakyjake on Jul 17, 2018 22:14:11 GMT -8
Ok so with some tinkering I got it to work. COM port issues.
Now I am unable to get this chip connected using Local AP, Smart Config or WPA. I am able to connect to the web server, "Configure Wifi", enter credentials, and it commits and then continually get a red light then it switched to the 5 blinking red LEDs which I understand mean that it is not connected to WiFi. On my other BC24, it took two trys to get it to commit. I have tried at least 5 times and it is not connecting.
I've used the Esptouch app on IOS, and it just fails continually. Coud use some direction here on when to try to connect at what point in the bootup/light sequence of the device once connected to power.
Thanks.
|
|
|
Post by Powderjockey on Jul 18, 2018 17:04:40 GMT -8
Ok so with some tinkering I got it to work. COM port issues. Now I am unable to get this chip connected using Local AP, Smart Config or WPA. I am able to connect to the web server, "Configure Wifi", enter credentials, and it commits and then continually get a red light then it switched to the 5 blinking red LEDs which I understand mean that it is not connected to WiFi. On my other BC24, it took two trys to get it to commit. I have tried at least 5 times and it is not connecting. I've used the Esptouch app on IOS, and it just fails continually. Could use some direction here on when to try to connect at what point in the bootup/light sequence of the device once connected to power. Thanks. I don't know what the easy tip is here. I'm using Mac OSX for a computer, using the IOT Espressif Android App for the Smartconfig and it took me the better part of 6 hours to get the BC24 to connect and ended up to be with the BC24 AP. I even used an iOS phone with the app and still nothing. Don't take the unit somewhere expecting to connect to the wifi, as you may spend a lot of time trying.
There has to be a time when the lights blink blue, white, green or something when to press a button here, there or somewhere.
You can open the Tools>Serial Monitor and watch as it attempts to connect, but I was not able to connect following it.
|
|
|
Post by SDL on Jul 19, 2018 13:23:01 GMT -8
Here in the lab, we have had problems with SmartConfig (both Smartconfig and the espressif app) but they always seem to work for us on a second try or so. We have had success with the Connect button on our router (Netgaurd N600) and we can also get on the Access Point 192.168.4.1 on our Macs. Note: The AP method is the same system we use with OurWeather and hundreds of customers have used that successfully.
BP
Look in the README.md (appended below) for SDL_ESP32_BC24DEMO to see the timing and what each color means for the process. I repeat it here below:
Startup On Startup the software looks for a previously set WiFI connection. If it finds it then, you will see three green lights flash. If it doesn't find the WiFi or has never been connected to a WiFi, then it starts though the WiFi detection sequence.
WiFi Connection Sequence - Provisioning SmartConfig WPS Button on AP Local AP on ESP32 (192.168.4.1) Note: This was developed for the BC24 ESP32 Based 24 RGBW Pixel LED Board
SmartConfig This method uses the TI method of provisiong "SmartConfig" was invented by TI. You can refer to it here: https://community.particle.io/t/smart-config-the-missing-manual-now-available/442 In order to do SmartConfig, you need a smartphone or tablet (Android or iOS) that connected to WiFi network (which you want ESP32 to connect to) and installed a special application. On this application, you just supply the ssid and password of WiFi network so that the application can use, encode them and then broadcast (via UDP) encoded ssid and password (under packet format) over the air. When this software is being run, the ESP32 (with the SmartConfig software loaded) will capture these packets, decode back ssid and password and use them to connect to Wifi network. After connecting to WiFi, the ESP32 will use mDNS to multicast a message to the application to notify that it has successfully connected to WiFi.
The source code of special application is supplied by Espressif. You can download at: https://github.com/EspressifApp/EsptouchForAndroid https://github.com/EspressifApp/EsptouchForIOS This application is also available on App Store. You can use it to test SmartConfig feature.
For Android, this application is available under name "IOT_Espressif" or another application "ESP8266 SmartConfig" (this is for ESP8266 but you can use it for ESP32): https://play.google.com/store/apps/details?id=com.cmmakerclub.iot.esptouch https://play.google.com/store/apps/details?id=com.espressif.iot
- For iOS, this application is available under name "Espressif Esptouch": https://itunes.apple.com/us/app/espressif-esptouch/id1071176700?mt=8 There is also another app on the iOS Appstore, search on "SmartConfig"
Color sequence Default Time: 15 seconds to hit Smart Config on app, 30 seconds timeout on response - Three White Lights - Three Red on failure - Three Green on success
WPS Button on AP Wi-Fi Protected Setup (WPS; originally, Wi-Fi Simple Config) is a network security standard to create a secure wireless home network. Introduced in 2006, the goal of the protocol is to allow home users who know little of wireless security and may be intimidated by the available security options to set up Wi-Fi Protected Access, as well as making it easy to add new devices to an existing network without entering long passphrases.
This library will wait 60 seconds (in the example) for the WPS packets to be recieved by the ESP32.
A major security flaw was revealed in December 2011 that affects wireless routers with the WPS PIN feature, which most recent models have enabled by default.
This software does not use the PIN feature.
Color sequence Default Time: 30 seconds timeout if no WPS button sent from AP - Three White Lights - Two White Lights during search - Two Red Lights on failure - Two Green on success Local AP (192.168.4.1) For the third provisioning method, the ESP32 is set up as an access point (192.168.4.1) - look at your list of WiFi APs on your computer when it is running. A small web server is started that will allow you to select the AP that you want the ESP32 to connect to and then you can enter the password for the access point. It runs for 60 seconds by default.
Color sequence Default Time: 60 seconds timeout if No completed Webform returned - One Blink of single White Light - One Blinking White Light during AP page active - One Red Light on failure - One Green on success Remember that all of these features may fail and have to be repeated. Nature of the beast.
|
|