Is it possible to use the webHID API over and RDP connection? - google-chrome

We recently implemented the webHID API for one of our sites (it is such a godsend) and have the client asking if they can use the devices over a Microsoft RDP connection?
I imagine this would depend on the RDP client and whether they can/do send HID events over the RDP connection.
From some initial research it looks like you can redirect USB over RDP but don't think this will work for us as I couldn't get my device mapping done with the webUSB API.
If anyone has any input on this it would be greatly appreciated.
Thx

WebUSB, WebHID and Web Serial should work with a remoted USB device.
That said, there may be bugs if these devices don't appear to applications like Chrome in quite the same way they do when connected locally. If they don't, it would be interesting to get logs from chrome://device-log and see how the device appears in the Windows Device Manager.
Please file a bug at https://crbug.com/new and let us know so that we can keep track of this issue.

Related

UDP broadcast search from a webpage

I have some devices which provide small webserver applications for users to access from their phone or laptop using a browser or thin client. All that the thin client does is a UDP broadcast to find devices on the local network and then connect a browser to the device(s) when found - or notify when no devices are found after a timeout.
Would it be possible to implement this thin client as a webpage served from a known host, so that the users' device wouldn't need any software installed beyond a browser and a link to the known host? The webpage would broadcast some UDP packets and wait for (appropriate) responses from any devices on the local network, if/when device responses are received present a list of devices to connect to, so the user can just select from a list, instead of having to determine the device addresses and type them in for themselves or install and use the thin client.
I can see how this sort of thing might be abused, and therefore made difficult or impossible by browsers, but no more than so many other technologies that are currently wide open for use...
Any help getting started with this kind of solution would be appreciated, thanks!
Unfortunately, this can't be done directly. I think it would be really great if there were some sort of "local peer" API to enable simple WebRTC connections without going through servers, but this doesn't exist.
You do have some options:
Write a browser extensionThis needs to call some native code to shuffle your data around, but it can work.
Deploy a server on the networkThe server can do all the initial connection/negotiation.

Windows Phone control tv over wifi

I'd like to create a Windows Phone 8.1 app to connect to a TV and have basic controls (change channels, turn on/off).
I know It's hard to have an universal remote for every TV, but I'm just testing so It could work to a specific model/maker.
My first guess is to connect to a smart tv over wifi connection, but I can't find any site to describe how to do this or how do I start researching. I only got links to apps already made, but not on how to build it.
Anyone knows how this connection works?
Thanks!
i dont think this is really related to Windows phone specific. but here is what you can do:
find out what kind of API the TV has. it's probably some Rest or SOAP based webservice you can call. if there are existing apps (maybe for other platforms) you can use Fiddler to check the network traffic from these apps to the TV if you set your pc as "man in the middle" with fiddler.
as soon as you have what you need look into HttpClient examples on how to send these requests toward your TV.
fiddler :http://www.telerik.com/fiddler
HttpClient: https://msdn.microsoft.com/library/windows/apps/dn298639

Codename one wi-fi detection

Im working with "Codename one" (Android developer) and I would like to know how can I detect if the phone has wi-fi activated or not. In this way, I can decide store data locally, and transmit it only when WI-FI is active. Otherwise, if I want to send pictures, without WI-FI, could be very expensive.
As a related question, do I have to setup some kind of cron or similar (in my code) in order to ask to my device if the WI-FI has been turned on?
Thank you very much for your help.
Kindly regards,
Gustavo
Normally to detect network you will need to use a check of whether you can connect to a specific server since a WiFi might be an airport wifi or something where you aren't authorized to connect outside. This will make it seem like wifi is connected but won't really work.
We have an APN API that allows you to detect the connection type (wifi/3g etc.) but it only works on Android/Blackberry and thus won't work (at this time) on iOS etc. Look at NetworkManager specifically: isAPSupported, getCurrentAccessPoint, getAPType.

Android/WiFi Direct - how find pc with the smartphone and establish a connection

I want develop a simple program for an Android smartphone that give the possibility to the user to transfer an image from the device to the pc. I want create a direct connection using the WiFi Direct technology. I saw the official documentation on the developer android site, and i found it very helpful. My question now, is how can i find the pc and established a connection with it? I saw that establish a connection from two smartphone is really easy, but how can i proceed in this case? The pc need to be in a wireless network (i don't think) ?
Thanks for any suggestion.
The PC does not need to be on a wireless network (that is the whole point of using Wifi-Direct) but to enable Wifi-Direct on a PC, you need to install the Intel MyWifi Dashboard software (full version) and also need to make sure that your drivers are updated.
(http://www.intel.com/support/notebook/sb/CS-033660.htm)

How can I communicate mobile with PC browser?

I want to make an HTML5 game that can be controlled with mobile. So how to communicate between mobile and browser on PC?
I think of the following ways:
Bluetooth This may be the most easy way to use. But I searched and found that Chrome made bluetooth API proposal last year but is now available only on Chrome dev, which means I cannot make the game popular for everyone.
WiFi I don't know how to set up a host on browser using WiFi information. If so, I can then connect my mobile to WiFi. This is considered to be faster than web socket since it's local network.
Web Socket There're a lot of information about how to use this. But as this use WAN, it is considered to be slower and is my last choice.
So, does anyone know how to achieve this with the former 2 ways?