These are chat archives for SmingHub/Sming

29th
Dec 2015
hreintke
@hreintke
Dec 29 2015 07:53
@laurentppol :
I don't know the details of the library, did a quick check so could be wrong.
  • The library is using a local (own) version of I2C which does not implement that functionality.
Yegor
@Bravo13
Dec 29 2015 08:32
Latest Sming version is 2.0.0 but if I want to update it via choco its prints v1.4 is latest.
alonewolfx2
@alonewolfx2
Dec 29 2015 08:52
@laurentppol you can use wire. Pins in init function. (examples of liquid crystal) I am using it and working fine
marksev1
@marksev1
Dec 29 2015 09:02
so kireevco do i just import this sming stuff as a library in arduino ide
or how do i do it
hreintke
@hreintke
Dec 29 2015 10:11
@alonewolfx2 : I was wrong, you are right. Indeed, with correct location of Wire.pins compiles OK.
Sorry for the confusion.
alon24
@alon24
Dec 29 2015 11:05
@alonewolfx2 r u here?
laurentppol
@laurentppol
Dec 29 2015 11:35
@hreintke could You provide some lines "how to"?
hreintke
@hreintke
Dec 29 2015 12:50
@laurentppol : As @alonewolfx2 already mentioned. put the Wire.pins() not outside but in your init() function
marksev1
@marksev1
Dec 29 2015 13:24
should this sming be used as an arduino library or how?
is it neccessary those chocolatey stuff :)
alon24
@alon24
Dec 29 2015 13:50
@hreintke How are things progressing with RTOS?
(I did not have time to check it out
)
alonewolfx2
@alonewolfx2
Dec 29 2015 14:00
@marksev1 sming is standalone firmware for esp8266. So you can't import in arduino ide.
You need to follow instructions for setup and you can use it than.
laurentppol
@laurentppol
Dec 29 2015 15:07
@hreintke thx, now it works :) [without library code modification]
what is a bit crazy, even if onboard LED and SCL were on the SAME pin, LCD worked...
Yegor
@Bravo13
Dec 29 2015 15:12
Latest Sming version is 2.0.0 but if I want to update it via choco its prints v1.4 is latest. So, is it possible to upgrade to 2.0 via choco?
hreintke
@hreintke
Dec 29 2015 15:25
@alon24 :
Already most functionality available. Close to have framwork/application structure in place.
Looking for testers to verify correctness :smile:
alon24
@alon24
Dec 29 2015 15:33
currently low on time, but itching to try :)
is it better?
meaning r there differences that u see over current sming?
relaibility and such
speed? timers ?
robotiko
@robotiko
Dec 29 2015 15:56
@alon24 it is still ProofOfConcept
those conclusions would come from a comaprison from a real application..
however.. future proof and non single thread are very powerful details
for instance .. no reset due to high time consuming or infinite loops?
alon24
@alon24
Dec 29 2015 16:01
so can use delay?
robotiko
@robotiko
Dec 29 2015 16:01
I didnt play with it yet aprt from testing that it compiles example.. etc
yet
:D
alonewolfx2
@alonewolfx2
Dec 29 2015 16:21
@alon24 yep you can use
But I didn't look into new rtos delay definition. Normally rtos using vtask delay and that delay just freezing one thread.
alon24
@alon24
Dec 29 2015 16:28
k
hreintke
@hreintke
Dec 29 2015 19:29
@alon24 @alon24 :
If the delay() is still the same, there is a major difference in delay() and vTaskDelay().
delay() then still takes all CPU -> only tasks with higher priority can run.
vTaskDelay(xx) stops the task for xx time and allows all tasks to run.
Just using delay() probably will still cause issues/unexpected behavior.
But.. please help testing of current functionality first.
I know it might be not that exiting because most of it is "just sming" with possible few modifications but it has to be done before switching from NONOS.
hreintke
@hreintke
Dec 29 2015 19:35
After that, defining and using the new options will also be a task which needs consideration.
When thinking on thread/task safety of sming/libraries/.. there probably will be some challenges.
laurentppol
@laurentppol
Dec 29 2015 22:17
How to mimic following (AVR) interrupts/main program scheme:
  • I set up TIMER1 to fire every 10ms, in interrupt I count 1/100s of second, setting flags on 0.1/0.5/1s,
  • main program enters sleep() until interrupt (timer or serial),
  • when awaken from sleep, it examines flasg and takes appropriate action.
  • then enter sleep again
how to do it on ESP, without "processor killing" "wait-on-a-flag" loop?
laurentppol
@laurentppol
Dec 29 2015 22:37
Put all "main" work on a separate 100ms timer? In "main" there are only actions for 0.5/1s, and 0.1s delay (if happens) is not a problem.
hreintke
@hreintke
Dec 29 2015 22:57
@laurentppol :
Why do you do the actions in "main" ? You can do the activities needed in the timer & serial callback/delegate.
That is the design principle of Sming.
laurentppol
@laurentppol
Dec 29 2015 23:48
@hreintke this project is originating AVR, in "main" because I don't want code (long possibly executing) to be in interrupts.
I tried to keep int routines as small as possible