USB CDC on Windows 8 RT - c#

Can a Windows Store Application communicate with a USB-connected device through a virtual COM Port?
Does the framework for such apps contain the SerialPort class?
If not, in what other way can I create a connection between a device and an App?
All this assuming that Classic Desktop is unavailable.

You aren't the first to ask. But let me be the first to answer: http://blog.jerrynixon.com/2012/05/metro-answers-can-i-use-serial-port.html
The short answer is no. With this exception: the device is on USB (with a dongle) with a modern driver exposing IOCTLS device information – this gives Windows Store Apps device access.

Related

Can I use the Bluetooth serial port in Windows Phone 7.1 and up?

I want to develop an app for the Windows Phone app store that communicates with my car's OBD2 port via Bluetooth.
Long story short, the app will use the bluetooth serial port to send a hex value and retrieve the corresponding value in the ECU's register. There's an android app called Torque which does this.
I can't figure out how to use the serial port though. The only bluetooth functionality mentioned is high-level stuff like pushing objects, pairing, etc. But nothing about setting baud rates or writing to a specific COM port.
Is this possible on WP7/*? Or alternatively, how can I make this possible and get my app approved for distribution?
UPDATE: I haven't been able to get my hands on a WP8 device yet, so I can't verify whether or not this is possible using SSP.
As a bonus note in case you came here looking for alternatives: you can also NOT connect to ad-hoc wifi connections, so the wife-based OBD2 adapters are no good either. There is an ugly way of connecting to the latter which involves having a laptop in your car which is simultaneously connected in ad-hoc mode the the device and is also acting as a wifi hotspot. It is utterly impractical.
Using the Bluetooth Serial Port (SSP) is not possible with public APIs of Windows Phone 7.x. As you've kind of guessed already, the app will likely not be approved for the marketplace if private APIs are P/invoked or otherwise used.
Consider upgrading to Windows Phone 8 as the Bluetooth SSP is partially available there, see Nokias Developer site for example.

windows phone 7 wifi , bluetooth

I have few queries aboubt network statistics for application development on windows phone.
1)Is there any way(APIS), we can scan wifi AP in windows?
If it is connected to AP how to get SSID,BSSID and MAC address?
2)how to get CELL ID and local information?
3)Application Layer (TCP, UDP & ICP throughput, latency, etc)?
4) Bluetooth apis for device connected and device?
I was finding very info from msdn.
like Bluetooth connect and discover able devices.
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207007(v=vs.105).aspx
coming to (wifi,cellular,ethernet) they have mention common class networkinformatio will it be helpful?
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202867(v=vs.105).aspx
http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.net.networkinformation(v=vs.105).aspx
Short answers to big questions:
You cannot find WiFi SSIDs and Mac address directly from the WP8 SDK.
You cannot get information on the physical layout of the cellular netwrok directly from the WP8 SDK.
You cannot get network transport statistics directly from the WP8 SDK.
You can use Bluetooth APIs to enumerate over paired devices and open BT-SPP sockets.

Retrieve device information in Windows Phone

How i can retrieve information about installed devices in windows phone (e.g. gps, bluetooth, accelerometer)?
In windows mobile I can use Status or SystemState class. And what about Windows Phone?
I'm beginner with this technology, and I have to do this for university.
There is a Device Status sample on MSDN which can guide you through using the Devicesstatus class which can be used to query for the presence of a keyboards and other optional hardware components -- it is my understanding that a location sensor (GPS or otherwise), bluetooth and possibly the accelerometer are all part of the minimum hardware specification so these are not reported via this API (as there is nothing to query)

How to communicate with Win CE device connected by usb

Greetings.
I'm trying to communicate between desktop PC and Windows CE 5.0 device connected by usb (cradle).
I feel like I'm missing something obvious, because I can't find how to establish connection between them. What namespace to look? I just want simple communication: connect, exchange some data, disconnect. Sockets are more then enough, but what address should I access? The one assigned by usb connection on handheld is not accessible on desktop machine.
Communication should be initiated from desktop PC.
My handheld is running Windows CE 5.0 with .NET Compact Framework 2.0
Please point me to the right direction :)
Do you have ActiveSync connection with the device. If you do, use OpenNETCF desktop communication. It is exatly what you are looking for.
Hmm it appears that mobile device won't popup in FileOpenDialog.
Use Rapi? http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/4826aa50-f206-499e-b115-584c3f058f8a
or check this
If you are able to create and use server application for desktop, do data communication trough socket. You can transfer whatever you want.

can c# be used for communicating mobile and pc?

As a minor project in my degree I would like to communicate mobile and pc .I am interested to communicate through bluetooth is it possible to do so in c#?
If possible please provide me list of application or hardware i would requiere in order to do so.
thanks in advance
If (and it's a big if based on the lack of information in your question) you mean "How do I write an app on my PC, using C#, that can communicate with a Windows Mobile device that is connected to my PC via ActiveSync or WMDC" then the answer is RAPI. A free, open-source managed wrapper for it is here.
Yes its possible if its with windows mobile phone or pocket pc with bluetooth. You need a bluetooth enabled computer and mobile phone. For dev you need to download the windows mobile 6 sdk.
Then developing of the communication between desktop app and mobile phone app, you can use the 32feet.Net is open source.
When you download it and installs (well it unpacks to program files folder) you will have the dll that you make reference to in Visual Studio. Also you will get some sample apps. One of them is a Bluetooth Chat that works in Desktop, Pocket PC and SmartPhone.
Another option you could use is set up a web service that acts like an intermediary between the device and your machine. One huge benefit of this is that no longer are you bound by the distance requirements of bluetooth.
Of course if you're trying to build some sort of proximity service (do z when item x is 3 meters from item y) then bluetooth is probably the way to go.

Categories