CS123 Lec01 Introduction
CS123 Lec01 Introduction
Part 2
Part 1 Part 3
Part 4 Part 5
Part 5
KC David
Teaching Teaching
Stanford University (cs123.stanford.edu) ©Kyong-Sok (KC) Chang & David Zhu
BLE: Hamster
Generic Apps: connecting to Hamster Effectors: (UUID: 0x0000A0000...)
-- iPhone, iPad, Mac: LightBlue -- Write 11 bytes to Hamster.
-- Android: nRF Master Control Panel <0000103232020300000040>
(in hex)
Sensors: (UUID: 0x00009001...) 0x00: version/topology
-- Read data (20 bytes) from Hamster. 0x00: network ID
(in hex) 0x10: command/security
1st byte: version/topology 0x32: left wheel speed (50: -100~100)
2nd byte: network ID 0x32: right wheel speed (50: -100~100)
3rd byte: command/security 0x02: left LED color (green: 0~7)
4th byte: Signal Strength (-128~0) 0x03: right LED color (blue: 0~7)
5th byte: Left Proximity (0~255) 0x00: buzzer high
6th byte: Right Proximity (0~255) 0x00: buzzer middle
7th byte: Left Floor (0~255) 0x00: buzzer low
8th byte: Right Floor (0~255) 0x40: musical note (C4: middle C: 0-88)
“Getting started with Bluetooth Low Energy” by Townsend, Davidson & Akiba,
O’Reilly
https://www.safaribooksonline.com/library/view/getting-started-
with/9781491900550/cover.html