Skip to content

Instantly share code, notes, and snippets.

View jacobrosenthal's full-sized avatar

Jacob Rosenthal jacobrosenthal

View GitHub Profile
Jacobs-MacBook-Air:gcc jacobrosenthal$ openocd -f board/nordic_nrf51822_mkit.cfg -c "reset_config srst_only; program /Users/jacobrosenthal/Downloads/s110_nrf51822_7.3.0/s110_nrf51822_7.3.0_softdevice.hex verify; shutdown" -d3
Open On-Chip Debugger 0.9.0 (2015-05-28-12:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 3 command.c:546 command_print(): debug_level: 3
Debug: 14 3 options.c:98 add_default_dirs(): bindir=/usr/local/Cellar/open-ocd/0.9.0/bin
Debug: 15 3 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/Cellar/open-ocd/0.9.0/share/openocd
Debug: 16 3 options.c:100 add_default_dirs(): run_prefix=
Debug: 17 3 configuration.c:44 add_script_search_dir(): adding /Users/jacobrosenthal/.openocd
Jacobs-MacBook-Air:gcc jacobrosenthal$ openocd -f board/nordic_nrf51822_mkit.cfg -d3
Open On-Chip Debugger 0.9.0 (2015-05-28-12:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 2 command.c:546 command_print(): debug_level: 3
Debug: 14 2 options.c:98 add_default_dirs(): bindir=/usr/local/Cellar/open-ocd/0.9.0/bin
Debug: 15 2 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/Cellar/open-ocd/0.9.0/share/openocd
Debug: 16 2 options.c:100 add_default_dirs(): run_prefix=
Debug: 17 2 configuration.c:44 add_script_search_dir(): adding /Users/jacobrosenthal/.openocd
Jacobs-MacBook-Air:gcc jacobrosenthal$ openocd -f board/nordic_nrf51822_mkit.cfg -c "program /Users/jacobrosenthal/Downloads/s110_nrf51822_7.3.0/s110_nrf51822_7.3.0_softdevice.hex verify; shutdown" -d
Open On-Chip Debugger 0.9.0 (2015-05-28-12:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 3 command.c:546 command_print(): debug_level: 3
Debug: 14 3 options.c:98 add_default_dirs(): bindir=/usr/local/Cellar/open-ocd/0.9.0/bin
Debug: 15 3 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/Cellar/open-ocd/0.9.0/share/openocd
Debug: 16 3 options.c:100 add_default_dirs(): run_prefix=
Debug: 17 3 configuration.c:44 add_script_search_dir(): adding /Users/jacobrosenthal/.openocd
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var {
AppRegistry,
@jacobrosenthal
jacobrosenthal / gist:3d35e7e5390da73129cc
Created October 3, 2015 18:15
node eddystone beacon platform-check-bleno-property xpcError: connection interrupted
Last login: Sat Oct 3 19:09:03 on ttys001
cd Jacobs-MacBook-Air:~ jacobrosenthal$ cd /Users/jacobrosenthal/Downloads/node-ystone-beacon
Jacobs-MacBook-Air:node-eddystone-beacon jacobrosenthal$ DEBUG=* node examples/uid/with-tlm.js
bleno platform darwin +0ms
bleno addressChange b8:e8:56:03:d3:ed +3ms
bindings sendCBMsg: 1, {
"kCBMsgArgName": "node-1443893725770",
"kCBMsgArgOptions": {
"kCBInitOptionShowPowerAlert": 1
},
@jacobrosenthal
jacobrosenthal / screenlog.0
Created October 3, 2015 17:13
node-serialport #566 raspberry pi wheezy 'updated' to jessie
./node_modules/.bin/node-pre-gyp install --fallback-
-to-build 2>&1 > log.txt
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | linux | arm
node-pre-gyp info check checked for "/home/pi/node-serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm/serialport.node" (not found)
node-pre-gyp http GET https://node-serialport.s3.amazonaws.com/serialport/v1.7.4/Release/node-v46-linux-arm.tar.gz
node-pre-gyp http 404 https://node-serialport.s3.amazonaws.com/serialport/v1.7.4/Release/node-v46-linux-arm.tar.gz
node-pre-gyp http Pre-built binary not available for your system, looked for https://node-serialport.s3.amazonaws.com/s
@jacobrosenthal
jacobrosenthal / gist:28fbcdfa3df29262f63a
Created September 29, 2015 02:08
hcidump bleno linux raspberry pi
2015-09-29 02:08:03.310259 > HCI Event: Command Complete (0x0e) plen 4
LE Set Advertising Data (0x08|0x0008) ncmd 1
status 0x00
2015-09-29 02:08:03.312255 > HCI Event: Command Complete (0x0e) plen 4
LE Set Advertise Enable (0x08|0x000a) ncmd 1
status 0x0c
Error: Command Disallowed
2015-09-29 02:08:03.314266 > HCI Event: Command Complete (0x0e) plen 4
LE Set Scan Response Data (0x08|0x0009) ncmd 1
status 0x00
@jacobrosenthal
jacobrosenthal / gist:4959a66a5fa5984113eb
Created September 29, 2015 01:51
hcidump bleno linux
jacob@gaia:~/Downloads/ble_software$ hcidump -t -x
HCI sniffer - Bluetooth packet analyzer ver 5.23
device: hci0 snap_len: 1500 filter: 0xffffffff
2015-09-29 03:49:55.964575 > HCI Event: Command Complete (0x0e) plen 4
LE Set Scan Response Data (0x08|0x0009) ncmd 1
status 0x00
2015-09-29 03:49:55.965584 > HCI Event: Command Complete (0x0e) plen 4
LE Set Advertising Data (0x08|0x0008) ncmd 1
status 0x00
2015-09-29 03:49:55.966575 > HCI Event: Command Complete (0x0e) plen 4
@jacobrosenthal
jacobrosenthal / gist:0cff7544c46346573e56
Created September 28, 2015 22:06
Bleno Battery OSX (yosemite) bindings
^CJacobs-MacBook-Air:bleno jacobrosenthalDEBUG=bindings node examples/battery-service/main.js
bindings sendCBMsg: 1, {
"kCBMsgArgName": "node-1443477764659",
"kCBMsgArgOptions": {
"kCBInitOptionShowPowerAlert": 1
},
"kCBMsgArgType": 1
} +0ms
bindings xpcEvent: {
"kCBMsgId": 6,
@jacobrosenthal
jacobrosenthal / gist:b6ab2205da5bad6ad0f5
Created September 28, 2015 22:05
Bleno Battery Linux Bindings
jacob@gaia:~/Downloads/ble_software$ DEBUG=bindings,gatt,gap,smp,mgmt,crypto,acl-att-stream node node_modules/bleno/examples/battery-service/main.js
on -> stateChange: poweredOn
gap startAdvertising: name = Battery, serviceUuids = [
"180F"
] +0ms
gap startAdvertisingWithEIRData: advertisement data = 02010603030f18, scan data = 080842617474657279 +4ms
on -> advertisingStart: success
gatt handles = [
{},
{