Search found 32 matches

by newb
Tue Apr 07, 2020 4:11 pm
Forum: General Discussion and Questions
Topic: Check for valid bytes
Replies: 8
Views: 325

Re: Check for valid bytes

May be I've taken wrong approach? Because when I plug the esp8266 I don't know what byte will be first caught by the UART, I'm reading one byte from UART until that byte is the data frame start (0xff), then I read the immediate next 3 other bytes. That's why I can't access all bytes as the same time...
by newb
Tue Apr 07, 2020 11:11 am
Forum: General Discussion and Questions
Topic: Check for valid bytes
Replies: 8
Views: 325

Re: Check for valid bytes

Thank you, guys!
I'm now getting somewhere by dividing individual bytes with hex() and parsing the dataframe :D
by newb
Tue Apr 07, 2020 9:36 am
Forum: General Discussion and Questions
Topic: Check for valid bytes
Replies: 8
Views: 325

Re: Check for valid bytes

I thought every byte should start with \x. Do you mean that e.g. this bytearray - b'\xff\x08kr' has valid 4 bytes in it? If that's the case, how do I separate each individual byte for further processing?
by newb
Tue Apr 07, 2020 8:53 am
Forum: General Discussion and Questions
Topic: Check for valid bytes
Replies: 8
Views: 325

Check for valid bytes

Hi, I've got a general question. I'm reading a serial sensor which is suppose to produce a data frame of 4 bytes(always starting with 0xff and the last 4th byte being the checksum). I've got problems with detecting a valid data frame because some of the bytes are just garbage. My question is how do ...
by newb
Sun Jun 16, 2019 7:20 pm
Forum: ESP32 boards
Topic: esp32 with built-in camera and sd card
Replies: 4
Views: 1127

Re: esp32 with built-in camera and sd card

All works now. I forgot to base64 encode the attached image :)
by newb
Wed Jun 05, 2019 2:21 pm
Forum: ESP32 boards
Topic: esp32 with built-in camera and sd card
Replies: 4
Views: 1127

Re: esp32 with built-in camera and sd card

I've got this strange picture, when using the driver. Does anyone know what could cause this? My module seems to be the same as the one the driver author was using (judging by the picture in the repo). I'm emailing the picture as a attachment, using this uMail https://github.com/shawwwn/uMail cam.jp...
by newb
Sun Jun 02, 2019 2:57 pm
Forum: ESP32 boards
Topic: esp32 with built-in camera and sd card
Replies: 4
Views: 1127

Re: esp32 with built-in camera and sd card

It seems there is one from a couple of weeks :) Just found it and I'm about to test it.

https://github.com/tsaarni/esp32-micropython-webcam
by newb
Sat May 18, 2019 1:02 pm
Forum: Drivers for External Components
Topic: vl53l0x max distance
Replies: 1
Views: 646

vl53l0x max distance

Hi, I'm using @deshipu driver https://bitbucket.org/thesheep/micropython-vl53l0x/src/default/ for this time of flight sensor. All working fine, except it measures always in "normal mode" where the max distance measured is 1.2m-1.3m. The datasheet https://www.st.com/resource/en/datasheet/vl53l0x.pdf ...
by newb
Tue Feb 19, 2019 7:24 am
Forum: ESP8266 boards
Topic: Designing resilient IOT applications
Replies: 8
Views: 1481

Re: Designing resilient IOT applications

Hi Peter and Kevin, great stuff and documentation as usual! Have you tried to make the server run on esp8266 as well?
by newb
Fri Feb 01, 2019 7:04 pm
Forum: Hardware Projects
Topic: TelegaGraph
Replies: 8
Views: 4487

Re: TelegaGraph

Hi, I'm trying ti get this thermal printer working but I fail to get the right codepage conversion. I think the key is converting the UTF-8 bytearray into a codepage the printer recognises. Here is a self-test printout showing the active codepage iso-8852-5 along with the charset table. codepage.jpg...