Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Javascript interface with RS-232 Serial Port

falcon12
Registered User
Quote
2018-10-28 23:18:38

Forgotten : Using DOS is not a solution for me :

- Flashing DOS windows is a problem.
- Scanning speed too slow.


damians
Registered User
Quote
2018-10-29 01:36:19

The only way I found is try to read the content of the ok.txt file.


// make sure the file contains at least one character otherwise "s" will always be undefined...
var s = ccbReadFileContent(".\\ok.txt");

if (s != undefined)
{
print("File found!");
}
else
{
print("File not found!");
}



falcon12
Registered User
Quote
2018-10-29 20:21:48

Ok Damians but it doesn't solve the problem. Reading this file can cause access conflicts.

But ... Strangely I didn't have the problem letting my apps run for hours !

Maybe this CC function does a "fileexiste" before reading !!!

Niko ?


falcon12
Registered User
Quote
2018-10-31 08:21:36

Silly question ! even if CC does some file exist test before reading it will not avoid files access conflicts.


thomas
Registered User
Quote
2019-01-11 20:17:40

Eventually There is no opinion about microcomputer communication with RS 232 port


lillavictor
Registered User
Quote
2019-08-30 19:37:24

Hi..It’s not possible to access a serial port from a web browser as websites are restricted to a sandbox. This is a very important security aspect of web browsers.
Chrome used to have a Serial API for the Chrome Apps, but Browser support for those Apps has been discontinued and they are only available on ChromeOS.
So your only option is to develop a native application, which is able to communicate with the serial port and your server application.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internationa?" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact