Open my garage door using iPhone

I’m a big fan of home automation. Sometimes, I forget to close the garage & I was too late for work to drive back home. I always wanted to control from my phone. I now have full control of my garage door.

The HW is Raspberry Pi + PiFace. SW is Web2py + python + jQuery for mobile.

Advertisements
Open my garage door using iPhone

NXP NFC controller: PN544, PN65, PN547 & variants

 

  • PN544 has 2 variants: PN544 C2 & PN544 C3.
    • PN544 C2 with FW version ranging from 106 to 110.16.
    • PN544 C3 with FW version ranging from 1.6 to 1.34.
    • It’s strange that C2 & C3 has 2 different version ranges. I guess they are considered different HW.
  • PN65 also has 2 variants: PN65N & PN65O.
    • PN65N = PN544 C2 + SmartMX.
    • PN65O = PN544 C3 + SmartMX.
  • PN547 is not out yet
    • C1 is only available for big customer. Version range: 6.3.7 to 6.3.11
NXP NFC controller: PN544, PN65, PN547 & variants

Popular content type encoded in NDEF record

– Plain text:
TNF_TYPE_NFCWELLKNOWN
Type: T

– Address book Contact:
TNF_TYPE_MEDIA
text/x-vCard

– Web address:
TNF_TYPE_NFCWELLKNOWN
Type: U (URI)
Protocol field: 0x01 “http://www.”

– Phone number:
TNF_TYPE_NFCWELLKNOWN
Type: U
Protocol field: 0x05 “tel:”

– SMS:
TNF_TYPE_NFCWELLKNOWN
Type: U (URI)
Protocol field: 0x00 “”
URI field: “sms: …”

Email:
TNF_TYPE_NFCWELLKNOWN
Type: U (URI)
Protocol field: 0x06 “mailto:”

Popular content type encoded in NDEF record

Interesting about android NFC whitelist nfcee_access.xml file

Since the wallet only works if its signature is in this whitelist file, we can deduce the business strategy.
Below is the list of app signatures in whitelist nfcee_access.xml file in different popular android phones:

– Nexus S, Nexus 4: Google wallet (of course).
I guess this is only way I get Google Wallet if you have T-Mobile & AT&T.
– Verizon Note 2: VZW ISIS + VZW CERT.
ISIS Wallet only.
– T-Mobile GS4: ISIS development + production.
ISIS Wallet only.
– International GS3: Google wallet + Samsung wallet.
Samsung has its own wallet too.
– Sprint GS3: Google wallet
– Sprint GS4: Google wallet + Sequent Wallet.
Reflecting Sprint new business deal with Sequent.

Interesting about android NFC whitelist nfcee_access.xml file

Xcode Error – Could not launch app – No such file or directory

I got this annoying error with Xcode 4.6.1: Could not launch app – No such file or directory Error.

Xcode was working for me for awhile without problem with my iPhone. A friend wanted me to install an app on his phone. And I got this error.

It turns out that the “Deployment Target” (=IOS 6.0) is higher than that on the phone IOS 5.1.1.

I hope it helps,

Xcode Error – Could not launch app – No such file or directory

iOS console log using ASL

If you want to get iOS console log, you can use below code:

NSMutableArray* mainList = [NSMutableArray array];
aslmsg q, m;
int i;
const char *key, *val;
q = asl_new(ASL_TYPE_QUERY);
aslresponse r = asl_search(NULL, q);
while (NULL != (m = aslresponse_next(r)))
{
    NSMutableDictionary *tmpDict = [NSMutableDictionary dictionary];
    for (i = 0; (NULL != (key = asl_key(m, i))); i++)
    {
        NSString *keyString = [NSString stringWithUTF8String:(char *)key];
        val = asl_get(m, key);
        NSString *string = [NSString stringWithUTF8String:val];
        [tmpDict setObject:string forKey:keyString];
    }
    [mainList addObject:tmpDict];
}
aslresponse_free(r);
iOS console log using ASL