Search found 394 matches

by devnull
Sat Nov 09, 2019 6:01 am
Forum: General Discussion and Questions
Topic: littlefs - advantages & disadvantages
Replies: 9
Views: 406

littlefs - advantages & disadvantages

search.php?keywords=littlefs&terms=all& ... mit=Search

The search did not bring up anything obvious, but what are the main advantages and disadvantages of littlefs (other than the name suggests it is little !)
by devnull
Fri Nov 08, 2019 11:18 am
Forum: General Discussion and Questions
Topic: waiting for an interrupt flag to be set
Replies: 11
Views: 556

Re: waiting for an interrupt flag to be set

Is there any difference / benefit to using a time.sleep in a tight loop rather than a pass ?

Code: Select all

while x = False:
   pass

while x = False:
   time.sleep_ms(10)
by devnull
Thu Nov 07, 2019 3:06 am
Forum: Pyboard D-series
Topic: BLE - Reading the connected device RSSI
Replies: 2
Views: 195

BLE - Reading the connected device RSSI

Hi;

Yes, lots of questions about BLE, sorry about that.

While I can connect to the device and read it's service values, there's no service address for the RSSI.

So how can I get a connected device's RSSI value ??
by devnull
Wed Nov 06, 2019 9:49 am
Forum: General Discussion and Questions
Topic: waiting for an interrupt flag to be set
Replies: 11
Views: 556

Re: waiting for an interrupt flag to be set

Jimmo, I can work around this by setting a error flag and if the flag is set and connection fails, then clear the flag and retry the connection. This prevents the connection failure but wastes time attempting the connection twice, and it only appears to happen on the first connection after the error...
by devnull
Wed Nov 06, 2019 9:19 am
Forum: General Discussion and Questions
Topic: waiting for an interrupt flag to be set
Replies: 11
Views: 556

Re: waiting for an interrupt flag to be set

I need for this to be bullet proof as it will be running un-manned. I am getting a lot of disconnect interrupts with handle 65535 and this then appears to kill the next connection. This loop is simply stress testing, and I get the 65535 handle VERY frequently ! h1 = j.Dev(b"\xcb\xd0\xc5\x0c'\xbd") i...
by devnull
Wed Nov 06, 2019 7:40 am
Forum: Pyboard D-series
Topic: BLE Broadcasts vs Scans
Replies: 5
Views: 303

Re: BLE Broadcasts vs Scans

Yes, using those options it finds the devices immediately
by devnull
Wed Nov 06, 2019 5:32 am
Forum: Pyboard D-series
Topic: BLE Broadcasts vs Scans
Replies: 5
Views: 303

Re: BLE Broadcasts vs Scans

Also, not sure if this is related to the gap-scan timing you mentioned, but very often devices which the mac is known and can be connected to do not appear in the scan results, whether or not they are already connected. Only if I scan several times for a minute at a time will these devices be eventu...
by devnull
Wed Nov 06, 2019 4:11 am
Forum: Pyboard D-series
Topic: BLE Broadcasts vs Scans
Replies: 5
Views: 303

Re: BLE Broadcasts vs Scans

Jimmo, thanks, that's very helpful.

I have already checked the scan manufacturer's data and it does not contain active data, only static data such as the mac address and a couple of other byte variables.

Code: Select all

b"\x02\x01\x06\x03\x02 \xaa\x0e\xff\x00\x1f\x00\x00B\x01d\xcb\xd0\xc5\x0c'\xbd"
by devnull
Wed Nov 06, 2019 3:26 am
Forum: Pyboard D-series
Topic: BLE Broadcasts vs Scans
Replies: 5
Views: 303

BLE Broadcasts vs Scans

Sorrie for all of the BLE questions, I have googled but are not able to find a direct answer. It appears that beacons broadcast and that it is not necessary to connect to the device, but just to listen for a specific device broadcast and read it's data. But how would you do this ? - I know that with...