I am trying to write a small app which can communicate with USB device when connected to a WP7 device. Is it possible to use PTP protocol over USB from a WP7 device? Does a phone needs to support USB host controller to be able to communicate via PTP over USB?
I'm afraid it's not currently possible. The only external access currently provided by the SDK (including the beta Mango release) is via HTTP or network sockets.
While the phone is connected to the PC I believe it can access it's internal IP address, but that's as close as you're going to get for now.
Related
I have searched for hours. I am developing an activesync client in order to send sms from PC to a phone that will send it. Specifically a windows phone. Previously I have used Jeyo mobile comp. I have all documentation I need but I can't find the default http address of the activesync server on the Windows phone when it is connected through USB. I should mention that I have a disability and can't access Windows phone itself. The OS is 6 but the whole point of creating the software is so I can upgrade. Many thanks!
alternatively if I am barking up the wrong tree, i need to know what tree to bark. for example serial ports. i would only need code to connect and read/write. otherwise is there a way to detect the information with csharp, ipconfig definitely isn't detecting windows mobile and activesync definitely works.
The question is a bit unclear. But Jeyo Mobile Comp is a remote control software for Windows Mobile (6.x, not Windows Phone 8 or 10).
Another free remote control software you my look at is Sparus EveryWan Remote personal edition (free). It can show the screen of Windows Mobile on your Windows PC and you can use the device remotely using the USB ActiveSync connection.
Another option is MyMobiler (also free).
The ActiveSync connection is made using the IP addresses 169.254.1.1 and 169.254.1.2 or 192.168.55.101/102, depends on Connection Setting:USB:Enhanced Network on device. You will find the IP when the device is connected to your PC, ActiveSync is connected and you start a Windows CMD prompt on the PC; then type "ipconfig" to get a list of IP addresses used by the PC. There will be your IP connected to the LAN/WAN and the one connected to Windows Mobile.
There is NO default http access to the Windows Mobile device.
If you are looking for a programming API, see RAPI at Microsoft (https://msdn.microsoft.com/en-us/library/aa513321.aspx) or OpenNetCF Desktop Communication (https://rapi.codeplex.com/) support.
I have written a window service using c++ with win32 apis, which will notify whenever USB device is connected to computer,using SERVICE_CONTROL_DEVICEEVENT.
Suppose my computer has both USB3.0 and USB2.0 port, How would Service came to know whether device is connected to 3.0 or 2.0 port using this machanism ?
Kindly help me to solve this problem.
I want to capture distances from sensors, using an Arduino and a Windows Phone device. How can I do that?
The Windows Phone 7 SDK does not give access to the USB port or Bluetooth on the phone, so you can't use that. So I think the best way (and probably only way on Windows Phone 7) would be to communcate over Internet or local network with the Arduino acting as a server which the Windows Phone 7 app connects too.
Here are some examples of an Arduino web server and TCP server.
For the Windows Phone client I would check out either WebClient or sockets.
Windows Phone 8 SDK:
Consider establishing an App to Device communication through Bluetooth API which became available for developers in the release. Bluetooth App to Device application sample, available on MSDN, is the way to go.
There is another option in Windows Phone 8, using Proximity (a set of classes which works with NFC), which is more applicable for a short range communication.
As for Arduino, there is certainly a Bluetooth module.
Windows Phone 7 SDK:
No way to establish a peer-to-peer communication with a third party device. A workaround would be to connect them through a network, as was proposed by Johan.
I have actually made a Windows Phone 8 App that connects to an Arduino using the Sparkfun Bluetooth Silver Modem. Issues is, even after I get them connected, I can't get either the Arduino to receive the input OR I can't get the WP8 App to successfully send to the Arduino...
My GitHub for the project is: https://github.com/lanceseidman/Arduino-Bluetooth-WinPhone8
Hoping everyone can try and help on the project.
My Breadboard photos will be up soon and my Arduino Code.
I know I can remote debug my winRT app through wifi, but is it possible to debug/deploy app via USB? I'm asking this, since USB would be faster than the wifi alternative.
This is possible via a USB to USB (Easy transfer cable). The cables just simulate a network connection, so it will work like wifi.
You will need to ensure the drivers are compatible with the arm device, but they should be. This device is made by Microsoft for windows 8 so should work:
Are there Windows Phone 7 devices that have USB Host drivers so that my C# program can access data on a USB Flash Drive?
You won't find many phones of any operating system which support USB host.
USB really isn't suitable for mobile devices - the USB specification requires a 5V power rail which really isn't suitable for a phone and its battery to support.
If you need expandable storage, I believe there are some phones with micro SD slots available (and there should be more of these available in the future) - although there are some restrictions about these - they're not really removable - see http://support.microsoft.com/kb/2450831.