View gist:3126669
grundyoso@Grundy-VirtualBox:~/workspace$ gcc libusb_acr_scribble.c -lusb-1.0 -o libusb_acr && sudo ./libusb_acr
A successful init
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000262] [000015e0] libusbx: debug [libusb_get_device_list]
[ 0.000435] [000015e0] libusbx: debug [sysfs_scan_device] scan usb1
[ 0.000567] [000015e0] libusbx: debug [sysfs_scan_device] bus=1 dev=1
[ 0.000663] [000015e0] libusbx: debug [enumerate_device] busnum 1 devaddr 1 session_id 257
[ 0.000762] [000015e0] libusbx: debug [enumerate_device] allocating new device for 1/1 (session 257)
[ 0.000892] [000015e0] libusbx: debug [sysfs_scan_device] scan 1-1
View gist:3141654
ffff8800035b3d40 2287611455 S Co:2:005:0 s 00 09 0001 0000 0000 0
ffff8800035b3d40 2287703644 C Co:2:005:0 0 0
ffff8800035b3d40 2287710601 S Co:2:003:0 s 23 03 0004 0002 0000 0
ffff8800035b3d40 2287885068 C Co:2:003:0 0 0
ffff8800035b3d40 2287901858 S Ci:2:003:0 s a3 00 0000 0002 0004 4 <
ffff8800035b3d40 2287903898 C Ci:2:003:0 0 4 = 03011000
ffff88003727e480 2287909913 C Ii:2:003:1 0:128 1 = 04
ffff88003727e480 2287909922 S Ii:2:003:1 -115:128 1 <
ffff88003727e480 2287911858 C Ii:2:003:1 0:128 1 = 04
ffff88003727e480 2287911861 S Ii:2:003:1 -115:128 1 <
View gist:8130626
From fe276c1ef9560ce81319bc168c4d830de823268e Mon Sep 17 00:00:00 2001
From: Richard Grundy <richard@flomio.com>
Date: Wed, 25 Dec 2013 23:10:11 -0500
Subject: [PATCH] This is a working UART + DMA implementation for USART0 on P1
using the CC2540 Keyfob. The UART data however gets
corrupted during the copy over in the UART Callback. Will
be looking at fixing that in next commit.
---
.gitignore | 1 +
View gist:cfd2d1095a0a01f73a91
- (void)playNotification {
// _reader.mute = YES; // Mute AudioJack library
[[AVAudioSession sharedInstance] overrideOutputAudioPort:AVAudioSessionPortOverrideSpeaker error:nil]; // Route audio to speakers
AudioServicesPlaySystemSound (1312); // Only device support. see codes: https://github.com/TUNER88/iOSSystemSoundsLibrary
[[AVAudioSession sharedInstance] overrideOutputAudioPort:AVAudioSessionPortOverrideNone error:nil]; // Route audio back to Headphones
// _reader.mute = NO; // Unmute the AudioJack library
}
View gist:f2bcc448c4f848fe2c71
2015-03-24 19:14:11.556 SDK[300:52058] Powered on the device
2015-03-24 19:14:12.061 SDK[300:52058] Powered on the device
2015-03-24 19:14:12.185 SDK[300:52058] Type:Mifare Ultralight
2015-03-24 19:14:12.187 SDK[300:51999] ::commandApdu = <ffb00004 10>
2015-03-24 19:14:12.342 SDK[300:52058] Type:Mifare Ultralight
2015-03-24 19:14:12.343 SDK[300:51999] ::commandApdu = <ffb00004 10>
2015-03-24 19:14:12.487 SDK[300:52058] Suspend scan timer 0x15e53050
SpeakerAndMicrophone
HeadsetInOut
2015-03-24 19:14:16.094 SDK[300:51999] Started scan loop with reader 0x15e4ad10
View gist:f0a3c52f37ea2243a98b
/** Answer-To-Reset (ATR) ****************************************************************
Init| T0| TD1| TD2| T1| Tk| Len | RID | Std | Card | RFU | TCK
Hdr | | | | | | | | | Name | |
3B | 8F| 80 | 01 | 80| 4F| 0C | A0 00 00 03 06| 03 | 00 03| 00 00 00 00| 68
View gist:2975da69fee97f4a95b6
<?php
require_once('easypost-php/lib/easypost.php');
add_action('woocommerce_product_options_shipping', 'add_pricing_input');
add_action('save_post', 'set_customs_value');
/**
* Add a customs value field in the WooCommerce Product form (for Admins)
* @see add_pricing_input()
*/
View gist:18046c4737059a1917fa
2015-09-08 08:23:34.226 SDK[1616:409755] FloBLE init
2015-09-08 08:23:34.227 SDK[1616:409755] bundle/private/var/mobile/Containers/Bundle/Application/BE59D86D-10BD-4351-8DE4-51AF0CA3FC0B/SDK.app/ScanSound.caf
2015-09-08 08:23:34.234 SDK[1616:409755] Protocol Type: 1
2015-09-08 08:23:34.268 SDK[1616:409755] ::centralManagerDidUpdateState supports 5
2015-09-08 08:23:34.268 SDK[1616:409755] starting scan (
"6E400002-B5A3-F393-E0A9-E50E24DCCA9E",
"6E400003-B5A3-F393-E0A9-E50E24DCCA9E",
"6E400001-B5A3-F393-E0A9-E50E24DCCA9E",
"6E400016-B5A3-F393-E0A9-E50E24DCCA9E",
"6E400018-B5A3-F393-E0A9-E50E24DCCA9E",
View gist:c2a517681e785f19fc9d
2015-09-08 08:30:00.385 SDK[1626:411223] FloBLE init
2015-09-08 08:30:00.387 SDK[1626:411223] bundle/private/var/mobile/Containers/Bundle/Application/8368CC89-B4FA-4C83-AD05-ADD690C364B7/SDK.app/ScanSound.caf
2015-09-08 08:30:00.398 SDK[1626:411223] Protocol Type: 1
2015-09-08 08:30:00.450 SDK[1626:411223] ::centralManagerDidUpdateState supports 5
2015-09-08 08:30:00.451 SDK[1626:411223] starting scan (
"6E400002-B5A3-F393-E0A9-E50E24DCCA9E",
"6E400003-B5A3-F393-E0A9-E50E24DCCA9E",
"6E400001-B5A3-F393-E0A9-E50E24DCCA9E",
"6E400016-B5A3-F393-E0A9-E50E24DCCA9E",
"6E400018-B5A3-F393-E0A9-E50E24DCCA9E",
View gist:45d0d5e8d972293752f9
2015-09-08 08:33:42.879 SDK[1637:412273] FloBLE init
2015-09-08 08:33:42.880 SDK[1637:412273] bundle/private/var/mobile/Containers/Bundle/Application/DC9FF267-8827-4AA2-98A5-544668F6593F/SDK.app/ScanSound.caf
2015-09-08 08:33:42.883 SDK[1637:412273] Protocol Type: 1
2015-09-08 08:33:42.905 SDK[1637:412273] ::centralManagerDidUpdateState supports 5
2015-09-08 08:33:42.906 SDK[1637:412273] starting scan (
"6E400002-B5A3-F393-E0A9-E50E24DCCA9E",
"6E400003-B5A3-F393-E0A9-E50E24DCCA9E",
"6E400001-B5A3-F393-E0A9-E50E24DCCA9E",
"6E400016-B5A3-F393-E0A9-E50E24DCCA9E",
"6E400018-B5A3-F393-E0A9-E50E24DCCA9E",