Phone7 Communicating over the teather - windows-phone-7

Is it possible to have a phone7 application communicate with a desktop application via the USB tether?

Nope. This functionality is not possible unless the desktop app is running a web service or can recieve communication over HTTP.
There is currently no other way to do this.

It is possible if you decide to sniff the USB traffic and see the model by which the exchange occurs (e.g. phone -> Zune Client). This is what some applications do (e.g. the unofficial phone explorer).
Directly via the exposed API - not really.

Related

Thingworx client for windows 10

I want to gather some information from a windows 10 machine over the internet using the thingworx platform.
Here's a scenario:
Admin logs into thingworx app
Exisiting or new computer (windows 10 ) is added (serial number computer)
Thingworx platform creates a thing based on a created template
User receives application key which will be entered on a client which is installed on the computer
Client is started based on event and sends data to thingworx platform
Communication is secured
Is there a best practice or even a client available / open source or Licence based which relieves the headache of security etc.?
Yes, alwaysOn is used mostly as web socket protocol for communication between devices & ThingWorx platform. Apart from these one case also use MQTT.
If you want to use for Demo/Academic Purpose then use Thingworx Academic Simulator. I have been using it for Testing many scenarios.
Download Link - http://apps.ptc.com/schools/software/ThingWorxAcademicSimulatorSetup.exe

How to communicate mobile (Xamarin) with a desktop Application (.NET)

Is it possible to send some kind of message from mobile app (developed using Xamarin.forms with C#) to a desktop application (developed using VB.net or C#)? I would like to send messages from mobile to desktop app. I was thinking on using Bluetooth or maybe WIFI protocol
Other idea that I was thinkin is making desktop application to use a rest service, then also make mobile app to use same rest server. In this way It could be possible to create some kind of bridge between these techs.
Do you have any example or any experience on this?
You can create a web API https://learn.microsoft.com/en-us/aspnet/web-api/overview/older-versions/build-restful-apis-with-aspnet-web-api then host it on your desktop/laptop. That would be the channel between your mobile app and your desktop app.

How do I enable loopback for a UWP Windows 10 app as TCP server?

I’m working on Windows 10 with a Universal Windows (UWP) app.
I’m using a StreamSocketListener in the UWP app to listen as a server.
I enabled “Internet (Client)” and “Private Networks (Client & Server) in the app manifest.
I used CheckNetIsolation.exe tool to enable loopback for my UWP app.
This works: sending TCP messages to the UWP app from remote machines.
This fails, but I NEED IT TO WORK: sending TCP messages to the StreamSocketListener in the UWP app from the local machine.
The CheckNetIsolation.exe tool seems to have no effect for UWP app as a server. I need to have the UWP app as a server in order to send messages to the app from a local service.
Some bad choices I could make as workaround:
I could have the app poll the service, but that's very poor and expensive architecture choice.
I could message the app from a remote machine, but that complicates things and (for complicated reasons) is very undesirable solution.
Can I fix the UWP as TCP server with a registry edit?
c:\>checknetisolation loopbackexempt -a -n=package family name
UWP Enable local network loopback

How to discover local network resources on windows phone 7

I'm trying to find a way of automatically discovering and communicating with a local network service running on desktop/laptop. Much like the Zune's wifi sync feature.
iPhone can do this using Bonjour service. Is there anything like that on WP7 platform? Any other suggestions?
There is currently nothing like this available in the SDK.
Network operations are currently very limited and you're restricted to HTTP based connections. I'm not sure how useful that would be for the scenario you describe.

How do I implement support for ftp in WP7?

Hi
I would like to retrieve documents from an ftp in my Windows phone 7 application (built with XNA in my case).
As far as I understand WP7 does not support ftp due to port and protocol(?) contraints.
Is there any way to get ftp support working?
I guess I will be able to implement it my self once socket support is added but I dopn't wan't to wait for that.
Cheers
/Jimmy
Since there are no supported socket capabilities in the initial release of WinPhone , you cannot directly FTP. You would have to create an "FTP Proxy" web service which your phone would call and have the service do the actual FTP and relay the files.
FTP and Sockets are not supported by the platform at the moment.
If you want to get remote files on to your phone you'll have to use HTTP(S).
You can do this either with the HttpWebRequest or WebClient classes depending on your specific needs.
Do you want to retrieve files fromn the phone, and over the cellular network? If so you need to confirm your operator allows ftp connections to your phone, which they probably do not.
If you're connecting over wifi, you've got more chance of this working.
Otherwise, you could implement a dropbox-style approach where the phone and your file-retrieving application both connect to a remote server
If this is for development purposes, you can get access to the phones storage and copy in files by using Microsoft's SmartDevices API.
I'm trying to do the same but so far the only way I've found around it is to create a web service to run on my own server which retrieves the FTP files on behalf on the phone.
Wish MS would hurry up and give us sockets - calling a web service is fine but I'm pretty sure it would be slower than directly getting the FTP files from the phone itself.

Resources