I have been searching the web and discoverd that the sonos system can be controlled with POST request with a SOAP body.My question is ..How can I discover UPnP devices with swift code? And figure out which device it is?
Thanks in advance!
check this UPNP Link. In this link UPNP ControlPoint-oriented stack implementation avaialable. it's useful for you need.
there is another link it will give you full details of the upnp device type. go through the document once.
Related
I want ot redirect my iPhone data to either wifi or Cellular. Based on some criteria. Is it possible to redirect whole of the iPhone data to a particular interface like to either wifi or cellular. ?
I heard that this can be done using VPN but no idea how it can be done.
Any help on this?
By default, iOS help you with redirection when you have weak/good WiFi and switch on in Setting - WLAN Assist
MultiPath is a technology switching automatically by OS
Just read this Apple Doc for more help.
You can't manipulate it easily with high level API.
After all, changing device data flow is kind of low level thing. Just like NetworkExtension is Apple provided. As far as I know, Apple does not mention it in public.
I am scanning my local network and i am getting their ip and their mac address, but i want also the device name like "Hassan's Iphone" and type of device, so help me how can i get this.
thanks in advance
I think you need to have a look at something like in the following link:
Stumbler
We deal with anything wireless on the iPhone: 802.11, GSM, and Bluetooth.
Stumbler lets you view the wireless networks in your area. While right now Stumbler only handles 802.11 networks, soon you should see Bluetooth and GSM capabilities as well. Stumbler is still in a early Alpha stage, but it is fully functional, and pretty stable
However they also thoroughly mention that:
Stumbler can not be distributed through the app store, as it uses private APIs!
Following is the link to the blog post where I found the above Stumbler Google Code Project!
So I'm not sure even if what you require is possible to do, it won't be able to publish through the Apple App Store.
You better read the following StackOverflow answers too:
Programmatically finding IP address of another computer on LAN
gethostbyname xcode issues
https://stackoverflow.com/a/27099363/1752988
How Scan devices in a LAN network
Another blog post which mentioned about Stumbler tool
iOS. get other device/computer name by IP in the same local network
iOS - How to get device make and model?
LAN-Scan Git Hub Project
I think it's better next time before you put a StackOverflow Question please research on the web using Google and StackOverflow both together!
I like to create a simple application for iOS, which read data from car through ODB II Wifi/bluetooth device and display in iPhone screen. But i don't know where to start. Please somebody help me to achieve below results.
I have both Bluetooth and wifi dongle.
Step 1 : Pair the bluetooth or Wifi dongle and iPhone.
Step 2 : Read the details through dongles
Please refer any tutorial or sample code which i can understand easily. I want to understand the these process in-depth and want to code by myself. So please help.
Thanks in advance.
As David mentioned, on iOS you can use WiFi OBD interface only. Standard Bluetooth (not BTLE) will not work. Bluetooth devices should be approved by Apple to be able to transfer data to/from iOS. AFAIK there is no such a OBD's.
Probably your OBD dongle is based on ELM327 chip. Good starting point is this doc. Read it carefully. This is everything what you need. Interesting things starts at page 7.
On iOS you should open TCP connection with your OBD IP address(for example using NSInputStream, NSOutputStream), then configure OBD using AT commands. Rest is described in section "Talking to the Vehicle" (page 30) in ELM link. Enjoy reading :)
If you need more help- just ask.
I have been using Upnpx library to discover the TV using Upnp protocol.
What I have to do now is to pare my iOS app with the TV as a remote controller.
The first objectives are to take control of the sound volume, move the mouse cursor, browse through web-browsers, etc.
I have tried to google for urn:samsung.com:device:RemoteControlReceiver1 specification but I had a hard time to find useful informations.
Has someone already done this before and could give me directions or the technical specification to control the TV from a remote app ?
Regards,
You could try to use Charles. That way you will be able to sniff your network. Then try to duplicate the functionality in your app.
Just for the people who will face the same issues.
I paired my iOS app to the samsung TV through TCP socket (I used GCDAsyncSocket to handle this) and using the great informations I found here :
http://sc0ty.pl/2012/02/samsung-tv-network-remote-control-protocol/
I am testing on Windows uPNP. The IUPnPRegistrar has RegisterDevice and UnregisterDevice methods. How may I use RegisterDevice to register device to uPNP service in Windows? I can't find any example in google search.
UPnP dimmer device sample
UPnP device registration sample