sticilface / Esp8266-Hue

43 stars 12 forks source link

light.conf and groups.conf not found #3

Open legomannetje opened 8 years ago

legomannetje commented 8 years ago

This is the serial monitor

Arduino HueBridge Test Sketch size: 287240 Free size: 757760 ...... IP address: 192.168.. Starting SSDP...SSDP Started Philips Hue Started.... Size Lights = 56 Size Groups = 128 Failed to open lights.conf Failed to open groups.conf

Free Heap: 30496

How to fix it??

legomannetje commented 8 years ago

the problem that the app crash on launch, its that problem related or an other problem

sticilface commented 8 years ago

You have a hell of a lot of groups. I would try winding it down, try 10 lights, 2 groups or something.

I've not touched this project in a while... as most of the bridges / apps that you could use demand a huge amount of networking that the ESP cannot provide. especially when trying to drive a lot of lights... using son to control individual WS2812 which is what i had in mind just won't work.. not on this ESP.. maybe on the ESP32...

so... the failed to open lights msg is ok, that just means that one has not been saved to SPIFFS before. The fact that you get the FreeHEAP: means that the setuploop is finishing...

I'll need more information from you..

an example of it crashing..if you get an stack trace, copy it, along with corresponding function from an elf dump , which will allow you to find the offending function...

If you get to the free heap msg, then it should work if you load the hue app?

legomannetje commented 8 years ago

The ESP doesn't crash, but the app does... so he doesn't make the lights.conf and the groups.conf? and with the settings:

define pixelCount 10 // Strip has 30 NeoPixels

define pixelPin D1 // Strip is attached to GPIO2 on ESP-01

define HUEgroups 1

define HUElights 1

He stills say:

Philips Hue Started.... Size Lights = 56 Size Groups = 128 Failed to open lights.conf Failed to open groups.conf Free Heap: 31856

How is that?

The chrome extention ChromeHue finds it when i put in the IP and the ESP says the following:

GET_GROUP- todoGET_GROUP- todoGET_ALL_LIGHTS- todo GET_ALL_LIGHTS- todo GET_GROUP- todoGET_ALL_LIGHTS- todo GET_GROUP- todo

is this normal?

Thanks in advance! Legomannetje

sticilface commented 8 years ago

Hi,

ok sorry its been awhile since i've looked at this. the size of lights and groups is not how many there are.. it is how big the database is, these two numbers are how many bytes of RAM are being used for the database. so not very many... i forgot about that.. sorry

Can you try with chroma, this is the app that i used to develop.

The messages that you are looking at are bits of the protocol that I have not yet implemented. Basically... hue speak is pretty massive.... lots of requests for bits of data etc... but some / most of the clients i tested did not use them all... so some i just didn't get around to doing! and they even varied a lot in how they asked for the same thing. its a bit of a mess tbh...

if you have a mac try http://chromaforhue.com

sticilface commented 8 years ago

If the app is crashing it means it is not getting what it expects and borking... without the app i can't really test it... and i've got a bit much on at the moment to go down that route... feel free to try though