Cypress CE217646 Handbuch - Seite 7
Blättern Sie online oder laden Sie pdf Handbuch für Empfänger Cypress CE217646 herunter. Cypress CE217646 20 Seiten. Ble wireless power transfer with psoc 6 mcu with ble connectivity
g.
Two projects send log messages through UART. After starting, the PTU project logs Advertising and Scan response
reports from the PRU, for example:
Advertisement report: peerBdAddr -00 a0 50 e1 61 a8 , rssi - -36 dBm, data - 02 01 05
07 16 fe ff 0c 00 a0 00
h.
The PTU automatically connects with the advertised PRU. Observe the initialization procedure. The blue LED on
PRU indicates charging. After Vrect reaches VrectHighDyn, the PRU sends the simulated Alert Notification with the
Complete Charge status and switches off the blue LED.
i.
The output of the debug serial port looks like the sample below:
The PTU example log:
BLE Wireless Power Transmitter Code Example
CY_BLE_EVT_STACK_ON, StartScanning
CY_BLE_EVT_SET_TX_PWR_COMPLETE
CY_BLE_EVT_SET_TX_PWR_COMPLETE
CY_BLE_EVT_SET_DEVICE_ADDR_COMPLETE
CY_BLE_EVT_LE_SET_EVENT_MASK_COMPLETE
CY_BLE_EVT_GAPC_SCAN_START_STOP, state: 2
Advertisement report: peerBdAddr -00 a0 50 06 00 00 , rssi - -47 dBm, data - 02 01 05 07 16 fe ff 0c 00 a0 00
Connecting to the device (address - 00a050060000)
CY_BLE_EVT_GATT_CONNECT_IND: 3, 3
Get PRU Static Parameter char value, attId: 3, apiResult: 0
CY_BLE_EVT_GAP_DEVICE_CONNECTED: bdHandle=3, connIntv = 53 ms
Device 3<--PRU_STATIC_PARAMETER: flags: 0, protocol rev: 0, category: Category 0 , information: 0 , hardware rev: 62 , firmware
rev: 32 Prect_max: 500 mW, Vrect_min_static: 3000 mV, Vrect_high_static: 5000 mV, Vrect_set: 4000 mV,
Device 3-->Set PTU Static Parameter char value, apiResult: 0
Device 3<--CY_BLE_EVT_WPTSC_WRITE_CHAR_RESPONSE: charIndex =1
Device 3-->Enable Alert Notification, apiResult: 0
Device 3<--CY_BLE_EVT_WPTSC_WRITE_DESCR_RESPONSE charIndex =2
Device 3-->Send Connection Parameter Update Request to Peripheral, apiResult: 0
Device 3-->Set PRU Control char (enable charging), apiResult: 0
Device 3<--CY_BLE_EVT_WPTSC_WRITE_CHAR_RESPONSE: charIndex =0
CY_BLE_EVT_GAP_CONNECTION_UPDATE_COMPLETE: bdHandle=3, connIntv = 250 ms
N of Devices: 1; #3 Charge=1, Vrect: 3996 mV;
N of Devices: 1; #3 Charge=1, Vrect: 3998 mV;
N of Devices: 1; #3 Charge=1, Vrect: 4000 mV;
N of Devices: 1; #3 Charge=1, Vrect: 4003 mV;
N of Devices: 1; #3 Charge=1, Vrect: 4006 mV;
The PRU example log:
BLE Wireless Power Receiver Code Example
CY_BLE_EVT_STACK_ON, StartAdvertisement
CY_BLE_EVT_SET_TX_PWR_COMPLETE
CY_BLE_EVT_SET_TX_PWR_COMPLETE
CY_BLE_EVT_SET_DEVICE_ADDR_COMPLETE
CY_BLE_EVT_LE_SET_EVENT_MASK_COMPLETE
CY_BLE_EVT_GET_DEVICE_ADDR_COMPLETE: 00a050060000
CY_BLE_EVT_GAPP_ADVERTISEMENT_START_STOP, state: 2
CY_BLE_EVT_GATT_CONNECT_IND: 3, 3
CY_BLE_EVT_GAP_DEVICE_CONNECTED: connIntv = 53 ms
Simul Vrect: 3999 mV
CY_BLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ: handle: 15
PTU_STATIC_PARAMETER: flags: c0, power: watts, maxLoadResistance: 50 ohms, supported devices number: 1 , class: Class4 ,
hardware rev: 62, firmware rev: 32, protocol rev: 0
CY_BLE_EVT_WPTS_NOTIFICATION_ENABLED: char: 2
CY_BLE_EVT_WPTS_INDICATION_DISABLED: char: 2
CY_BLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ: handle: 17
Simul Vrect: 3998 mV
PRU_CONTROL: enables: 40, Output - DISABLE,Charge indicator -ENABLE ,Power:Max permission: 0, Permitted,timeSet 0 ms
CY_BLE_EVT_CONNECTION_UPDATE_COMPLETE: connIntv = 250 ms
SimulBatteryLevelUpdate: 3
CY_BLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ: handle: 17
Simul Vrect: 3999 mV
CY_BLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ: handle: 17
Simul Vrect: 4000 mV
Simul Vrect: 4001 mV
SimulBatteryLevelUpdate: 4
Simul Vrect: 4002 mV
www.cypress.com
BLE Wireless Power Transfer with PSoC 6 MCU with BLE Connectivity
Document No. 002-17646 Rev.**
7