These are chat archives for SmingHub/Sming

26th
Nov 2015
ystrem
@ystrem
Nov 26 2015 09:12
@alonewolfx2 Did you test the neopixel example ? I'm getting error while generating image ...
ystrem@ubuntu:~/dev/Sming/Basic_Neopixel$ make clean 
ystrem@ubuntu:~/dev/Sming/Basic_Neopixel$ make
C+ app/application.cpp
AR out/build/app_app.a
LD out/build/app.out

#Memory / Section info:
------------------------------------------------------------------------------
/bin/sh: 1: [[: not found

out/build/app.out:     file format elf32-xtensa-le

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .data         00000374  3ffe8000  3ffe8000  000000e0  2**4
                  CONTENTS, ALLOC, LOAD, DATA
  1 .rodata       00000cb4  3ffe8378  3ffe8378  00000458  2**3
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          00006e20  3ffe9030  3ffe9030  00001110  2**4
                  ALLOC
  3 .irom0.text   0003016c  40209000  40209000  00006c30  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  4 .text         00005b15  40100000  40100000  0000110c  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
------------------------------------------------------------------------------
# Generating image...
Traceback (most recent call last):
  File "/opt/esp-open-sdk/esptool/esptool.py", line 642, in <module>
    image.add_segment(e.get_symbol_addr(start), data)
  File "/opt/esp-open-sdk/esptool/esptool.py", line 379, in get_symbol_addr
    self._fetch_symbols()
  File "/opt/esp-open-sdk/esptool/esptool.py", line 376, in _fetch_symbols
    self.symbols[fields[2]] = int(fields[0], 16)
ValueError: invalid literal for int() with base 16: 'U'
make: *** [out/build/app.out] Error 1
Alexander V. Ribchansky
@avr39-ripe
Nov 26 2015 09:24
@ystrem this is common issue to sming/develop + sdk 1.4
@ystrem see my pr #447 for solution
@ystrem you need build esptool2 from @raburton repository
this solution works fine for me ;)
ystrem
@ystrem
Nov 26 2015 09:26
:D
ok I'll try
somewhere work and somewhere don't
:D
Alexander V. Ribchansky
@avr39-ripe
Nov 26 2015 09:27
there is trouble in recent sming so esptool.py can't generate flashable images.. but esptool2 can.. even for standalone projects without rBoot
so one should use esptool2 to generate image from elf and esptool.py to flash image to esp device
ystrem
@ystrem
Nov 26 2015 09:30
So I have to only change these few lines or should I add some apps ?
Yeah Ok, I replaced the makefile-project with the new one and I'm missing esptool2 now :D
Ohh sry I see :D
Alexander V. Ribchansky
@avr39-ripe
Nov 26 2015 09:32
@ystrem you should patch Makefile-project.mk, then build esptool2 from git@github.com:raburton/esp8266.git and then point to esptool2 in Makefile-user.mk in project dir by ESPTOOL2 = /some/path/to/esptool2
ystrem
@ystrem
Nov 26 2015 09:34
ok
zardam
@zardam
Nov 26 2015 09:37
Hello. I have the same problem. Is it normal that some symbols are undefined in the produced binary (that's why esptool.py is failing) ? Adding smartconfig library helps, but "__errno" is still missing
ystrem
@ystrem
Nov 26 2015 09:38
@avr39-ripe Thanks, it's working now.
Alexander V. Ribchansky
@avr39-ripe
Nov 26 2015 09:38
@zardam try solution describing above ;)
@ystrem write please some feedback in pr #447 so it get faster in develop...
zardam
@zardam
Nov 26 2015 09:46
Ok, I will try, but I'm still worried about the missing symbol.
ystrem
@ystrem
Nov 26 2015 09:48
@avr39-ripe I think it's ok in PR, but the change it is not merged with branch
hreintke
@hreintke
Nov 26 2015 10:12
@avr39-ripe : merged into develop please confirm correct working/behavior
@ystrem : please confirm too
alonewolfx2
@alonewolfx2
Nov 26 2015 10:23
@kireevco here is error for esp-alt-sdk
D:\yedek\mb\esp-alt-sdk-master>make
wget --content-disposition "http://bbs.espressif.com/download/file.php?id=838" --output-document esp_iot_sdk_v1.4.0_15_09_18.zip
--2015-11-26 12:22:40--  http://bbs.espressif.com/download/file.php?id=838
Resolving bbs.espressif.com... 192.232.250.227
Connecting to bbs.espressif.com|192.232.250.227|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2158645 (2.1M) [application/octet-stream]
Saving to: `esp_iot_sdk_v1.4.0_15_09_18.zip'

100%[======================================>] 2,158,645    493K/s   in 4.3s

2015-11-26 12:22:46 (493 KB/s) - `esp_iot_sdk_v1.4.0_15_09_18.zip' saved [2158645/2158645]

unzip -q -o esp_iot_sdk_v1.4.0_15_09_18.zip
mv License esp_iot_sdk_v1.4.0
touch esp_iot_sdk_v1.4.0/.dir
ln -snf esp_iot_sdk_v1.4.0 sdk
patch -N -d esp_iot_sdk_v1.4.0 -p1 < /src/c_types-c99.patch
/bin/sh: /src/c_types-c99.patch: No such file or directory
make: *** [.sdk_patch_1.4.0] Error 1
but here is directory file list
ystrem
@ystrem
Nov 26 2015 10:26
@hreintke yep it's working, but I have to change path for esptool2 and compile spiffy
alonewolfx2
@alonewolfx2
Nov 26 2015 10:26
D:\yedek\mb\esp-alt-sdk-master\src>ls
c_types-c99.patch  esp-binutils  gcc-xtensa  lx106-hal  newlib-xtensa
hreintke
@hreintke
Nov 26 2015 10:34
@ystrem : thx. esptool2 and spiffy is "normal behavior"
ystrem
@ystrem
Nov 26 2015 11:05
anybody using ADC ?
Alexander V. Ribchansky
@avr39-ripe
Nov 26 2015 11:38
hello again! can anybody tell why it takes so long time to serve even small json from esp+sming? for me it takes about 1 second.. no matter 200-300 bytes, or about 1kBytes... :( is there some chance to reduce download time? I test it in chrome's dev console...
Alexander V. Ribchansky
@avr39-ripe
Nov 26 2015 12:14
@ystrem looks nice :)
@ystrem very ASCIIsh :)
robotiko
@robotiko
Nov 26 2015 13:09
hi, I start a web server in AP mode as in the hhtpserver_configNetworks and MeteoControl but it the httpserver doesnt reply
anyone has it working?
slaff
@slaff
Nov 26 2015 14:37

@kireevco

why it’s been such a long time and no one attempted to implement it?

As far as I can see it the TCPConnection class needs to be changed to add SSL support.
The actual SSL functions should come from axTLS, as in esp8266/Arduino.
If the size of a simple app increases drastically with SSL support, then we should enable SSL support only if the user during compile type defined SSL_ENABLED or something like this.

Then there should be TcpConnection constructor that has as a parameter enableSsl. TcpConnection::connect(ip, port) should check for enableSsl and create a new SSL context. After that the read and write methods should be using the ssl context reading and writing.

And finally we need good C/C++ programmer like Anakod or RBurton to code this :)

Alexander V. Ribchansky
@avr39-ripe
Nov 26 2015 14:41
Hello, guys! I'v made some tests for http performance... results in #449 :( can anybody comment on it?? thanks!
I like the idea of the new pie, being a port expander for esp....
ystrem
@ystrem
Nov 26 2015 19:22
I wonder how small is power consumption of this new pi...
alon24
@alon24
Nov 26 2015 19:42
this matters only In projects that are not connected to power contantly
zhivko
@zhivko
Nov 26 2015 20:42
@avr39-ripe Nice!Thank you for tests, and because of this I am not going to adopt 1.4sdk ... yet
@avr39-ripe I couldn't go deeper in that either
@alon24 I saw the pie zero too! nice, but doesn't have wifi interface ;)
alon24
@alon24
Nov 26 2015 20:44
@zhivko yes, but u add a wifi of 3$ and it has, but also add the espp, and u have mqtt device!
zhivko
@zhivko
Nov 26 2015 20:48
@robotiko HttpServer runing at my side with 1.3SDK in my project. However I dont know for meteocontrol and configNetworks
@alon24 how would you add esp? what communication between - spi ?
alon24
@alon24
Nov 26 2015 20:49
serial
i think spi too
zhivko
@zhivko
Nov 26 2015 20:49
is second serial working?
@alon24 are you maybe using steppers in your project?
alon24
@alon24
Nov 26 2015 20:50
@robotiko is using steppers
zhivko
@zhivko
Nov 26 2015 20:51
Ah yes - I know - but he is absent now probably ;)
I thought I could do close loop stepper with esp support but find wifi little bit unreliable while other processing goes on - maybe in esp32 this would be better
alonewolfx2
@alonewolfx2
Nov 26 2015 20:57
@zhivko @avr39-ripe is there any 5$ link :) infound many link byt 14-18$ :)
zhivko
@zhivko
Nov 26 2015 21:07
it was on twitter
What impresses me is Arm and GHz power :)
for 5$usd :)
alonewolfx2
@alonewolfx2
Nov 26 2015 21:08
I remember I saw 1 more 9$ ghz ppower computer on kickstarter and it has built in wifi but 25$ shipping shame
alonewolfx2
@alonewolfx2
Nov 26 2015 21:13
I received esp-14's today and it has stm8s003. I suprized
Seller didnt said and wroted on site .
Did anyone saw that esp14
zhivko
@zhivko
Nov 26 2015 21:15
not me. stm is flash ?
alonewolfx2
@alonewolfx2
Nov 26 2015 21:16
No. 16mhz Microcontroller
zhivko
@zhivko
Nov 26 2015 21:31
What? Not from Espressif?
d-anders
@d-anders
Nov 26 2015 21:36
doesnt it have stm + esp?
i think it has both
alonewolfx2
@alonewolfx2
Nov 26 2015 21:40
@d-anders yes both
d-anders
@d-anders
Nov 26 2015 21:42
looks ,
like you cant access the esp8266 to reprogram it though :/
alonewolfx2
@alonewolfx2
Nov 26 2015 21:44
No it seems I can access it but it seems stm pins broken out and I can use esp via just serial
d-anders
@d-anders
Nov 26 2015 21:45
yeah
save it for when you wany
want something low-power + occasional wifi
alonewolfx2
@alonewolfx2
Nov 26 2015 21:50
Low power mean ? You cant disable esp
d-anders
@d-anders
Nov 26 2015 21:51
you cant?
then you should feed it to the garbage bin
alonewolfx2
@alonewolfx2
Nov 26 2015 21:59
Maybe
zhivko
@zhivko
Nov 26 2015 22:00
@alonewolfx2: have you saw this: http://bbs.espressif.com/viewtopic.php?t=1313
alonewolfx2
@alonewolfx2
Nov 26 2015 22:04
Yes. It seems tx rx and gpio0 broken out
alonewolfx2
@alonewolfx2
Nov 26 2015 22:10
How csn program to stm8 is there arduino port
alonewolfx2
@alonewolfx2
Nov 26 2015 22:16
Disappointing. ..
zardam
@zardam
Nov 26 2015 23:56

@zardam try solution describing above ;)

@avr39-ripe : Sorry to come back with this problem, but I think #447 is a wrong solution. See #450