Glenn Ruben Bakke
|
8966c68b92
|
nrf5/bluetooth: Adding implementation to the discover service function. Adding handler for gatt client primary service discovery response events, and passing this to the ubluepy upon reception.
|
2017-03-28 23:37:19 +02:00 |
|
Glenn Ruben Bakke
|
61b825d75e
|
nrf5/bluetooth: Adding function parameters and return type to service and characteristic discovery template functions.
|
2017-03-28 21:20:20 +02:00 |
|
Glenn Ruben Bakke
|
06af64a78a
|
nrf5/bluetooth: Adding template functions for service discovery in bluetooth driver.
|
2017-03-26 22:59:30 +02:00 |
|
Glenn Ruben Bakke
|
0914b34193
|
nrf5/bluetooth: Adding function to register gattc event handler (central).
|
2017-03-26 22:57:07 +02:00 |
|
Glenn Ruben Bakke
|
025f07dbab
|
nrf5/bluetooth: Adding intermediate gattc callback function type in bluetooth driver.
|
2017-03-26 22:51:10 +02:00 |
|
Glenn Ruben Bakke
|
49cce723a9
|
nrf5/bluetooth: Turning off debug logging in bluetooth driver, which does not work well with bluetooth REPL mode.
|
2017-03-26 21:06:17 +02:00 |
|
Glenn Ruben Bakke
|
2f2e67e9bd
|
nrf5/bluetooth: Fixing some smaller tab errors in the bluetooth driver.
|
2017-03-26 21:05:06 +02:00 |
|
Glenn Ruben Bakke
|
cd2149a47f
|
nrf5/bluetooth: Updating bluetooth le driver to handle GAP conn param update request. Also updating minor syntax in previous switch case.
|
2017-03-26 21:02:25 +02:00 |
|
Glenn Ruben Bakke
|
fb983c7692
|
nrf5/boards: Inrease heap size in the nrf52832 w/s132 bluetooth stack linker script.
|
2017-03-26 20:46:23 +02:00 |
|
Glenn Ruben Bakke
|
c230bc021a
|
nrf5/modules/ubluepy: Update connect method to parse dev_addr parameter and pass it to the bluetooth driver, going through a allocated heap buffer. Adding call to the bluetooth driver to issue a connect. Hardcoding address type for now.
|
2017-03-26 20:45:21 +02:00 |
|
Glenn Ruben Bakke
|
bcf4631e0a
|
nrf5/bluetooth: Updating connect function in the bluetooth driver to do a successful connect to a peripheral device.
|
2017-03-26 20:43:43 +02:00 |
|
Glenn Ruben Bakke
|
4d147beedb
|
nrf5/modules/ubluepy: Adding template function for central connect() in peripheral object.
|
2017-03-25 17:51:52 +01:00 |
|
Glenn Ruben Bakke
|
098e64b122
|
nrf5/modules/ubluepy: Adding locals dict to Scan Entry introducing function to retreive Scan Data. Not working as expected together with .attr. It looks like locals dict functions are treated to be attributes and cannot be resolved.
|
2017-03-25 17:39:44 +01:00 |
|
Glenn Ruben Bakke
|
f38b0ba037
|
nrf5/bluetooth: Adding function for connecting to a device (in central role). Not yet tested.
|
2017-03-23 21:03:40 +01:00 |
|
Glenn Ruben Bakke
|
8a884de7b9
|
nrf5/modules/ubluepy: Return BLE peer address as string instead of bytearray. Updated struct in modubluepy.h to use a mp_obj_t to hold a string instead of a fixed 6-byte array. Stripped down ScanEntry print out to only contain class name, peer address available through addr attribute.
|
2017-03-22 23:18:41 +01:00 |
|
Glenn Ruben Bakke
|
327754a953
|
nrf5/bluetooth: capture address type in addition to advertisment type in bluetooth advertisment reports.
|
2017-03-16 22:46:26 +01:00 |
|
Glenn Ruben Bakke
|
3468972299
|
nrf5/modules/ubluepy: Correcting rssi member in scan_entry object to be int instead of uint.
|
2017-03-14 23:18:51 +01:00 |
|
Glenn Ruben Bakke
|
442e46f4be
|
nrf5/modules/ubluepy: Adding attribute to ScanEntry object for getting address (returning bytearray), type (returning int) and rssi (returning int).
|
2017-03-14 23:14:55 +01:00 |
|
Glenn Ruben Bakke
|
609a174f8d
|
nrf5/modules/ubluepy: Copy address type and rssi to the ScanEntry object upon reception of an advertisment report callback.
|
2017-03-14 23:13:13 +01:00 |
|
Glenn Ruben Bakke
|
cbfba08ae7
|
nrf5/bluetooth: Adding address type to bluetooth stack driver advertisment structure, and fill the member when advertisment report is received.
|
2017-03-14 23:12:24 +01:00 |
|
Glenn Ruben Bakke
|
445b45ee13
|
nrf5/modules/ubluepy: Swapping address bytes when copying bluetooth address over to ScanEntry object during advertisment scan report event.
|
2017-03-14 22:14:05 +01:00 |
|
Glenn Ruben Bakke
|
08883c619a
|
nrf5/modules/ubluepy: Extending print of ScanEntry object to also include the bluetooth le address.
|
2017-03-14 22:12:33 +01:00 |
|
Glenn Ruben Bakke
|
a444390115
|
nrf5/modules/ubluepy: Create new adv report list for each individual scan. Create a new ScanEntry object instance on each advertisment event recieved and append this to the current adv_report list.
|
2017-03-14 21:28:42 +01:00 |
|
Glenn Ruben Bakke
|
9a20d9ca91
|
nrf5/modules/ubluepy: Adding print function to scan_entry object.
|
2017-03-14 21:27:29 +01:00 |
|
Glenn Ruben Bakke
|
4a97cfe3ea
|
nrf5/modules/ubluepy: Populating ubluepy_scan_entry_obj_t with members that are interesting to keep for the ScanEntry object.
|
2017-03-14 08:20:28 +01:00 |
|
Glenn Ruben Bakke
|
c066344a14
|
nrf5/bluetooth: Moving callback definitions to bluetooth driver header. Refactoring bluetooth driver, setting new names on callback functions and updating api to use new callback function name prefix.
|
2017-03-14 08:13:32 +01:00 |
|
Glenn Ruben Bakke
|
e028eda0bc
|
nrf5/modules/ubluepy: Extracting advertisment reports and adding some data to list before returning it in scan() method.
|
2017-03-14 08:05:54 +01:00 |
|
Glenn Ruben Bakke
|
9b0d893b4d
|
nrf5/bluetooth: Adding handling of advertisment reports in bluetooth driver and issue callback to ubluepy. A bit ugly implmentation and has to be re-worked.
|
2017-03-14 08:04:24 +01:00 |
|
Glenn Ruben Bakke
|
6fc806b313
|
nrf5/bluetooth: adding adv report data structure to pass to ubluepy upon adv report event. Adding new api for setting callack where to handle advertisment events in ubluepy.
|
2017-03-14 07:59:29 +01:00 |
|
Glenn Ruben Bakke
|
ada69c40c6
|
nrf5/modules/ubluepy: Adding adv_reports member to scanner object, to hold the result of scan.
|
2017-03-14 07:57:20 +01:00 |
|
Glenn Ruben Bakke
|
5fc6a9d9a2
|
nrf5/modules/machine: Cleaning up uart a bit more. Removing unused any() method, and aligning print and local dict names to use machine_uart prefix.
|
2017-03-13 17:56:39 +01:00 |
|
Glenn Ruben Bakke
|
51c739f64a
|
nrf5/bluetooth: Turn off bluetooth printf logging.
|
2017-03-12 23:32:33 +01:00 |
|
Glenn Ruben Bakke
|
c8127ef337
|
nrf5: Add back ublupy scanner and scan entry source files in Makefile.
|
2017-03-12 23:24:37 +01:00 |
|
Glenn Ruben Bakke
|
6ea3f3c69b
|
nrf5/bluetooth: Enable implementation in scan start function in the bluetooth stack driver.
|
2017-03-12 23:23:37 +01:00 |
|
Glenn Ruben Bakke
|
a01a3734f8
|
nrf5/boards: Adjust heap end after increased .data usage in nrf52832 s132 linker script.
|
2017-03-12 23:20:53 +01:00 |
|
Glenn Ruben Bakke
|
5580ac8200
|
nrf5/bluetooth: Adding more implementation in scan start function. However, commented out for time beeing, as there is some memory issues when activating central.
|
2017-03-12 22:46:40 +01:00 |
|
Glenn Ruben Bakke
|
9aa3df7955
|
nrf5: Removing ubluepy scanner and scan entry from Makefile source list until nrf52 central issues has been resolved.
|
2017-03-12 22:45:02 +01:00 |
|
Glenn Ruben Bakke
|
caf242a5ae
|
nrf5/bluetooth: Correcting indention.
|
2017-03-12 20:20:15 +01:00 |
|
Glenn Ruben Bakke
|
739bf3a740
|
nrf5/bluetooth: Adding some implementation to scan_start function.
|
2017-03-12 20:18:37 +01:00 |
|
Glenn Ruben Bakke
|
89095f861f
|
nrf5/modules/ubluepy: Adding scan method to the Scanner object. Adding locals dict table.
|
2017-03-12 19:52:12 +01:00 |
|
Glenn Ruben Bakke
|
471d6a05da
|
nrf5/bluetooth: Adding empty scan_start and scan_stop function to the bluetooth driver.
|
2017-03-12 19:50:38 +01:00 |
|
Glenn Ruben Bakke
|
ee5ecac7cc
|
nrf5/modules/ubluepy: Adding constructor function to scanner object.
|
2017-03-12 14:40:56 +01:00 |
|
Glenn Ruben Bakke
|
7ea966d844
|
nrf5/modules/ubluepy: Adding print function to Scanner object.
|
2017-03-12 14:28:11 +01:00 |
|
Glenn Ruben Bakke
|
851705fc3a
|
nrf5/modules/ubluepy: Disable all functions central related functions in the Peripheral object for now, even if MICROPY_PY_UBLUEPY_CENTRAL is enabled.
|
2017-03-12 14:27:09 +01:00 |
|
Glenn Ruben Bakke
|
242b40e917
|
nrf5/modules/ubluepy: Activate Scanner and ScanEntry objects if MICROPY_PY_UBLUPY_CENTRAL is set.
|
2017-03-12 14:25:49 +01:00 |
|
Glenn Ruben Bakke
|
90e88b2c43
|
nrf5/bluetooth: Adding new configuration flag for s132 bluetooth stack, to enable/disable ubluepy central. Disabled by default.
|
2017-03-12 14:24:12 +01:00 |
|
Glenn Ruben Bakke
|
2f9fda1367
|
nrf5: Adding ubluepy_scanner.c and ubluepy_scan_entry.c to Makefile source list.
|
2017-03-12 14:21:27 +01:00 |
|
Glenn Ruben Bakke
|
11c40892ac
|
nrf5/modules/ubluepy: Adding template object typedefs for scanner and scan entry, and extern definition for scanner and scan_entry object type in modubluepy.h
|
2017-03-12 14:20:41 +01:00 |
|
Glenn Ruben Bakke
|
91652882a9
|
nrf5/modules/ubluepy: Adding templates for central role Scanner and ScanEntry objects.
|
2017-03-12 12:34:11 +01:00 |
|
Glenn Ruben Bakke
|
1aecf560da
|
nrf5/uart: Moving UART from pyb to machine module.
|
2017-03-10 22:48:43 +01:00 |
|