Search found 31 matches

by sebi
Sun Apr 05, 2020 10:51 am
Forum: Programs, Libraries and Tools
Topic: socket state retrieval
Replies: 2
Views: 258

Re: socket state retrieval

I am connected to the internet via GPRS as I am running MicroPython on an A9G board . Depending on the signal, the connection can be lost and I wanted to check the state of a socket in case of a disconnection. But I found other ways to do this that do not involve parsing the output of socket. Thank ...
by sebi
Sat Mar 28, 2020 1:12 am
Forum: Programs, Libraries and Tools
Topic: socket state retrieval
Replies: 2
Views: 258

socket state retrieval

Code: Select all

>>> import socket
>>> s = socket.socket()
>>> s
<socket state=0 timeout=-1 incoming=0 off=0>
>>>
How can I retrieve state from s to test its value?
by sebi
Mon Oct 21, 2019 5:52 pm
Forum: Other Boards
Topic: Questions about the nRF port
Replies: 5
Views: 976

Re: Questions about the nRF port

Hi Glenn, There might be use cases where FatFS would make sense, like in a USB mass storage device scenario. I would like to build a data logger. Are there some limitations with the default microbitFS? Another alternative might be to take a look at the LittleFS work that is ongoing, that might be a ...
by sebi
Wed Oct 09, 2019 10:06 pm
Forum: Other Boards
Topic: Questions about the nRF port
Replies: 5
Views: 976

Re: Questions about the nRF port

As of today (2019-10-10), it is now possible to activate MICROPY_PY_SYS_STDFILES in mpconfigport.h for the nRF port: see this issue on GitHub and the corresponding commit by @dpgeorge to fix it. Additionally, MICROPY_PY_MATH_SPECIAL_FUNCTIONS can also be enabled following the recipe presented in the...
by sebi
Sun Oct 06, 2019 6:33 pm
Forum: Other Boards
Topic: Questions about the nRF port
Replies: 5
Views: 976

Re: Questions about the nRF port

Dear c45713, I am talking to Glenn Rub right? I was thinking of activating the FAT file system on the main flash memory of a nRF52382 board (it is a fitness tracker wristband and there is no possibility to connect an external SD card to it). As I wrote in this issue on GitHub activating the FAT FS r...
by sebi
Fri Sep 27, 2019 4:41 pm
Forum: Other Boards
Topic: Questions about the nRF port
Replies: 5
Views: 976

Questions about the nRF port

Dear community, I encountered some issues with the nRF port on a nRF52382 board and would like to submit them to you: - I was unable to turn on some of the features in mpconfigport.h , such as MICROPY_PY_SYS_STDFILES , MICROPY_PY_MATH_SPECIAL_FUNCTIONS , MICROPY_PY_IO_FILEIO and MICROPY_PY_MACHINE_S...
by sebi
Sat Sep 21, 2019 8:25 pm
Forum: Other Boards
Topic: How to copy files onto a nRF52?
Replies: 4
Views: 658

Re: How to copy files onto a nRF52?

Here are the errors obtained after invoking rshell (and pyboard.py): - with MICROPY_FATFS enabled: (MPY) C:\MicroPython\CODE\>rshell -p COM1 Using buffer-size of 32 Connecting to COM1 (buffer-size 32)... Trying to connect to REPL connected Testing if ubinascii.unhexlify exists ... Traceback (most re...
by sebi
Sat Sep 21, 2019 6:32 pm
Forum: Other Boards
Topic: How to copy files onto a nRF52?
Replies: 4
Views: 658

Re: How to copy files onto a nRF52?

I cleaned up the board definition and attest it gets pretty standard when compared to others': dsd6.zip Unfortunately I don't have any other nRF board to test if I encounter the same issues copying files using pyboard.py or rshell. Currently the only solution I have found to copy files onto my board...
by sebi
Fri Sep 20, 2019 6:46 am
Forum: Other Boards
Topic: How to copy files onto a nRF52?
Replies: 4
Views: 658

Re: How to copy files onto a nRF52?

Which specific board and nrf52? Thanks Jim for trying to solve my issue. The board is indeed not standard: it is a MPOW/Desay DS-D6 fitness tracker with a nRF52832 ( https://forum.micropython.org/viewtopic.php?f=12&t=6498#p36981 ). Enclosed are the board definition files: mpconfigboard.zip It is th...
by sebi
Tue Sep 17, 2019 5:03 am
Forum: Other Boards
Topic: How to copy files onto a nRF52?
Replies: 4
Views: 658

How to copy files onto a nRF52?

Dear community, I am having difficulties copying files onto a nRF52 (using standard tools such as pyboard.py, rshell, ...) I have never experience such issues with other ports (esp8266, esp32, ...). Does a special feature needs to be set in the build to successfully copy files? Error illustration: C...