More support for communicating with hardware

%3CLINGO-SUB%20id%3D%22lingo-sub-1408114%22%20slang%3D%22en-US%22%3EMore%20support%20for%20communicating%20with%20hardware%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1408114%22%20slang%3D%22en-US%22%3E%3CP%3EI%20posted%20this%20in%20a%20reply%2C%20but%20I%20think%20it%20warrants%20its%20own%20thread.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAllowing%20web%20pages%20to%20talk%20to%20serial%20%2F%20USB%20ports%3A%20I%20think%20this%20feature%20would%20be%20a%20good%20candidate%20for%20having%20zone-level%20permissions.%20At%20present%2C%20the%20only%20options%20are%3C%2FP%3E%3CP%3E%22%3CA%20target%3D%22_blank%22%3ESite%20permissions%3C%2FA%3E%3CSPAN%3E%2F%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3ESerial%20ports%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22c01185%20c01198%20c01200%22%3E%3CDIV%20class%3D%22c01190%22%3E%3CDIV%20class%3D%22%22%3EAsk%20when%20a%20site%20wants%20to%20access%20serial%20ports%20(recommended)%3C%2FDIV%3E%3CP%20class%3D%22%22%3EWill%20block%20if%20turned%20off%22%3C%2FP%3E%3C%2FDIV%3E%3CDIV%20class%3D%22c01186%22%3E%3CDIV%20class%3D%22c01228%20c01236%22%3EObviously%20I%20don't%20want%20any%20dodgy%20web%20site%20(Farcebook%20%2F%20Gargle)%20on%20the%20internet%20to%20go%20tweedling%20my%20serial%20ports%2C%20but%20I%20can%20see%20it%20would%20be%20useful%20to%20have%20the%20option%20on%20intranets%2C%20and%20maybe%20always%20on%20for%20trusted%20sites%20-%20e.g.%20a%20factory%20floor%20where%20the%20PC%20is%20connected%20to%20a%20SCADA%20device%20%2F%20scales%20etc.%20At%20present%20the%20only%20practical%20way%20to%20attach%20industrial%20kit%20to%20the%20intranet%20is%20to%20have%20an%20app%20running%20locally%20on%20each%20PC%20or%20MODBUS%20(hawk%2C%20spit).%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22c01228%20c01236%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22c01228%20c01236%22%3ESimilarly%2C%26nbsp%3B%20I%20had%20one%20customer%20who%20wanted%20to%20be%20able%20to%20print%20a%20receipt%20from%20a%20web%20app%20after%20a%20simple%20zap%20with%20a%20bar%20code%20reader.%20There%20was%20no%20way%20I%20could%20find%20to%20suppress%20the%20print%20dialog%20and%20%22JUST%20PRINT%20DAMMIT%22%20-%20there%20was%20only%20one%20printer%2C%20the%20same%20printer%20every%20day%2C%20plugged%20into%20the%20POS%20terminal.%20It%20added%20seconds%20%26amp%3B%20clicks%20to%20every%20transaction%2C%20and%20there%20could%20be%20a%20lot%20of%20transactions.%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGames%20running%20in%20browsers%3A%20we%20can%20get%20pretty%20decent%20refresh%20rates%20now%20(not%20GoW%20but%20ok%20for%20strategy%20games%20%2F%20slightly%20annoyed%20birds)%2C%20it%20would%20be%20handy%20to%20be%20able%20to%20control%20a%20web%20app%20via%20an%20xbox%20controller.%20I%20have%20it%20working%20in%20a%20WinForms%20app%2C%20I%20wonder%20if%20it%20would%20work%20in%20Blazor%3F%3C%2FP%3E%3CP%3ETo%20be%20clear%2C%20the%20XBox%20controller%20already%20registers%20itself%20on%20the%20PC%20and%20it%20appears%20as%20a%20node%20in%20Device%20Manager%2C%20the%20HID%20structures%20are%20already%20defined.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHTML%205%20adds%20the%20ability%20to%20talk%20to%20the%20GPS%20etc%2C%20how%20about%20more%20generic%20devices%3F%20There%20is%20a%20%22USB%20Devices%20%22%20node%20in%20Edge-Dev's%20permissions%20screen%2C%20see%20above.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1408190%22%20slang%3D%22en-US%22%3ERe%3A%20More%20support%20for%20communicating%20with%20hardware%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1408190%22%20slang%3D%22en-US%22%3EWell%20that's%20interesting%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.w3.org%2FTR%2Fgamepad%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.w3.org%2FTR%2Fgamepad%2F%3C%2FA%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

I posted this in a reply, but I think it warrants its own thread. 

 

Allowing web pages to talk to serial / USB ports: I think this feature would be a good candidate for having zone-level permissions. At present, the only options are

"Site permissions/ Serial ports

Ask when a site wants to access serial ports (recommended)

Will block if turned off"

Obviously I don't want any dodgy web site (Farcebook / Gargle) on the internet to go tweedling my serial ports, but I can see it would be useful to have the option on intranets, and maybe always on for trusted sites - e.g. a factory floor where the PC is connected to a SCADA device / scales etc. At present the only practical way to attach industrial kit to the intranet is to have an app running locally on each PC or MODBUS (hawk, spit). 
 
Similarly,  I had one customer who wanted to be able to print a receipt from a web app after a simple zap with a bar code reader. There was no way I could find to suppress the print dialog and "JUST PRINT DAMMIT" - there was only one printer, the same printer every day, plugged into the POS terminal. It added seconds & clicks to every transaction, and there could be a lot of transactions.

 

Games running in browsers: we can get pretty decent refresh rates now (not GoW but ok for strategy games / slightly annoyed birds), it would be handy to be able to control a web app via an xbox controller. I have it working in a WinForms app, I wonder if it would work in Blazor?

To be clear, the XBox controller already registers itself on the PC and it appears as a node in Device Manager, the HID structures are already defined. 

 

HTML 5 adds the ability to talk to the GPS etc, how about more generic devices? There is a "USB Devices " node in Edge-Dev's permissions screen, see above.

1 Reply
Highlighted