Hi,
is it possible to read the wakeup bit from the serial port as mentioned here to discover the first byte of a command?
Thanks a lot...
Search found 44 matches
- Mon Mar 18, 2019 9:06 am
- Forum: General Discussion and Questions
- Topic: Serial - bit banging
- Replies: 15
- Views: 8805
- Wed Mar 13, 2019 10:07 am
- Forum: General Discussion and Questions
- Topic: Something like Threading/Queue in MicroPython?
- Replies: 8
- Views: 10860
Re: Something like Threading/Queue in MicroPython?
Is there another hardware with faster response? I need MicroPython and 2 hardware serial connections...pythoncoder wrote: ↑Wed Mar 13, 2019 8:33 am...
Even that isn't a panacea: ESPx chips aren't known for fast response to IRQ's.
...
- Wed Mar 13, 2019 8:00 am
- Forum: General Discussion and Questions
- Topic: Something like Threading/Queue in MicroPython?
- Replies: 8
- Views: 10860
Re: Something like Threading/Queue in MicroPython?
I want to read data from two serial connections simulatneously. The challenge is to get the data immediately, without delay - to get the correct "timestamp". Therefore I use threading and under Ubuntu it is working fine. Later I put the data in the queue to handle it... Now I want to port this to ES...
- Tue Mar 12, 2019 8:19 am
- Forum: General Discussion and Questions
- Topic: Something like Threading/Queue in MicroPython?
- Replies: 8
- Views: 10860
Something like Threading/Queue in MicroPython?
Hi guys,
I've a script at my desktop and I'll try to port it to MicroPython (esp. ESP32). Therefore I need libraries like "threading" and "Queue".
Is there something similar in MicroPython?
I've a script at my desktop and I'll try to port it to MicroPython (esp. ESP32). Therefore I need libraries like "threading" and "Queue".
Is there something similar in MicroPython?
- Wed Sep 28, 2016 4:05 pm
- Forum: ESP8266 boards
- Topic: Server for basic setup
- Replies: 11
- Views: 13290
Re: Server for basic setup
Thanks a lot, I'll try it at home.
Is your miniservet able to handle POST and GET vars?
Is your miniservet able to handle POST and GET vars?
- Wed Sep 28, 2016 3:40 pm
- Forum: ESP8266 boards
- Topic: Server for basic setup
- Replies: 11
- Views: 13290
Re: Server for basic setup
If you're new to socket code play with it on normal (heavyweight OSs) computers first. But understand TCP is a pipe. You cannot guarantee how much you'll get when you suck (once,briefly) on a pipe. Only that you will get all the data eventually, in order and uncorrupted. You're also trying to imple...
- Wed Sep 28, 2016 3:16 pm
- Forum: ESP8266 boards
- Topic: Server for basic setup
- Replies: 11
- Views: 13290
Re: Server for basic setup
I changed my code and I'm using now readline. cl, addr = s.accept() print("Client address:", addr) print("Client socket:", cl) print("Request:") print("READLINE:") length = 0 while True: req = cl.readline() length = length + len(req) if req == b"": break print(req) print("size of request: " + str(le...
- Wed Sep 28, 2016 2:22 pm
- Forum: ESP8266 boards
- Topic: Server for basic setup
- Replies: 11
- Views: 13290
Re: Server for basic setup
How can I increase the MTU size or how can I get the full request?
- Fri Sep 23, 2016 3:44 pm
- Forum: ESP8266 boards
- Topic: Server for basic setup
- Replies: 11
- Views: 13290
Re: Server for basic setup
I was playing arround a little bit - here my example code: addr = socket.getaddrinfo('0.0.0.0', 80)[0][-1] s = socket.socket() s.bind(addr) s.listen(1) log('listening on'+str( addr)) cl, addr = s.accept() print("Client address:", addr) print("Client socket:", cl) print("Request:") req = cl.recv(1024...
- Fri Sep 23, 2016 1:12 pm
- Forum: ESP8266 boards
- Topic: Server for basic setup
- Replies: 11
- Views: 13290
Server for basic setup
Hi, I've my first ESP8266 board and try to create an simple webserver for communication with the board. Is it possible to create a simple HTTP server for this board, to send and receive json? What I want to do is, upload a json, process it on the board and download json with sensor data... I've foun...