These are chat archives for esp8266/Arduino

12th
Mar 2017
Ivan Grokhotkov
@igrr
Mar 12 2017 05:09

@larsenglund the thing i'm using for my rc plane is:

wifi_set_phy_mode(PHY_MODE_11B);
wifi_set_user_fixed_rate(FIXED_RATE_MASK_ALL, 0);

This sets data rate to 1Mbps. Has to be done on both sides.

Michael Miller
@Makuna
Mar 12 2017 05:40
@igrr ivam
Lars Englund
@larsenglund
Mar 12 2017 05:53
Thanks!
Clemens Kirchgatterer
@everslick
Mar 12 2017 09:58
@igrr when you say 'Has to be done on both sides.' it means on the ESP8266 and the accesspoint, given the accesspoint allows fixing the datarate? or do you use it only on 2 EPSs talking to each other?
probonopd
@probonopd
Mar 12 2017 10:18
hi all, is it possible to feed out serial from SD card, and, in parallel, serve HTTP?
@me-no-dev would your async http help there?
Me No Dev
@me-no-dev
Mar 12 2017 10:19
@probonopd yes and yes
an async UART would help too
probonopd
@probonopd
Mar 12 2017 10:20
i am trying to stream out a g-code file on sd card to my 3d printer via serial
Me No Dev
@me-no-dev
Mar 12 2017 10:20
I know :D
probonopd
@probonopd
Mar 12 2017 10:20
this is working beautifully
now, the problem is:
the software wants to check periodically over http how the printer is doing
e.g., temperature and such
Me No Dev
@me-no-dev
Mar 12 2017 10:21
you have two ways to go with async
probonopd
@probonopd
Mar 12 2017 10:21
the serial stuff is timing critical
should always have priority
Me No Dev
@me-no-dev
Mar 12 2017 10:21
eventSource or WebSocket for faster events
else regular http will work too
probonopd
@probonopd
Mar 12 2017 10:21
ideally the http would only be served when the serial is waiting
Me No Dev
@me-no-dev
Mar 12 2017 10:21
but requires more processing obviously
probonopd
@probonopd
Mar 12 2017 10:21
speed of http is not critical
what would you do if the goal is "priority for the serial"?
Me No Dev
@me-no-dev
Mar 12 2017 10:22
ideally you will run the UART TX from interrupt that will push data to the printer even while async is using the CPU
probonopd
@probonopd
Mar 12 2017 10:23
uh, i thought interrupt code must be short. the serial stuff can be "long"
Me No Dev
@me-no-dev
Mar 12 2017 10:23
you can, but it will be way more smooth the other way around
since network is not really predictable, you might end up locking the CPU and slow down UART
probonopd
@probonopd
Mar 12 2017 10:24
can you point me to some example code?
btw @me-no-dev i think that using ESPs for feeding 3D printers is quite a killer app
Me No Dev
@me-no-dev
Mar 12 2017 10:27
yeah, I'm looking for a good cheap kit to buy. Wanna see how much could I atually do with ESP32
probonopd
@probonopd
Mar 12 2017 10:28
ESP32 is not interesting for me, at that price point i'll go with a tiny linux system
Me No Dev
@me-no-dev
Mar 12 2017 10:28
maybe attach the ATMEGA differently and only move axes and control outputs through it
yeah... I want to do the actuall printing on the ESP32 if that makes sense
not use it as SD->UART
probonopd
@probonopd
Mar 12 2017 10:29
my approach is to connect to any existing 3d printer. with ESP32 you could make the printer with it
i see
Me No Dev
@me-no-dev
Mar 12 2017 10:30
your idea is great
coupled with websocket and nice js gui, you could do anything
you do need async for that
and I can probably help with some async-like serial
so while the serial is transitting and waiting for response, the network is running
probonopd
@probonopd
Mar 12 2017 10:31
do you know a bit about how 3d printing works?
Me No Dev
@me-no-dev
Mar 12 2017 10:31
I own a 3D printer
though mine is 32bit
probonopd
@probonopd
Mar 12 2017 10:31
wow @me-no-dev that is exactly what we need then :-)
know Cura?
Me No Dev
@me-no-dev
Mar 12 2017 10:31
I do byt use S3D
probonopd
@probonopd
Mar 12 2017 10:31
they have this wireless printing for the Ultimaker 3
press print, done
i have this running with arbitrary printers + an esp
Me No Dev
@me-no-dev
Mar 12 2017 10:32
I have FF Dreamer which is WiFi and USB (not serial) and yes I've done quite a bit of playing with it
probonopd
@probonopd
Mar 12 2017 10:32
will look into slicr next
s3d, is it worth it?
Me No Dev
@me-no-dev
Mar 12 2017 10:32
oh yes
evry penny
probonopd
@probonopd
Mar 12 2017 10:33
can it do wifi printing directly?
Me No Dev
@me-no-dev
Mar 12 2017 10:33
not sure
I have nothing but issues with my WiFi module
so I have been using usb
and this WiFi is SPI, so not that easy to hack
Mehrdad K
@mkeyno
Mar 12 2017 11:48
hi guys , somethings strange , I easily can upload sketch data files , but can't upload the sketch , has somebody experienced such phenomena ? does my module broke ?
Me No Dev
@me-no-dev
Mar 12 2017 12:01
your sketch too big?
Akash Ashok
@thehellmaker
Mar 12 2017 12:15
Hi Guys,,,
I have been facing some problem with the esp8266 chip
with random restarts
after a while
it says ,"resetReason":"External System","resetInfo":"Fatal exception:0 flag:6 (EXT_SYS_RST) epc1:0x00000000 epc2:0x00000000 epc3:0x00000000 excvaddr:0x00000000 depc:0x00000000"
not quite able to figure out where the issue is
i am not providing any external reset
and my reset pin is set to high
do u guys know of any other reason why this could happen ?
Akash Ashok
@thehellmaker
Mar 12 2017 12:28
another reason i am seeing is "resetReason":"Hardware Watchdog","resetInfo":"Fatal exception:4 flag:1 (WDT) epc1:0x401031e8 epc2:0x00000000 epc3:0x00000000 excvaddr:0x00000000 depc:0x00000000"
Mehrdad K
@mkeyno
Mar 12 2017 14:16
no , it is just empty sketch with only serial print