These are chat archives for SmingHub/Sming

22nd
Oct 2015
Richard Antony Burton
@raburton
Oct 22 2015 07:50
added a wiki page with rBoot instructions, please have a look and make suggestions as appropriate: https://github.com/SmingHub/Sming/wiki/rBoot-and-OTA-updating
Dmitry Kireev
@kireevco
Oct 22 2015 08:47
@raburton thank you so much
this is really essential
hreintke
@hreintke
Oct 22 2015 09:08
This message was deleted
@raburton @kireevco :
In the Generic readme we need some updates to be consistent with Release 1.4.0
Do you want me to create a PR or use the way Richard proposed to me for updating contributing (edit)
Dmitry Kireev
@kireevco
Oct 22 2015 09:25
@hreintke I think online readme edit is fine, no one is editing it
(IMO)
@hreintke we will need to test choco upgrade sming
hreintke
@hreintke
Oct 22 2015 09:29
@kireevco : agree but I cannot do that, I am a "Windows manual implementation" user
And do not have choco on my sytems
hreintke
@hreintke
Oct 22 2015 09:35
Just created 1.4.0 as pre-release.
Please check wording of release information
hreintke
@hreintke
Oct 22 2015 09:53

@kireevco : For my correct understanding of esp-open-sdk, is the following correct ?

• It is maintained in the pfalcon/esp-open-sdk
• prerequisite is a gcc for local system
• When build it creates 1/ esp toolchain for local system, 2/ esp-sdk generic for all (linux.windows,mac,..) systems

The generated esp-sdk is :

• Based on a specific version of Espressif SDK
• Parts of the Espressif SDK are replace by open source alternatives

In the repository I see there are two build options

• Where the toolchain and tools are kept separate from the vendor IoT SDK
• A completely standalone ESP8266 SDK with the vendor SDK files merged into the toolchain

Which of these is used for the one incuded in the sming install instructions ?

Dmitry Kireev
@kireevco
Oct 22 2015 10:58

@hreintke

It is maintained in the pfalcon/esp-open-sdk

yes

prerequisite is a gcc for local system

no.

When build it creates 1/ esp toolchain for local system, 2/ esp-sdk generic for all (linux.windows,mac,..) systems

No windows yet (trying to figure that out)

The generated esp-sdk is :
Based on a specific version of Espressif SDK
Parts of the Espressif SDK are replace by open source alternatives

yes.

In the repository I see there are two build options
Where the toolchain and tools are kept separate from the vendor IoT SDK
A completely standalone ESP8266 SDK with the vendor SDK files merged into the toolchain
Which of these is used for the one incuded in the sming install instructions ?

sming users use pre-built one (which was built with make STANDALONE=y

@hreintke does that make sense?
hreintke
@hreintke
Oct 22 2015 11:32
This message was deleted
hreintke
@hreintke
Oct 22 2015 11:46

@kireevco : Yes, starting to understand.

To build the standalone SDK and toolchain, you need a GNU/POSIX system (Linux, BSD, MacOSX, Windows with Cygwin) with the standard GNU development tools installed: gcc, binutils, flex, bison, etc.

Isn't that the prerequisite gcc ?

When build it creates 1/ esp toolchain for local system, 2/ esp-sdk generic for all (linux.windows,mac,..) systems
No windows yet (trying to figure that out)

I presume that is

• toolchain only for linux and mac not windows
• esp-open-sdk -> for generic use on linux, mac, windows

Do you have contact with pfalcon/jcmvbkbc to solve the windows issues in upstream ?

To get all sming users on the same sdk now we could ??

• build with make STANDALONE=n on some platform
• distribute esp-open-sdk for all platforms
• distribute pfalcon toolchain to linux/mac
• distrbute/link to?? Cherts toolchain to windows

That would create a situation where we have identical sdk's in use for sming and as such limit chance of incompatibilties.
@kireevco : does that make sense :smile:

alonewolfx2
@alonewolfx2
Oct 22 2015 12:08
it can be very good if someone port esp-open-sdk for windows :)
@all did anyone tried softwareserial?
Dmitry Kireev
@kireevco
Oct 22 2015 14:28
Pfalcon
Pfalcon doesn't know anything about Windows. I'm trying to solve tjis problem.
I have a build cluster for all 3 platforms but building it for Windows is not trivial
User won't be building sdk
Environment is way to complex and it takes about an hour to build :)
This is still work in progress and I'll update you guys when I will have results
Dmitry Kireev
@kireevco
Oct 22 2015 14:33
Everything is build from source using crosstool-ng
Everything that has source, including tool chain
My ultimate goal is to build esp open sdk for all 3 platforms
And distribute it as a zip archive or part of "sming" package
hreintke
@hreintke
Oct 22 2015 14:58
@kireevco : OK
But can you now upgrade/build/locate/store/distribute ? for linux and mac to the esp-sdk-open based on Espressif SDK 1.30.
Windows users are on UDK 2.0.8 which includes also 1.3.0
That give at least a common base for all platforms
alon24
@alon24
Oct 22 2015 14:59
@dmarkey do u use 1.4 now with sming?
hreintke
@hreintke
Oct 22 2015 14:59
@dmarkey : Sming support is currently on SDK 1.3.0.
When adding support for SDK 1.4.0 we will take care of this patch
Vincent Leung
@vincenthome
Oct 22 2015 15:22

I am a newie in Sming. I followed the instruction in https://github.com/SmingHub/Sming/wiki/Windows-Quickstart
I use eclipse to build basic_blink and got an error: cannot find -lsming
What am I missing? How do I fix it? Thanks!

11:20:43 Build of configuration Sming for project Basic_Blink
make all
C+ app/application.cpp
AR out/build/app_app.a
LD out/build/app.out
c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/5.1.0/../../../../xtensa-lx106-elf/bin/ld.exe: cannot find -lsming
collect2.exe: error: ld returned 1 exit status
make: * [out/build/app.out] Error 1

alon24
@alon24
Oct 22 2015 15:37
@vincenthome you need to build (make) rhe sming framework project
sming does not come with binaroies
Vincent Leung
@vincenthome
Oct 22 2015 15:39
@alon24 so run make in c:\tools\sming\Sming directory?
alon24
@alon24
Oct 22 2015 15:39
@vincenthome yes
Vincent Leung
@vincenthome
Oct 22 2015 15:40
thanks
alon24
@alon24
Oct 22 2015 15:40
also after this u need to run make in sming/spiffy too
if u load this project (sming) to eclipse, you would find helpers to do this (clean, rebuild,spiffy)
but this os not neccessary if u only need it one time
alon24
@alon24
Oct 22 2015 15:52
I just got this online http://www.fotek.com.hk/solid/SSR-1.htm (25da) can I drive this fromesp12 gpio? I mean without transisotor - i think its 7.5 ma, and gpio gives max of 12 right? so no issue?
Vincent Leung
@vincenthome
Oct 22 2015 15:53
@alon24 the build works!
Feel like asking a silly question. Is the app.out the binary? and do I flash the firmware and the basic_blink to esp8266?
how do I flash?
hreintke
@hreintke
Oct 22 2015 15:55
@all
I added in windows and linux quickstart page a description how to do that.
Am not familiar with that to do that to on mac quickstart
@vincenthome :
Are you using eclipse or commandline ?
Vincent Leung
@vincenthome
Oct 22 2015 15:59
@hreintke eclipse
hreintke
@hreintke
Oct 22 2015 16:00
in the project you have a target flash -> that will do the job
Used comport is default COM3 if you want/need to use another set environment var like : COM_PORT=COM5
Vincent Leung
@vincenthome
Oct 22 2015 16:07
YES! GOT IT BLINK :) Thanks guys!
David
@dmarkey
Oct 22 2015 16:09
Frm my initial tests, the timers are very inaccutate for micro second stuff
any way to get them more accurate?
hreintke
@hreintke
Oct 22 2015 16:13
@dmarkey :
Timer in sming now is software timer -> inaccurate at micrsecond .
There is an outstanding PR for HW_Timer #264
It's working for some, issues at others.
Please participate in testing -> If finished and OK it will be merged into develop for release 1.5.0
David
@dmarkey
Oct 22 2015 16:16
@hreintke Hmm, can you tell it to run a particular function like Timer class?
I need to run a function with microsecond precision.
hreintke
@hreintke
Oct 22 2015 16:20
@dmarkey : Don't know now. Check the PR and if it is not in, this is the time to discuss and get it (if accepted) included
robotiko
@robotiko
Oct 22 2015 16:21
@hreintke .. the #264 isn't just for PWM?
can be reused?
I know that somebody was trying the PR a couple of days ago and had just resets .. and @hrsavla seems to be out lately
hreintke
@hreintke
Oct 22 2015 16:22
ai.. Sorry, not reading too well. yes that is only PWM.
robotiko
@robotiko
Oct 22 2015 16:24
@dmarkey .. be aware of that .. and you probably recall that I warned you about the soft timer being not very precise :D
David
@dmarkey
Oct 22 2015 16:24
Yep..
So, I cant use Delay, and the timer isnt precise enough.. what now?
robotiko
@robotiko
Oct 22 2015 16:25
just hw timer
wire the sdk hw timer
David
@dmarkey
Oct 22 2015 16:25
That can execute a function?
robotiko
@robotiko
Oct 22 2015 16:25
the big BUT
is that there is just 1 hw timer
David
@dmarkey
Oct 22 2015 16:26
yeah thats fine
robotiko
@robotiko
Oct 22 2015 16:26
and if you use hw pwm .. then there is 0 timer
David
@dmarkey
Oct 22 2015 16:26
thats fine too
I just have one 43mhz radio
robotiko
@robotiko
Oct 22 2015 16:26
have a look at sdk
David
@dmarkey
Oct 22 2015 16:26
433
Dmitry Kireev
@kireevco
Oct 22 2015 16:26
@hreintke yes, I can , it's available for Mac for now
robotiko
@robotiko
Oct 22 2015 16:26
the timer will call a service rputine
routine
hreintke
@hreintke
Oct 22 2015 16:26
@kireevco Thx
robotiko
@robotiko
Oct 22 2015 16:26
and there you can do whatever you want
Dmitry Kireev
@kireevco
Oct 22 2015 16:26
Check my bunt ray
David
@dmarkey
Oct 22 2015 16:27
@robotiko can that be a class method?
robotiko
@robotiko
Oct 22 2015 16:27
@dmarkey didn't play with it yet ... but I'm interested.. so we can have a look
David
@dmarkey
Oct 22 2015 16:28
hmm.. espressif.com gone kaput?
hreintke
@hreintke
Oct 22 2015 16:28
@dmarkey : you have to be very careful with that.
There is special code in current timer to distinguish between class method and non class method due to timing
David
@dmarkey
Oct 22 2015 16:30
yeah espressif is down..
no docs for me
robotiko
@robotiko
Oct 22 2015 16:30
ups.. @dmarkey to me it is not down
is like free domain
David
@dmarkey
Oct 22 2015 16:31
jeez
what kind of company lets their domain expire
robotiko
@robotiko
Oct 22 2015 16:32
:D
Updated Date: 26-may-2015
Creation Date: 10-aug-2007
Expiration Date: 10-aug-2020
David
@dmarkey
Oct 22 2015 16:34
so not expired?
robotiko
@robotiko
Oct 22 2015 16:34
nopes
maybe just the hosting
David
@dmarkey
Oct 22 2015 16:34
maybe they host it on an esp8266
robotiko
@robotiko
Oct 22 2015 16:35
yes .. on a dual esp12e
:D
David
@dmarkey
Oct 22 2015 16:35
does anyone have the docs available
robotiko
@robotiko
Oct 22 2015 16:35
what docs?
David
@dmarkey
Oct 22 2015 16:35
SDK docs
robotiko
@robotiko
Oct 22 2015 16:35
sdk 1.3?
David
@dmarkey
Oct 22 2015 16:35
1.4
1.3 would do fine
robotiko
@robotiko
Oct 22 2015 16:37
I just sent you PM
hreintke
@hreintke
Oct 22 2015 16:37
Docs are included in the UDK's
David
@dmarkey
Oct 22 2015 16:37
not any more
robotiko
@robotiko
Oct 22 2015 16:37
@dmarkey got the pdf?
David
@dmarkey
Oct 22 2015 16:37
yes thanks
hreintke
@hreintke
Oct 22 2015 16:38
David
@dmarkey
Oct 22 2015 16:42
hw timer api seems simple
robotiko
@robotiko
Oct 22 2015 16:43
David
@dmarkey
Oct 22 2015 16:43
    hw_timer_init(FRC1_SOURCE,1);
hw_timer_set_func(hw_test_timer_cb);
hw_timer_arm(100); 
robotiko
@robotiko
Oct 22 2015 16:50
@dmarkey works?
David
@dmarkey
Oct 22 2015 16:50
havsnt trie
tried
thats just a copy and paste from socumentation
documentation
robotiko
@robotiko
Oct 22 2015 16:50
I recall in sdk 1.3.0 .. there are big "be aware" about the usage
to not delay it too much with heavy stuff
David
@dmarkey
Oct 22 2015 16:51
yeah
I'll only be doing digitalWrite
Might take class method pointer though
mightnt
Richard Antony Burton
@raburton
Oct 22 2015 16:56
@alon24 you can just run make spiffy in the sming directory right after making libsming, no need to change directory
hreintke
@hreintke
Oct 22 2015 16:56
@dmarkey : Then you might think on integration HW timer in timer class
David
@dmarkey
Oct 22 2015 16:56
is possible yes
Richard Antony Burton
@raburton
Oct 22 2015 16:59
i wonder if hardware timers will actually work from within sming, since hardware pwm doesn't (and that uses hardware timers)
David
@dmarkey
Oct 22 2015 19:03
Hmm
Ill try and find out
David
@dmarkey
Oct 22 2015 22:11
Seems to not compile correctly
David
@dmarkey
Oct 22 2015 22:38
Vincent Leung
@vincenthome
Oct 22 2015 22:54
hi I need help to run HttpServer_Bootstrap example.