Jeff Epler
d37f8a1a5a
milestone: a selection of builds succeed
2021-07-06 10:57:44 -05:00
Scott Shawcroft
3177973843
Add BLE serial service
2021-06-25 15:00:10 -07:00
Scott Shawcroft
dc76306cfa
Enable a BLE workflow
...
nRF CircuitPython boards will now provide the file transfer
service defined here: https://github.com/adafruit/Adafruit_CircuitPython_BLE_File_Transfer
USB capable boards will only advertise if previously bonded to a
device or if the reset button is pressed during the fast blue
flashes on start up. When pressed, the board will restart again but
the blue period will not flash.
Boards without USB will always advertise.
When previously bonded, the advertisement is private so that no
other peers can connect. If advertising publicly, the tx power is
lowered to reduce the likelihood of bonding from a distance.
This PR also fixes issues with loading identities of bonded peers
so that our address can now be resolved and we can resolve others'
addresses when scanning.
2021-06-24 12:59:14 -07:00
Scott Shawcroft
ee7a701487
Switch to start_advertising arg
2021-05-19 12:21:48 -07:00
gabewillen
806b39fb22
Update Adapter.c
...
Added support for setting transmitter power
2021-05-19 11:55:01 -07:00
gabewillen
7dee378ade
Update Adapter.h
...
Added support for setting transmitter power
2021-05-19 11:55:01 -07:00
Scott Shawcroft
3fda0c0a1b
Fix board builds and use MP_ERROR_TEXT in py and extmod
2021-05-05 17:51:52 -07:00
Scott Shawcroft
76033d5115
Merge MicroPython v1.11 into CircuitPython
2021-04-26 15:47:41 -07:00
Scott Shawcroft
81e11ae063
Fix type
2021-04-16 11:30:10 -07:00
Scott Shawcroft
aa28d4f315
Allow setting max_packet_size for PacketBuffer
...
This is handy for remote characteristics because it allows for
the PacketBuffer binding code to have the correct max size. This
PR also adds checks so we don't write outside the outgoing buffer.
2021-04-14 17:09:48 -07:00
Scott Shawcroft
5ec195b5ef
Remove PacketBuffer.packet_size
...
Fixes #2853
2021-04-08 13:29:26 -07:00
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
Dan Halbert
ed49c02feb
add timeout; finish up for PR
2021-02-17 23:24:11 -05:00
Dan Halbert
a397af9bdf
Round BLE timing values; fix timeout check
2021-01-10 13:16:19 -05:00
Dan Halbert
a11ad25727
BLE fixes
2020-12-23 16:39:27 -05:00
Scott Shawcroft
9fcf96cb64
Replace _bleio.ConnectionError with the native version
...
Replace uses of _bleio.ConnectionError with regular ConnectionError
Fixes #3008
2020-10-07 17:11:32 -07:00
Jeff Epler
e5122b1acf
_bleio: fix markup typo
2020-09-13 11:56:34 -05:00
Dan Halbert
4e3cb55ce7
share more of _bleio dict; fix one doc error
2020-09-01 12:41:58 -04:00
Dan Halbert
f5a5fc4c84
Fix stub; mismatched triple quotes
2020-08-30 14:59:03 -04:00
Dan Halbert
6dbd369272
merge from upstream
2020-08-30 14:39:03 -04:00
Dan Halbert
b27d511251
address review; use constructor for HCI Adapter
2020-08-30 14:06:48 -04:00
Dan Halbert
770c204d5a
sphinx fixes
2020-08-21 17:03:45 -04:00
Scott Shawcroft
644d2ba7a2
Add more "extern" declarations for gcc10 compat
...
gcc has tightened the restrictions on forward declarations that lack
"extern". Fix them up.
2020-08-21 14:39:37 -05:00
Dan Halbert
8d785cbbe5
fix stubs; make translate
2020-08-21 11:37:15 -04:00
Dan Halbert
0e30dd8bcc
merge from upstream; working; includes debug_out code for debugging via Saleae for posterity
2020-08-20 20:29:57 -04:00
Dan Halbert
1c8e11b2cb
bug in char get_value; raise NotImpl; better arg validation
2020-08-14 23:38:58 -04:00
Yihui Xiong
52990a332d
fix
2020-08-14 17:48:15 +08:00
Yihui Xiong
e7da652711
able to change ble mac address
2020-08-13 16:54:29 +08:00
Dan Halbert
06f3b4048a
fix #3228 for nrf; still needs to be fixed for HCI; tested
2020-08-11 16:21:16 -04:00
Dan Halbert
0f4b969d62
discovery of Nordic UART service working
2020-08-08 00:29:37 -04:00
Taku Fukada
56c898da80
Modify some Python stubs
2020-08-07 01:01:28 +09:00
Dan Halbert
0a60aee3e4
wip: compiles
2020-08-02 11:36:38 -04:00
Taku Fukada
d356581651
Fix several type hints
2020-07-27 18:05:13 +09:00
Taku Fukada
54a342a7f5
Add and correct some type hints
2020-07-24 18:20:03 +09:00
Scott Shawcroft
049921fec8
Merge branch 'main' into memmonitor
2020-07-22 14:00:28 -07:00
Scott Shawcroft
eb24653d3f
Fix BluetoothError doc typo we copied
2020-07-21 18:30:29 -07:00
Dan Halbert
6494bbdc64
snapshot
2020-07-16 23:14:49 -04:00
Dan Halbert
b08b0264cc
back to working; check for extended advertising support
2020-07-15 09:46:13 -04:00
Dan Halbert
f6869c69c5
wip: advertising; not tested
2020-07-12 19:45:23 -04:00
Dan Halbert
f03045b97e
address working; improved pkt dump
2020-07-08 23:15:48 -04:00
Dan Halbert
a5ab2829eb
use zephyr include files; wip: compiles
2020-07-08 09:33:41 -04:00
dherrada
d0d949cd24
Made every init return None
2020-07-03 14:23:34 -04:00
dherrada
3df03a5650
Made most of the requested changes
2020-07-03 13:49:00 -04:00
dherrada
9b4ffc0571
Changed unions to ReadableBuffer and WriteableBuffer
2020-07-02 17:47:52 -04:00
dherrada
26f1fd0071
Added type hints to _bleio
2020-07-02 14:11:25 -04:00
Dan Halbert
11cb3e3b4b
hci skeleton done; not working yet
2020-06-30 23:19:40 -04:00
Dan Halbert
f879114c43
do HCI pin init in Python, not here
2020-06-26 19:27:05 -04:00
Dan Halbert
1bc2e979eb
wip; compiles; much commented out
2020-06-26 17:23:20 -04:00
Dan Halbert
759929c24a
hci early wip; refactor supervisor bluetooth.c for nrf: tested
2020-06-25 20:57:17 -04:00
Jeff Epler
32a29ffdff
shared-bindings: Change docstrings with '\x...' chars to raw strings
...
Closes : #3032
2020-06-14 13:05:08 -05:00