LYT8266 Flashing

瀏覽次數:160 次
跳到第一則未讀訊息

Christian Glomb

未讀,
2016年7月8日 清晨6:45:462016/7/8
收件者:souliss
I own an LYT8266 and am neither able to connect to it nor to flash it:

When I power on the bulb taken out of the box, I see a wifi hotspot called "LYT8266" to which I can connect and ping 192.168.4.1. However there is no web server running such that I can't configure anything via: http://192.168.4.1

The next approach was to load one of the Arduino example sketches onto the bulb using the following cable:

http://www.ebay.com/itm/USB-To-RS232-TTL-UART-PL2303HX-Auto-Converter-USB-to-COM-Cable-Adapter-Module-/181847253057?hash=item2a56f0e041:g:BFAAAOSw0e9Uw5QL

I connected:

ESP03_URXD (bulb) -> TX (USB cable)
ESP03_UTXD (bulb)  -> RX (USB cable)
GPIO0 + GND (bulb)  -> GND (USB cable)

while the bulb is turned off. Arduino IDE can't connect and therefore the sketch can't be flashed.

Shall I now turn on the bulb and flash it or is there an additional pin to connect the 3,3V PIN from the USB cable (resoldered as described here: http://hanneslehmann.github.io/2014/12/ESP8266Module/)

Any hints desperately welcome!

Domenico Carvetta

未讀,
2016年7月8日 上午10:42:462016/7/8
收件者:souliss
I never used the ESP03, but I think should be the same as described as ESP01.
I guess the connections should be ok (vcc, ch_pd both to 3.3V, gpio0 to gnd, cross rx and tx pin as you did, and finally gnd to gnd).
Then, toggle the power up and flash it; so making should works fine!

Christian Glomb

未讀,
2016年7月12日 清晨5:22:202016/7/12
收件者:souliss
No way! Even when soldering the wires directly to the ESP I get:

warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed

Christian Glomb

未讀,
2016年7月12日 清晨5:33:112016/7/12
收件者:souliss
Think I'll try with another programmer. Any good ideas which one to use?

Domenico Carvetta

未讀,
2016年7月12日 清晨6:46:262016/7/12
收件者:souliss
Try step by step; it's no easy to drive you to the solution due to few data you provided us.
Anyway, try this:


Domenico Carvetta

未讀,
2016年7月12日 清晨6:46:432016/7/12
收件者:souliss
and let us know!

Christian Glomb

未讀,
2016年7月12日 清晨7:27:262016/7/12
收件者:souliss
After additionally soldering CH_PD to VCC I could flash e02_LYT8266_WiFi_Erase!

Now fiddling around with the version chaos to compile and flash  e02_LYT8266_WiFi_Bulb...

error: cannot convert 'String' to 'const char*'

Am Dienstag, 12. Juli 2016 12:46:43 UTC+2 schrieb Domenico Carvetta:
and let us know!

Domenico Carvetta

未讀,
2016年7月12日 上午8:12:532016/7/12
收件者:souliss
So that now are you able to flash the esp ? right?
If so, pls send me the sketch ..I could compile it from my side just to trial run.

Christian Glomb

未讀,
2016年7月12日 上午8:14:382016/7/12
收件者:souliss
Finally flashed  e02_LYT8266_WiFi_Bulb via NodeMCU flasher. Hope that works such that I can use the OTA functionality now.

As a wish I would propose that you deliver the bulbs with some OTA firmware already installed such that users have a better start.

Thanks Domenico and Dario (via Email)!

Domenico Carvetta

未讀,
2016年7月12日 上午8:16:062016/7/12
收件者:souliss
Good news!

Domenico Carvetta

未讀,
2016年7月12日 上午10:25:502016/7/12
收件者:souliss
any other help ?

Christian Glomb

未讀,
2016年7月12日 下午2:42:592016/7/12
收件者:souliss
Just tried - it works such I can connect the bulb to my WiFi!

Since I don't have an Android device I'm looking for a way how to control the bulb via openHAB. The idea is to have two sliders, one for brightness (zero brightness = off) and one for changing the color. Is there already a solution to realize this?

Thanks again!

Christian Glomb

未讀,
2016年7月13日 凌晨4:03:432016/7/13
收件者:souliss
Is there any way to store WiFi info on the bulb? Currently the settings are lost when the bulb is switched off such that I have to reconnect to my WiFi again.

Domenico Carvetta

未讀,
2016年7月13日 清晨5:05:432016/7/13
收件者:souliss
For both previous posts, it depends on the sketch you are using; pls post it, and then we will see!


Thanks !!


Christian Glomb

未讀,
2016年7月13日 清晨6:49:302016/7/13
收件者:souliss
It's the "e02_LYT8266_WiFi_Bulb.ino" from the souliss examples.

Domenico Carvetta

未讀,
2016年7月13日 清晨6:57:122016/7/13
收件者:souliss
Ah ok.
It uses the OTA function; for now I don't use this function yet.
But you can easily modify the overall sketch to use the istructions as follows.
In order to start it's more easy and you can learn much more.
In case, you can ask....

// **** Define the WiFi name and password ****
#define WIFICONF_INSKETCH
#define WiFi_SSID             "xxxxxxxxxxxxxxxxx"
#define WiFi_Password         "zzzzzzzzzzzzzz"    

Try it !!


Di Maio, Dario

未讀,
2016年7月14日 凌晨1:46:582016/7/14
收件者:sou...@googlegroups.com

The module always save the wifi password, if is not working you are probably using a wrong Flash setting on the IDE.

You can any how use a password directly in the sketch as suggested by Domenico. There are examples in WiFi folder that shows how to.

Dario.

From Mobile.

Christian Glomb

未讀,
2016年7月14日 凌晨2:30:362016/7/14
收件者:souliss
You are right. The connectivity was lost due to weak WiFi.
Any hints for the openHAB binding? I already have a slider in the UI but need to bind it to the appropriate command.

Flavio P.

未讀,
2016年7月14日 凌晨3:12:372016/7/14
收件者:sou...@googlegroups.com
Hello Christian,
you can see souliss typicals, to select the needed logic profile.
With your slider, i can assume you want to control a pwm output, in this case i can suggest you to use T16 or T19 typicals.

For OH binding, generally you must:
   -add the binding(.jar file) to your addons folder
   -configure in your openhab.cfg file(make sure to insert the correct souliss gateway IP)
   -configure your logic profile on your .items file like {souliss=<Typical>:<nodeID>:<slot>:[<bit>]}
   -configure your items on your sitemap file

Example for T16:

Color  RGB_Led_Strip_1 "RGB Led Strip 1" <slider>           {souliss="T16:0:2", autoupdate=false}

This line configure a T16 typical in your node 0 on slot 2.


Hope this can help you ;)

Flavio



2016-07-14 8:30 GMT+02:00 Christian Glomb <christi...@gmail.com>:
You are right. The connectivity was lost due to weak WiFi.
Any hints for the openHAB binding? I already have a slider in the UI but need to bind it to the appropriate command.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/0919343a-31fa-4ff1-8dc2-356fb0644c9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
P ********* Consideriamo l'ambiente prima di stampare questa e-mail *** Think about environment before printing *********
Il contenuto di questo messaggio e-mail è privato e riservato al solo destinatario. L'utilizzo non autorizzato può costituire reato. Se ricevuto erroneamente siete pregati di cancellarlo e comunicarci via e-mail l'errata ricezione.
訊息已遭刪除

Christian Glomb

未讀,
2016年7月14日 清晨7:54:492016/7/14
收件者:souliss
Like this?

openhab.cfg
################################### Souliss Binding ###################################
#
# Souliss LYT8266
# For ITEM defination in file .item 
#{souliss=<Typical>:<nodeID>:<slot>:[<bit>]}

souliss:IP_LAN=192.168.178.47
#souliss:USER_INDEX=72
#souliss:NODE_INDEX=133
#SERVERPORT - Leave empty for casual port
souliss:SERVERPORT=

#time in mills
#souliss:REFRESH_DBSTRUCT_TIME=600000
#souliss:REFRESH_SUBSCRIPTION_TIME=120000
#souliss:REFRESH_HEALTY_TIME=60000
#souliss:REFRESH_MONITOR_TIME=500
#souliss:SEND_DELAY=1500
#souliss:SEND_MIN_DELAY=100
#souliss:SECURE_SEND_TIMEOUT_TO_REQUEUE=5000
#souliss:SECURE_SEND_TIMEOUT_TO_REMOVE_PACKET=30000

.items
Color LYT_BULB_C {souliss="T15:0:2", autoupdate=false}
Dimmer LYT_BULB_D {souliss="T15:0:2", autoupdate=false}
Slider item=LYT_BULB_C
Slider item=LYT_BULB_D

.sitemap
Slider item=LYT_BULB_C label="LYT Color"
Slider item=LYT_BULB_D label="LYT Brightness"

Domenico Carvetta

未讀,
2016年7月14日 下午1:38:472016/7/14
收件者:souliss
About the openhab.cfg; I use this as follows and it works fine:

################################ Souliss Binding ##########################################
#
# Souliss  

#
# For ITEM defination in file .item
#{souliss=<Typical>:<nodeID>:<slot>:[<bit>]}



souliss
:IP_WAN=192.168.1.104
souliss
:IP_LAN=192.168.1.104
souliss
:USER_INDEX=71
souliss
:NODE_INDEX=134

#SERVERPORT - Leave empty for casual port
souliss
:SERVERPORT=


#time in mills

souliss
:REFRESH_DBSTRUCT_TIME=600000
souliss
:REFRESH_SUBSCRIPTION_TIME=120000
souliss
:REFRESH_HEALTY_TIME=60000
souliss
:REFRESH_MONITOR_TIME=500
souliss
:SEND_DELAY=1500
souliss
:SEND_MIN_DELAY=100
souliss
:NODE_NUMBERS=3
##########################################################################################


About the .items and .sitemap, I guess Flavio suggested you to use the T16 :-)

Flavio P.

未讀,
2016年7月14日 下午4:32:442016/7/14
收件者:sou...@googlegroups.com


Il giovedì 14 luglio 2016, Christian Glomb <christi...@gmail.com> ha scritto:
Like this?

You must remove # in the beginning of line, something like:

 
openhab.cfg
################################### Souliss Binding ###################################
#
# Souliss LYT8266
# For ITEM defination in file .item 
#{souliss=<Typical>:<nodeID>:<slot>:[<bit>]}

souliss:IP_LAN=192.168.178.47
souliss:USER_INDEX=72
souliss:NODE_INDEX=133
#SERVERPORT - Leave empty for casual port
souliss:SERVERPORT=

#time in mills
souliss:REFRESH_DBSTRUCT_TIME=600000
souliss:REFRESH_SUBSCRIPTION_TIME=120000
souliss:REFRESH_HEALTY_TIME=60000
souliss:REFRESH_MONITOR_TIME=500
souliss:SEND_DELAY=1500
souliss:SEND_MIN_DELAY=100
souliss:SECURE_SEND_TIMEOUT_TO_REQUEUE=5000
souliss:SECURE_SEND_TIMEOUT_TO_REMOVE_PACKET=30000

Why T15?you have this typical in your sketch?


.items
Color LYT_BULB_C{souliss="T15:0:2", autoupdate=false}
Slider item=LYT_BULB

.sitemap


--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/b0daa989-70d5-44ba-a0f6-d63e9486a115%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Christian Glomb

未讀,
2016年7月15日 凌晨1:05:202016/7/15
收件者:souliss
So even I. have a light bulb (T15) I should use T16 (light strip)? Is the LYT8266 being controlled as a light strip?

Flavio P.

未讀,
2016年7月15日 凌晨2:28:562016/7/15
收件者:sou...@googlegroups.com
No no, if you have a T15 on board side it's ok and OH should work....isn't?


Il venerdì 15 luglio 2016, Christian Glomb <christi...@gmail.com> ha scritto:
So even I. have a light bulb (T15) I should use T16 (light strip)? Is the LYT8266 being controlled as a light strip?

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Christian Glomb

未讀,
2016年7月15日 下午4:33:402016/7/15
收件者:souliss
The bulb doesn't react and no errors can be seen in /var/log/openhab/openhab.log. Any ideas how to easily check the connection between openHAB and the bulb?

Flavio P.

未讀,
2016年7月15日 下午4:36:392016/7/15
收件者:sou...@googlegroups.com
One step back, with soulissapp work fine?


Il venerdì 15 luglio 2016, Christian Glomb <christi...@gmail.com> ha scritto:
The bulb doesn't react and no errors can be seen in /var/log/openhab/openhab.log. Any ideas how to easily check the connection between openHAB and the bulb?

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Christian Glomb

未讀,
2016年7月15日 下午4:39:592016/7/15
收件者:souliss
Can't test that since I don't have an Android system.

Flavio P.

未讀,
2016年7月15日 下午4:44:512016/7/15
收件者:sou...@googlegroups.com
Sorry Christian, I've checked only now( I suppose you made this control before start with OH binding), but T15 are not available in the binding. 
You can change with a T16 I think, but I've never seen a LYT, generally rgb led bulb, but I don't now how to integrate code with LYT bulb.

Flavio 

Il venerdì 15 luglio 2016, Christian Glomb <christi...@gmail.com> ha scritto:
The bulb doesn't react and no errors can be seen in /var/log/openhab/openhab.log. Any ideas how to easily check the connection between openHAB and the bulb?

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Flavio P.

未讀,
2016年7月15日 下午4:50:202016/7/15
收件者:sou...@googlegroups.com
You can use an emulator, like bluestacks.With soulissapp you can make some test without write code, you can use one of the example on board side and have a working system in a few minute.
Once your system work, we can step to OH.

Flavio


Il venerdì 15 luglio 2016, Christian Glomb <christi...@gmail.com> ha scritto:
Can't test that since I don't have an Android system.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Christian Glomb

未讀,
2016年7月15日 下午6:22:052016/7/15
收件者:souliss
Thanks, I'll try that. More complicated than I thought.

Di Maio, Dario

未讀,
2016年7月16日 凌晨4:30:072016/7/16
收件者:sou...@googlegroups.com

LYT are devices that has their own Ligics as in the relevant examples, use those and it will work in openHAB as T16.

Dario.

From Mobile.

Christian Glomb

未讀,
2016年7月16日 下午5:37:252016/7/16
收件者:souliss
Used the example sketch that the Arduino Souliss Lib provides and tried with T16 but no reaction.

Christian Glomb

未讀,
2016年7月16日 下午5:46:462016/7/16
收件者:souliss
At least openHAB receives something: 2016-07-16 23:43:05.838 [INFO ] [.o.b.s.internal.SoulissBinding] - receiveCommand - LYT_BULB_C = 62 - Typical: 0x16

Might there be some index mis-configured?

Di Maio, Dario

未讀,
2016年7月16日 下午6:41:232016/7/16
收件者:sou...@googlegroups.com

Install Blue Stack on your PC to emulate Android and ensure that your light is working fine.

Anyhow, post your sketch.

Dario.

From Mobile.

On 16 Jul 2016 23:46, "Christian Glomb" <christi...@gmail.com> wrote:
At least openHAB receives something: 2016-07-16 23:43:05.838 [INFO ] [.o.b.s.internal.SoulissBinding] - receiveCommand - LYT_BULB_C = 62 - Typical: 0x16

Might there be some index mis-configured?

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Christian Glomb

未讀,
2016年7月17日 下午4:10:122016/7/17
收件者:souliss
Works perfectly with Souliss App running via Bluestacks! Sketch is the e02_LYT8266_WiFi_Bulb provided with your lib.

Christian Glomb

未讀,
2016年7月17日 下午4:17:412016/7/17
收件者:souliss
openHAB log says:

2016-07-17 22:16:03.198 [INFO ] [s.i.network.udp.SendDispatcher] - Packet Execution timeout - Requeued
2016-07-17 22:16:04.805 [INFO ] [s.i.network.udp.SendDispatcher] - Packet Execution timeout - Removed

Di Maio, Dario

未讀,
2016年7月17日 下午4:19:312016/7/17
收件者:sou...@googlegroups.com

Post your openHAB config file

Dario.

From Mobile.

Christian Glomb

未讀,
2016年7月17日 下午4:21:282016/7/17
收件者:souliss
#######################################################################################
#####                        Binding configurations                               #####
#######################################################################################

Di Maio, Dario

未讀,
2016年7月17日 下午4:31:502016/7/17
收件者:sou...@googlegroups.com

Also the other configuration files.

Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Christian Glomb

未讀,
2016年7月17日 下午4:37:492016/7/17
收件者:souliss
You mean items and sitemap?

domenico carvetta

未讀,
2016年7月18日 凌晨2:16:112016/7/18
收件者:souliss

I guess Dario meant those files.

Christian Glomb

未讀,
2016年7月18日 清晨6:25:242016/7/18
收件者:souliss
.items
Color LYT_BULB_C {souliss="T16:0:2", autoupdate=false}
Slider item=LYT_BULB_C

Flavio P.

未讀,
2016年7月18日 清晨6:39:572016/7/18
收件者:sou...@googlegroups.com
Your LYT is on Slot 2?

Flavio
--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Christian Glomb

未讀,
2016年7月18日 清晨6:42:162016/7/18
收件者:souliss
No idea. Where can I find out about the slot? Actually I only have one LYT as was using the sketch "as is".

domenico carvetta

未讀,
2016年7月18日 清晨6:46:462016/7/18
收件者:souliss

Post the sketch here.

Flavio P.

未讀,
2016年7月18日 清晨6:48:502016/7/18
收件者:sou...@googlegroups.com
Your slot is in the sketch, if you use example as is, your slot is 0.
So your oh configuration are:
T16:0:0

Flavio 


Il lunedì 18 luglio 2016, Christian Glomb <christi...@gmail.com> ha scritto:
No idea. Where can I find out about the slot? Actually I only have one LYT as was using the sketch "as is".

Am Montag, 18. Juli 2016 12:25:24 UTC+2 schrieb Christian Glomb:
.items
Color LYT_BULB_C {so}
Slider item=LYT_BULB_C

.sitemap
Slider item=LYT_BULB_C label="LYT Color"

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Christian Glomb

未讀,
2016年7月18日 清晨6:51:572016/7/18
收件者:souliss
Thanks, I'll try (this evening).


Am Montag, 18. Juli 2016 12:48:50 UTC+2 schrieb Flavio:
Your slot is in the sketch, if you use example as is, your slot is 0.
So your oh configuration are:
T16:0:0

Flavio 

Il lunedì 18 luglio 2016, Christian Glomb <christi...@gmail.com> ha scritto:
No idea. Where can I find out about the slot? Actually I only have one LYT as was using the sketch "as is".

Am Montag, 18. Juli 2016 12:25:24 UTC+2 schrieb Christian Glomb:
.items
Color LYT_BULB_C {so}
Slider item=LYT_BULB_C

.sitemap
Slider item=LYT_BULB_C label="LYT Color"

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+unsubscribe@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/7aac61ab-1093-476e-bb26-b32715a35647%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christian Glomb

未讀,
2016年7月19日 凌晨2:14:542016/7/19
收件者:souliss
Partly successful with T16:0:0: When I configure a Switch for the Bulb then I can turn it on via openHAB. However, there is no feedback from the bulb such that openHAB doesn't detect that it is turned on. What might be the reason for that? Might that be the cause that Dimmer and Color don't work?

Christian Glomb

未讀,
2016年7月19日 上午9:16:392016/7/19
收件者:souliss
Any ideas or maybe a working example (openhab.cfg, .items, .sitemap)?

Christian Glomb

未讀,
2016年7月19日 上午11:00:542016/7/19
收件者:souliss
Strange:
- Leaving out autoupdate makes the slider work, but only from the iOS App (Slider sends values between 0 and 100).
- Slider behaves differently on the browers UI (sends Increase / Decrease instead of values).

Christian Glomb

未讀,
2016年7月19日 上午11:02:482016/7/19
收件者:souliss

Christian Glomb

未讀,
2016年7月20日 下午4:25:232016/7/20
收件者:souliss
OTA sketch upload also doesn't work: [ERROR]: No response from device

Domenico Carvetta

未讀,
2016年7月21日 清晨6:55:192016/7/21
收件者:souliss
The OTA function should work using as follows:
- IDE 1.6.8
- Souliss 720_rc branch
- core 2.1.0
The ESP must be the esp12f version; all the others have some unknown issues and maybe will not work!!
I hope now it's more clear.


Christian Glomb

未讀,
2016年7月21日 清晨7:01:322016/7/21
收件者:souliss
But LYT8266 has a ESP-03, hasn't it? And here Dario says that OTA works with LYT8266.

Di Maio, Dario

未讀,
2016年7月21日 下午1:19:292016/7/21
收件者:sou...@googlegroups.com

I've OTA with LYT but with IDE 1.6.5 and 7.1.1 and old cores, not yet tested OTA with 7.2 and IDE 1.6.8.

Anyhow OTA is a core function and is not directly related to Souliss, issue may be arise even if we doesn't change our code.

Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.
回覆所有人
回覆作者
轉寄
0 則新訊息