I'm traying to get a QR code for connecting android an IOS devices to a WPA2-EAP netowork,
this is what i'm traying but does nothing
WIFI:T:WPA2-EAP;S:[NETOWORK NAME];E:PEAP;PH2:None;A:anon;I:test;P:123test;;
I need the A: [anonymous identity] to be set to "Do not validate" and PH2:[Phase 2 method] to None.
There is not much information around. any ideas how to proceed?
Related
Using ConnectSDK. I can successfully connect to a device and running device.launcher().launchNetflix() actually launches Netflix. However, most apps are launched using device.launcher().launchApp(appID: String), but no where am I able to find out what the appID is for each app. My initial thought was to use device.launcher().getAppList() to get a list of apps and load them into the tableview, but this throws a 401 user not authorized error.
Looks like an extra pairing step is required for certain features and just connecting is not enough. Instructions on pairing can be found here. Just scroll down to where it says "Pairing Level". Essentially your code should look like this:
discoveryManager = DiscoveryManager.shared()
discoveryManager?.pairingLevel = DeviceServicePairingLevelOn
discoveryManager?.startDiscovery()
This will require the user to enter a code from their TV into your app. Once they have paired, the 401 errors should go away for most these features.
I'm creating an App with the HomeKit SDK and I'd like to add an uncertified accessory programmatically. My goal is to build a user-friendly and convenient pairing process without having a printed QR-code or NFC ready accessory. I'd like to hand on the pairing pin / pairing URL programmatically, so the user doesn't need to worry about any codes.
I've already set up the HMAccessoryBrowser and it finds the accessory fast and reliable. So far I've the HMAccessory object as well as a valid pairing link (example: X-HM://123456789ABC) and I've tried three ways, in order to add the accessory:
Generate a QR-Code with the Url and scan it with the native Camera or Home App, which works very well. - Problem: You need a second device / print the QR code to scan the QR code.
Use HMHome's addAccessory function to add the HMAccessory directly. - Problem: After accepting the prompt asking to add the device, the Home App opens and asks to scan the QR code or to choose the device manually and enter the code. This doesn't make sense for me, unless I've just told HomeKit which accessory it should add but it's also doing this behavior with accessories of the HomeKit Accessory Simulator and also mentioned in this post.
Open the X-HM URL with UIApplication.open(). - Problem: Also with HomeKit permissions, the function fails with the error message:
-canOpenURL: failed for URL: "X-HM://123456789ABC" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
Before granting access to my Home Data, the error message was something like, you do not have the permission to open this url.
In my opinion the direct opening of the pairing URL seems to be the best solution unless it's the same process for the user like adding any other HomeKit device without the need to scan a QR code, but I'm running out of ideas.
I'd appreciate any idea, workaround or other process, to get this thing paired, thanks in advance!
I am having difficulty setting up my fingerprint Scanner - TTL (GT-511C3). I have bought it from http://www.w11stop.com/manufacturer-sparkfun I'm using the library from https://github.com/sparkfu/Fingerprint_Scanner-TTL/tree/master/FPS_GT511C3 and none of the example sketches work.
I have a message printing to the serial before the fps.open() command and a message printing afterwards, but I only ever see the first message. Does this mean the arduino is stuck trying to open the scanner?
try and get 'Demo software' from this link
and see if the software can access the sensor.
I'm looking for recommendations for an iOS barcode scanner app. Specifically for iPad which will support a custom URL callback to enable the app to be launched from a web browser.
Additionally, it needs to support and a custom search URL which will send the user back to the website once the barcode has been decoded into a URN (SKU).
I have discovered ZBar which is an excellent app, unfortunately it doesn't support custom URL callback and it's designed for the iPhone.
Another app pic2shop PRO seems to tick these boxes, but it's relatively expensive at £10.49 and the setup will require somewhere in the region of 200 installs.
I did a similar project using the free version of pic2shop . The thing is that the free version can read only these types of barcodes : UPC-A, UPC-E, EAN-13, EAN-8 , according to the documentation of the app.
Pic2shop is a free barcode scanner app available for iOS® and Android®. It reads UPC-A, UPC-E, EAN-13, EAN-8 and QR codes. The app also display comparison shopping results for UPC and EAN.
From my personal experience, I can say that it scans and decodes the barcode very fast and very accurate.
In my project the app is launched from a webpage, it works for both android and ios. In order to get it working you have to invoke the pic2shop app from a url and then set your callback address. You will find the decoded barcode data as a value to a parameter in the callback url. To help you more, you can get those values using this javascript function found here.
For example:
<input type=button OnClick="scan();" value="Scan Barcode">
<script>
function scan(){
window.location="pic2shop://scan?callback=http://yourwebsiteurl.com/index.html?barcode=ean"
}
</script>
As soon as the item is successfully scanned it will redirect you to the callback url with the actual barcode number as a value to a parameter. For example http://yourwebsiteurl.com/index.html?barcode=5123548745123. I already told you how to get the value of a url parameter with javascript.
PDF417.mobi Pro barcode scanner app supports that use case.
Note: I'm a developer on that project.
Basically, the app can be launched from any other app, including a web application, when url in the form: pdf417://scan?type=PDF417,UPCA&callback=myscheme://myaction is launched.
The app then scans the barcode, in multiple formats, (PDF417 and UPCA in this example), until the result is obtained.
Then, the app opens the URL myscheme://myaction. In your case, this can be your web service, http://www.somemyscanner.com/service.
Specifically, it will open the URL using format: http://www.somemyscanner.com/service?data=[data]&type=[type].
You can then use those parameters to implement your desired functionalities.
I tried the PDF417 app and it is EXTREMELY expensive (for an app - $28) and does not work. I bought it anyway because I am trying to solve the same issue and I can tell you it is not the solution for general barcode scanning.
It might work with pdf417 barcodes, but those are few and far between and I haven't been able to get it to work. I definately does not support any standard barcode formats. It also has no settings panel (in settings) and the tap target in the app that should be settings just take you to the company web site.
I am still testing other apps but haven't found any app that does what you ask, Red Laser used to but it no longer has that functionality.
I'm having a problem with getting the tutorial to work on the device
it works fine in the simulator, but when I try to run it on the device it doesn't work.
I put some logs and it seems to come from the login function
===JASONROGERS292C 2480 supAdmin s3pAdmin
[0.0] TAC:TAI.handleRegRsp : ALREADY_REGISTERED
[0.0] TAC:TAI.handleRegRsp : (ALREADY_REGISTERED), registered entry found:{{APN=,id=2,state=CLOSED,waf=WAF[0.0] _3GPP,keepAlive=300,IP=0.0.0.0,dnsSrv=0.0.0.0}}
[0.0] [TMM.TunnelAllocator]:runNotReadyListeners: registered listeners found
[0.0] TAC:TAI.handleListenerDeRegRsp: not existent tunnel in TAC, tid=2
[0.0] SIM cache not loaded
has anybody got an idea what I forgot to do when running the code on a device?
Cheers
Jason
edit:
a couple of links towards what I'm doing (I can post all the code people want but its the standard generated code form SUP, which mean a lot of code lol)
The tutorial
http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01214.0200/doc/html/title.html
the zip to the already done tutorial :
http://www.sdn.sap.com/irj/bpx/index?rid=/webcontent/uuid/40ea4956-b95c-2e10-11b3-e68c73b2280e
Solution:
I was missing a couple of things:
1) Specify that the app should use Wifi
SUP101DB.getSynchronizationProfile().setString("transport", "WIFI");
2) Check that the DNS: in my case the server was local to my windows (through parallels) so I had to specify the ip and not the namespace
getSynchronizationProfile().setServerName("10.50.30.108");//"JASONSERVER");
I downloaded the SUP 101 - BlackBerry Project and checked the sources.
It does not contain networking code in the form a usual BB app would do.
However I see the SUP101.SUP101DB class has the following method:
private static String getSyncTransportSuffix() {
com.sybase.persistence.ConnectionProfile syncProfile =
getSynchronizationProfile();
return com.sybase.afx.util.NetworkUtil.getTransportUrlSuffix(syncProfile);
}
So the code uses com.sybase.afx.util.NetworkUtil to get url suffix. By appending such suffix to a url we say to the underlaying BB API what network transport to use. Unfortunatelly sources do not contain com.sybase.afx.util.NetworkUtil to look how exactly it works.
I should say that even with native Java BB development detecting a proper network transport may turn to be a very tricky part. OS 5+ provides a new networking API that is much better, but for the older OS it is hard. This SUP project is built with BlackBerry JRE 4.6.1, so it can not use new OS 5+ networking API. Who knows maybe SUP simply fails to detect proper network transport?
Any way, just a few ideas to try:
check for APN settings on the device, sometimes they have to be populated in order to use Direct TCP transport (it depends on wireless provider requirements). APN name/pass are wireless provider specific. Usually googling allows to find proper APN settings for a provider.
if your device has WiFi try enabling it. SUP should be smart enough to prefer WiFi if available. In this case I assume networking should have no issues.