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

cannot configure device #69

Closed
RREE opened this issue Apr 22, 2016 · 8 comments
Closed

cannot configure device #69

RREE opened this issue Apr 22, 2016 · 8 comments
Labels
Milestone

Comments

@RREE
Copy link

RREE commented Apr 22, 2016

Hi,
the project looks quite promising. Unfortunately I'm fighting issues nobody seems to have.

I can build and upload the Homie code to the device. I actually have two different devices, a Wemos D1 mini and a strange part called "ESP8266 serial WIFI Witty cloud"

  1. I cannot find any Android app. The references page just says that no app is available and I should check later on
  2. On my Android phone I'm connected to my standard WiFi net and I open your configuration page http://marvinroger.github.io/homie-esp8266. I then connecto to the Homie AP, type in my configuration and send it to the AP. As a response I get the error message "There was an error while sending the configuration. Please retry." In serieal output it tells me:
    Received CORS request for /config
    Received config request
    ... name is not a string
    Triggering Wi-Fi scan...
  3. I wrote my config.json manually and placed it in /data/homie/config.json and started the upload in Arduino IDE. I takes quite some time and then responds:
    Arduino: 1.6.8 (Windows 8.1), Board: "WeMos D1 R2 & mini, 80 MHz, 921600, 4M (3M SPIFFS)"

[SPIFFS] data : C:\Users\Rolf\Documents\Arduino\homie_test1\data
[SPIFFS] size : 3052
[SPIFFS] page : 256
[SPIFFS] block : 8192
/homie/config.json

[SPIFFS] upload : C:\Users\Rolf\AppData\Local\Temp\build4c3e170adfc69896b7d4f027890c0e0d.spiffs/homie_test1.spiffs.bin
[SPIFFS] address: 0x100000
[SPIFFS] reset : nodemcu
[SPIFFS] port : COM5
[SPIFFS] speed : 921600

Uploading 3125248 bytes from to flash at 0x00100000

...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
error: espcomm_upload_mem failed
SPIFFS Upload failed!

@DavidStacer
Copy link

Once the D1-mini is in WiFi AP mode, connect the PC wireless to it. Then I use the curl command to download the json configuration file. This uses the Homie configuration API

put the following in a file download.cmd in the same directory where the json file.
curl -X PUT http://homie.config/config --header "Content-Type: application/json" -d @test.json
pause

It will be interesting to see if you have problems with the D1-Mini going back into config mode when you plug it into the USB of your computer.

Is it the original or the newer V2 versions?

@marvinroger
Copy link
Member

@RREE

  1. There is currently a problem with the Adobe PhoneGap build service, I cannot do anything on my side to fix the Android app availability.
  2. The name is not a string error is weird... What do you fill as a name in the UI?
  3. This is an Arduino for ESP8266 issue, the uploading to the SPIFFS fails. Fill an issue there. :)

@marvinroger
Copy link
Member

@RREE I identified the name is not a string error bug. I'll fix it soon!

@marvinroger
Copy link
Member

Will land in the next release.

@marvinroger marvinroger added this to the v1.5.0 milestone Apr 23, 2016
@marvinroger
Copy link
Member

Released!

@RREE
Copy link
Author

RREE commented Apr 24, 2016

Thanks Marvin,
setting the config file via my mobile phone works now!

@marvinroger
Copy link
Member

Awesome! Unfortunately I can't do anything for the two other problems.

@marvinroger
Copy link
Member

The Android app is back up. :) It seems bigger than before however, but it should be good to go.

nmaiti pushed a commit to nmaiti/homie-esp8266_vizir that referenced this issue Jun 2, 2016
gorec2005 pushed a commit to gorec2005/homie-esp8266 that referenced this issue Jun 28, 2020
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

3 participants