windows phone 7 - How to search & connect to Bluetooth devices programatically - sockets

I want to create an application for windows phone 7 that can search for & connect to bluetooth devices. But Compact Framework of WM7 not exposing any API to handle Bluetooth while am also not able to connect with sockets as system.net.sockets not showing any class. Any one can help me to solve this problem. Thanks in advance.

In the current framework for Windows Phone 7 development there is no support for sockets and there is no API for BlueTooth, either. I doubt there will be any changes on this front before the Mango update (towards the end of this year: November-ish) and we should find out exactly what will be in Mango at MIX.

Related

Make voice call between iOS devices connected to same network

Is it possible to develop an iOS app that make a phone call using the local network (without internet signal) ...
I have 3 stores connected to the same wireless network in my city so I want to do that
Plz tell me what framework should i use or what's the steps should i follow if it is possible ...
Thanks4u in advance :)
I guess the closest thing to your question is using Gamekit. Have a look here http://developer.apple.com/library/ios/ipad/#DOCUMENTATION/NetworkingInternet/Conceptual/GameKit_Guide/AddingVoiceChat/AddingVoiceChat.html

Create an iPad app that can send/receive data via the USB cable?

I want to create an iPad app that connects to another machine, laptop or otherwise, via USB and communicates to some other application I develop running there.
I know that this is easy to achieve via Bluetooth or WiFi but this particular set of solutions must be done via a USB cable.
Is it possible to do so without access to the Apple MFi program? (I am about 5 weeks in and the response is not looking good).
iOS App --> USB Cable --> Mac OSX --> Desktop App (without MFi access)
Thanks
To use USB communication Apple does not provide any API within IOS SDK. The only option right now is MFI. I don't think Apple will allow this in near future.
To use serial communication, you need MFI as you may have discovered. However, there is a poor man's way of achieving this. I have done so during development.
Enable "Internet sharing" on your device and connect to it. Use "ifconfig" on your Mac to find out the interface to use. You do not need to use this as the default connection, but it needs to be active. If I remember correctly, only one end can initiate connections (it was a while so I am sorry that I don't remember the details).
EDIT: I would also like to point out that I did this on an iPhone, not an iPad.
Not over USB but over RS232 (serial port)
Look here: http://www.redpark.com/c2db9.html
But:
The cable uses the old 30 pin connector, but according to them it's compatible with the Lightning adapter
The application won't be accepted on the AppStore, it's for internal use only.
There is a (small) book that explains how to use this cable to connect an iPhone directly to an Arduino, it's been published in late 2011. "iOS Sensor Apps with Arduino Wiring the iPhone and iPad into the Internet of Things" http://shop.oreilly.com/product/0636920021179.do

Mqtt protocol for windows phone

How to use the mqtt protocol in windows phone.I got code from mqtt site which is an .net application and i am able to run that app successfully,but when i am trying to incorporate the same thing in windows phone i got 3 errors.
1)hashtable is not recognized so i substituted dictonary<>
2)tcpclient is not recognized...can anyone tell me some alternative
3)networkstream is not recognized...
so please can anyone suggest me some alternative for tcpclient and networkstream.
Basically we want to implement push notification without help of mpns in windows phone.
I believe that TCP sockets are now supported for Windows Phone 7 apps (since the Mango SDK update).
Check out http://msdn.microsoft.com/en-us/library/hh202858(VS.92).aspx for a sample and tutorial.
Good luck!

any examples of a server/client iphone app where both the server and clients are iOS devices?

I would like to create a server/client application where one iphone is running a server, and all other devices on the same wifi network can connect to the server device and send and receive information. Are there any examples of running a server on a device and letting other devices on the network search for it?
I looked into using GameKit, but the 16 person max limit is unfortunate. cocoaasyncsocket seems like a good option, but how do I set up one device as the server, and search for it on other devices?
The WiTap sample code may be what you're looking for (or at least a good place to start):
http://developer.apple.com/library/ios/#samplecode/WiTap/Introduction/Intro.html

iPhone interaction between PC app and iPhone app using USB

I know since the 3.0 SDK we can use accessories, so my question is simple, what is the process to make an iPhone app and PC (or Mac) app interact, using the USB ?
I don't ask you any code, but just the paths and the keys for making that work.
Have I to access the iPhone disk through SSH and work with files ?
Or can I send data from the iPhone app and intercept (get) it on the PC app (and send data from PC to iPhone) ?
Thanks, and if this question is stupid, just tell me, I didn't find on Dev Center (I don't really know what I have to looking for...) !
Edit : I read some news from Microids, they will synchronize PC and iPhone games (i.g here), and somewhere (I can't find it again) they say connecting the iPhone on the USB, so I think this is possible
USB access on the phone is only supported via the External Accessory Framework. You cannot hook the iPhone up to arbitrary USB devices, the devices actually have to support the EA protocol. You can get more details about it via the Made for iPhone program.
Other than that there is no USB access available on to applications.
You want the External Accessory Framework. Having said that, I'm not sure that Apple's intention was for you to communicate with an application on a PC/Mac. It's really for talking to accessories such as iPod docks, remote controls, etc. Apple may not allow an application that talks to a PC in this manner in the App Store.
You might be interested in ssh_relay (earlier called iphone_tunnel).
There is a /System/Library/Lockdown/Services.plist on your iPhone and you can start any such services via AMDeviceStartService and then communicate with it.
The ssh_relay demonstrates how to do that by having a simple port forwarder as a service on the iPhone site and the client application on your PC, so you can forward any local iPhone port to your PC. This is not exactly what you wants here (it is handy in the case you have already another service running on the iPhone which communicates via simple TCP and you want to access that; for example SSH) but based on this example, it should be straight-forward to have any communication between the service (in Services.plist) and your PC.