Does anybody know what are names of serial ports in Google Chrome packaged apps API for Windows? COM1, \\.\COM1 and many others do not work
--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-apps/-/EjH6cPOPgOQJ.
To post to this group, send email to chromi...@chromium.org.
To unsubscribe from this group, send email to chromium-app...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-apps/?hl=en.
--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-apps/-/8jPZhPLM5QwJ.
chrome.serial.getPorts(function(ports) {
for (var i=0; i<ports.length; i++) {
console.log(ports[i]);
}
});
It doesn't work either. The ports.length will always return 0 despite the fact that I have 4 serial ports on Windows XP......
Looks like the serial API isn't platform independent?!
USB Serial Port (COM6)Driver Provider: FTDIDriver Date: 10/04/2012Driver Version: 2.8.24.0Digital Signer: Microsoft Windows Hardware Compatibility Publisher
"I'll try to take a look at this soon, but I have to find my serial-port adapter for my Windows machine (which I took home and then lost)."
May be we can buy him a new serial-port adapter!!!
// 1. You have an Arduino or compatible board attached to your machine and// properly appearing as the first virtual serial port ("first" is very loosely// defined as whichever port shows up in serial.getPorts). We've tested only// the Atmega32u4 Breakout Board and Arduino Leonardo; note that both these// boards are based on the Atmel ATmega32u4, rather than the more common// Arduino '328p with either FTDI or '8/16u2 USB interfaces. TODO: test more// widely.
chrome.serial.getPorts(function(ports) {
for (var i=0; i<ports.length; i++) {
console.log(ports[i]);
}
});
It doesn't work either. The ports.length will always return 0 despite the fact that I have 4 serial ports on Windows XP......
Looks like the serial API isn't platform independent?!
I've just started learning and playing with Chrome extensions and packaged apps and am really excited due to hardware apis and crossplatform support.First I've tried running the serial demo as a hosted web app but it doesn't look like the object chrome.serial is present.
I find it easier to develop an app as a hosted (crx-less) app as opposed to a packaged app.You can't just reload (F5) and packaged app, can you?
so ideally I would develop first a hosted app with these experimental apis.
You can't. The new APIs available to packaged apps, in special the device access ones, are not available to hosted apps.
Not with F5, but you just right click on any window of your packaged app and you get the "Reload App" option, as long as you are in Developer mode (checkbox on top of chrome://extensions page). And if you set an ID to your window in chrome.app.window.create(), even the size and position will keep the same when reloading. Same for the DevTools/inspector window, if it was open when you reloaded.
You might have your reasons, but I prefer developing local instead of having to change files in a server. Last time I was in a plane, I could implement a simple app completely offline, which would be much harder using hosted apps.
wrong. Hosted apps are like web apps but they can work offline. Plus, they can do more than a traditional web app, provided users grant them permissions. So the fact that hosted apps cannot access hardware is just a formality, am I wrong?
If 'packaged apps' fly, I'm planning to use them to replace our current java based GUIs (hopefully mobile platforms will be supported too eventually).We need hardware support in order to access serial ports. And we need offline support for when our users in the field don't have access to the internet.But I'd like to make their user experience from online to offline as seamless as possible. It'll be hard enough to explain what a Chrome extension, a hosted app or an offline app is. Not sure how we're going to do it.
We're not planning on publishing our apps to the marketplace, a self-hosted solution on our appengine server is quite compelling. I've been reading on how to control self-updating for hosted apps, hopefully the same will apply to packaged apps.
The packaged app is packaged (obviously :-)) in a signed crx and all its executable code is guaranteed to live inside that signed packaged.The hosted app, on the other hand, usually has most of its code living in a remote server. Safety was one of the most important, if not the most, aspects we considered when designing the Chrome packaged apps programming model. For example, If the hosted app had the same APIs as a packaged app, even a well intentioned developer could be at risk if he hosts his hosted app in an unsafe hosting service. Not with packaged apps.
But I'd like to make their user experience from online to offline as seamless as possible. It'll be hard enough to explain what a Chrome extension, a hosted app or an offline app is. Not sure how we're going to do it.That's an excellent use case. I'm not sure why you will have to explain that to your users, though. Currently, because the platform is a developer preview, you need to launch packaged apps from a Chrome new tab page. In the near future, you will be able to launch it in a much more natural way.
We're not planning on publishing our apps to the marketplace, a self-hosted solution on our appengine server is quite compelling. I've been reading on how to control self-updating for hosted apps, hopefully the same will apply to packaged apps.Do you want to publish it to selected users only, right? Are these users tied to a particular Google Apps domain, or it's just an arbitrary list? Packaged apps will self-update in a seamless way, but they must be published in CWS. Google Apps domains have some specificities, though.
That's an excellent use case. I'm not sure why you will have to explain that to your users, though. Currently, because the platform is a developer preview, you need to launch packaged apps from a Chrome new tab page. In the near future, you will be able to launch it in a much more natural way.I was thinking: currently customers use our web site. When they need to work offline or for a access to hardware they will have to switch to a packaged app. That can be confusing, that switching back and forth.
Can't they just use the packaged app as the entry point to your app? If it is not feasible to convert all your site to the packaged apps programming model and CSP restrictions but you still want to use some features of packaged apps, as it seems to be your case, you can have your user initially go to the packaged app (a great user experience when in a flaky or non-existent connection). Then, if the user is online, an option would show your website inside a <webview> with the use cases that only exist in the web site.
If you are not familiar with the webview element, watch next week's Chrome Office Hours where I and Pete LePage will talk about it.
I don't think AppEngine currently supports sockets.
--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-app...@chromium.org.
To post to this group, send email to chromi...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-apps/.
For more options, visit https://groups.google.com/a/chromium.org/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-app...@chromium.org.
To post to this group, send email to chromi...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-apps/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.