These are chat archives for SmingHub/Sming

1st
Feb 2016
sle118
@sle118
Feb 01 2016 08:57
@hreintke hello! I am rebuilding a dev box, this time on a ubuntu VM for portability. I decided to give RTOS a try for my picture deciding/drawing library, but i definitely need GDB here and debugging in eclipse. Is it possible in RTOS?
ystrem
@ystrem
Feb 01 2016 08:59
@sle118 nice ! Can you share your VM when you finish with it ?
It's virtualbox ?
sle118
@sle118
Feb 01 2016 09:00
Yes virtualbox
But quite big as i have created 100gb+ disk
robotiko
@robotiko
Feb 01 2016 09:00
@sle118 no gdb yet in rtos
sle118
@sle118
Feb 01 2016 09:00
@robotiko thanks
So what's the best way to get gdb in eclipse?
robotiko
@robotiko
Feb 01 2016 09:01
based ont eh gdbstub infor and the port done by slaff .. should not be very complicated to add
sle118
@sle118
Feb 01 2016 09:01
Yes
robotiko
@robotiko
Feb 01 2016 09:01
but so far .. it seems that it sonly avilable in nonos and just work in linux
with slaff example
sle118
@sle118
Feb 01 2016 09:01
I created atmp nonos work space
But i am not sure how to configure eclipse for debug commands line and all
Got to sleep... I'm on Pacific time this week and it's getting late
robotiko
@robotiko
Feb 01 2016 09:23
@sle118 >But i am not sure how to configure eclipse for debug commands line and all
there is a really nice tutorial in the PR
basiclaly, eclipse allwo to add breakpoints
*basically
sle118
@sle118
Feb 01 2016 14:17
@robotiko really short night of sleep for me.... Anyhow... I will read the pr again, but this is a progressing discussion with a moving target so I'll need to be more focused when reading
robotiko
@robotiko
Feb 01 2016 14:33
@sle118 digest for you .. once you wake up :D
from @slaff
sle118
@sle118
Feb 01 2016 14:56
@robotiko I will have a look. When learning a new platform, it's always difficult to skim through the available info as there is a lot and some is outdated. Thanks for pointing this out
I had seen it but didn't know if it was the place to start
robotiko
@robotiko
Feb 01 2016 16:43
@sle118 just have a look at the blog entry .. it has astep by step guide to config and make it work
ystrem
@ystrem
Feb 01 2016 16:53
@robotiko worked for you ?
robotiko
@robotiko
Feb 01 2016 17:07
@ystrem NO
It doesnt compile under windows
ystrem
@ystrem
Feb 01 2016 17:45
I want to try it in VB
robotiko
@robotiko
Feb 01 2016 17:47
VB?
ystrem
@ystrem
Feb 01 2016 17:47
virtualbox
robotiko
@robotiko
Feb 01 2016 17:49
ooook .. i got scared (VisualBasic?!?! OMG)
:D
ystrem
@ystrem
Feb 01 2016 17:49
:D
I use visual basic in work so :-1:
Alexander Sokolov
@avsokolov
Feb 01 2016 18:00

Hi! I implemented some functional for classes Http* (HttpConnection, HttpServer, HttpResponse). New features is:

  • Serve static files (and templates) from SDCard or custom stream (inheritor of IDataSourceStream);
  • Caching files via ETag/Last-Modified headers. 302 response code for cached files also supported. For ETag hash generation used file date and size. For spiffs files - only size;
  • Added field remouteIP to HttpResponse class (gets from TCPConnection).

Now I going to implement correct body parser by Content-Type header. Current parser works correct only for "application/x-www-form-urlencoded". I going do add "text/plain" and "multipart/form-data". Also, I going to add support for body more then 4kb and files uploading...

Say me please, how I can to push my changes to master branch?

robotiko
@robotiko
Feb 01 2016 18:03
@avsokolov you have to make a Pull Request to develop branch
Alexander Sokolov
@avsokolov
Feb 01 2016 18:05
Ok, thanks. I'll do it after complete body parser and file upload implementation.
robotiko
@robotiko
Feb 01 2016 18:11
@sle118 how is the jpg lib going?
anywhere to test it ?
alonewolfx2
@alonewolfx2
Feb 01 2016 18:53
@avsokolov very good. Can I test it?
ystrem
@ystrem
Feb 01 2016 19:02
@avsokolov cool great job!
hreintke
@hreintke
Feb 01 2016 19:11
@avsokolov :
Great, functionality.
There is a filesystemstream which will (possible with some adaptions) give the option to also serve filesystem files.
Don't hesitate to submit a PR also when not all functionality is completed (or provide a link to your clone) so we can help/discuss with implementation.
As @robotiko mentioned, make sure you base your updates on the develop branch. All new functionality/patches will get merged there.
Harry Böttcher
@harry-boe
Feb 01 2016 19:58
@dobrishinov I did. Maybe with the same board. Give it some time to calibrate. O does not work when flashed, but if you reboot after some seconds you get reasonable results.
alonewolfx2
@alonewolfx2
Feb 01 2016 19:59
@harry-boe seems bmp draw working on ili9341 too
but colors wrong
ups bad connection. my mistake. its working fine on ili9341
thanks for your good work
Harry Böttcher
@harry-boe
Feb 01 2016 20:01
nice to know. Next step is to creae a general purpose library. What we need to take care on is file size vs. RAM. it must be streamed somehow ..
alonewolfx2
@alonewolfx2
Feb 01 2016 20:03
i think reading on sdcard can be good for flash lifespan
for ram, we need to debug it
Harry Böttcher
@harry-boe
Feb 01 2016 20:05
right now its reading from spiffs line by line. No problem at all. But if we are going toread from a spi or http stream we need to be more creative. Same for jpg, which is not a linear file format
@alonewolfx2 any thoughts on the security subject. I opsted an issue on some plans we have ?
alonewolfx2
@alonewolfx2
Feb 01 2016 20:09
i saw your open issue post. security ic is good idea but i didnt find cheap atmel module
This message was deleted
alonewolfx2
@alonewolfx2
Feb 01 2016 20:16
20160201_221156.jpg
Harry Böttcher
@harry-boe
Feb 01 2016 20:18
you can by eval kits for about 19$ on the vendors web site http://www.atmel.com/tools/AT88CK590.aspx , The eval kit includs a number of chips on a usb/breakout stick. more pricy option is the Sparcfun cryptoshield https://www.sparkfun.com/products/13183 has all of the chips on one board + tpm module. A single chip from a electronic distributor like http://eu.mouser.com/ProductDetail/Atmel/ATSHA204A-SSHCZ-T/?qs=sGAEpiMZZMvWeWJnYoK0LvvSQFJgfuS6aeIqGxA5EUk%3d is arround 1 euro
alonewolfx2
@alonewolfx2
Feb 01 2016 20:55
@harry-boe what is supported bmp format ?
24bit-4bit?
robotiko
@robotiko
Feb 01 2016 22:15
@harry-boe have a look at this
quite interesting summary
Harry Böttcher
@harry-boe
Feb 01 2016 23:17
@alonewolfx2 only 24bit supported (for now)
@robotiko THX for the link will check it out
@alonewolfx2 i got the ST7735 now working with HW SPI - kind of a mess - from sing-core - will do a PR soon
Harry Böttcher
@harry-boe
Feb 01 2016 23:22
@alonewolfx2 if you like to add 4bit support you need to change the color space conversion somwhere arround those lines of code // Convert pixel from BMP to TFT format, push to display
b = sdbuffer[buffidx++];
g = sdbuffer[buffidx++];
r = sdbuffer[buffidx++];
tft.pushColor(tft.Color565(r,g,b));