Search found 23 matches

by garudaone
Mon Sep 12, 2022 3:45 am
Forum: ESP8266 boards
Topic: Remote OTA using YAOTA8266
Replies: 0
Views: 178613

Remote OTA using YAOTA8266

Hi, I need to OTA my esp8266 the micropython bin remotely. My code is quite big so I need to flash it into the bin. I try this one and it's partly a solution. However, I need to update bin from the Internet so I need to make the esp8266 connect to server and download the bin file and update instead ...
by garudaone
Wed Aug 24, 2022 10:19 am
Forum: Other Boards
Topic: [A9G] How to create firmare and upload it to the board?
Replies: 4
Views: 28716

Re: [A9G] How to create firmare and upload it to the board?

I have used this board for quite sometimes. It's cool and very cheap. the A9 GPRS is 4.5$.
I use this repos:
https://github.com/pulkin/micropython

I spent a lot of time on this board. There're some issues with this board, however it fit my project's goal.
by garudaone
Mon Aug 22, 2022 7:15 am
Forum: ESP8266 boards
Topic: Error during esp8266 make
Replies: 2
Views: 25439

Re: Error during esp8266 make

I try to run mpy-cross manually. It seems to work fine. You need to compile mpy-cross inside the docker container (to build a binary that works in the container). From the root of the repository docker run --rm -v $HOME:$HOME -u $UID -w $PWD larsks/esp-open-sdk make -C mpy-cross clean docker run --...
by garudaone
Sun Aug 21, 2022 10:52 am
Forum: ESP8266 boards
Topic: Error during esp8266 make
Replies: 2
Views: 25439

Error during esp8266 make

Hi, When I run make of ports/esp8266, i got this error. I use Macbookpro I use docker run --rm -v $HOME:$HOME -u $UID -w $PWD larsks/esp-open-sdk make -j 16 I try to run mpy-cross manually. It seems to work fine. Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. CC ....
by garudaone
Thu Aug 11, 2022 7:02 am
Forum: General Discussion and Questions
Topic: \xFF is missing from UART.read()
Replies: 24
Views: 29905

Re: \xFF is missing from UART.read()

Option 1: Fix the firmware. Option 2: Avoid the bug. If you can control both sides, exchange the data coded, e.g. as Ascii-Hex, which contains neither 0x03 nor 0xff. Option 1 is the better choice. You can for instance leave the SDK as is is and just change uart.c: static void uart_rx_intr_handler(U...
by garudaone
Wed Aug 10, 2022 3:57 pm
Forum: General Discussion and Questions
Topic: \xFF is missing from UART.read()
Replies: 24
Views: 29905

Re: \xFF is missing from UART.read()

Option 1: Fix the firmware. Option 2: Avoid the bug. If you can control both sides, exchange the data coded, e.g. as Ascii-Hex, which contains neither 0x03 nor 0xff. Option 1 is the better choice. You can for instance leave the SDK as is is and just change uart.c: static void uart_rx_intr_handler(U...
by garudaone
Wed Aug 10, 2022 3:28 pm
Forum: General Discussion and Questions
Topic: \xFF is missing from UART.read()
Replies: 24
Views: 29905

Re: \xFF is missing from UART.read()

To explain that problem. This is the interrupt handler: static void uart_rx_intr_handler(UART_Callback_Param_t param) { // handles rx interrupts ringbuf_t *ringbuf = uart_ringbuf + param.port - 1; int* to_dupterm = uart_attached_to_dupterm + param.port - 1; for (uint32_t i=0; i<param.length; i++) {...
by garudaone
Wed Aug 10, 2022 12:11 pm
Forum: General Discussion and Questions
Topic: \xFF is missing from UART.read()
Replies: 24
Views: 29905

Re: \xFF is missing from UART.read()

In uart.c, line 110, the else statement, looks wrong. Try to delete that. If mp_interrupt_char() is set to -1, a 0xff will not be put into the ringbuffer. For verification, you could set the mp_interrupt_char() to a different value and see, if the other value then is skipped. Thanks you for looking...
by garudaone
Wed Aug 10, 2022 11:02 am
Forum: General Discussion and Questions
Topic: \xFF is missing from UART.read()
Replies: 24
Views: 29905

Re: \xFF is missing from UART.read()

I looked into the UART driver of the SIM board. That driver does not filter any characters.. So it's something or somewhere else. You could try to manually set a UART timeout longer than the default of 1 character time. No, it still not work. I try difference combination of this timeout and timeout...
by garudaone
Wed Aug 10, 2022 1:53 am
Forum: General Discussion and Questions
Topic: \xFF is missing from UART.read()
Replies: 24
Views: 29905

Re: \xFF is missing from UART.read()

You might wanna check a few milliseconds after you received the first part of your incoming message: time.sleep_ms(20) print(uart.any()) data = uart.read() print(f'_{data}_} {type(data)}' Uhhh, just saw the remark regarding that ancient version. Cancel everything after Good Morning. 8-) It still fi...