473,672 Members | 2,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help with JSSC (java-simple-serial-connector)

Claus Mygind
571 Contributor
I have a very simple project. I have a scale connected to the serial port. I would like to read the scale output using my browser.

Windows xP
FireFox (only browser to be used)
Java 7 update 51
JSSC 2.8.0

I have installed Java and adjusted the settings so it runs in FireFox.

I have installed jSSC-Terminal (a sample program which can be run in the browser). I connected the scale and I am able to see the actual output in the jSSC-Terminal app (the output is exactly what I am looking for).

I understand that you can make direct calls to public Java methods from javaScript.

The downloaded bundle (zip file) found at
http://code.google.com/p/java-simple...C-Terminal.zip appears to be all I need, but I need help putting it to use.

The basic examples of reading and writing to the serial port are shown at http://code.google.com/p/java-simple.../jSSC_examples.

If you do not want to click on the links shown here you can just google "jssc example"

Questions:
1. Must I write a java app to use the reading example shown? Or can that just be written in javaScript? If so can someone provide an example.

2. If I must write a java app (like jSSC-Terminal.jar), is there a free compiler available?

Any guidance will be greatly appreciated. I'm a total newbie to Java.

I already have a desktop app that reads the scale but a web app will be more useful to me.
Mar 10 '14 #1
0 2592

Sign in to post your reply or Sign up for a free account.

Similar topics

7
12230
by: i_vincent | last post by:
Hi all, Newbie Python programmer here, so please be patient. I have spent all day googling for an answer to my problem, but everything I try fails to work (or works from the Interpreter with a set value but not from my code with dynamic values). Okay, here is the general gist of the problem. I am using Python to parse an output file (from a MAK Logger but that is not really important). Now I have some data that is contained on a line...
0
1708
by: Adam Haskell | last post by:
Ok heres the situation: We have a linked server from SQL 2000 to a foxpro dbf. In our test enviroment we had the Foxpro and SQL server on the same machine. The linked worked perfect. Now we are ready to implement it. When we made a link to the real FoxPro dbf nothing is showing up in the tables. The FoxPro is on a seperate machine under another domain in active Directory. We have tried on the same Active Directory as well, not
1
2678
by: Srinivasa Ra via .NET 247 | last post by:
(Type your message here) I am writing an application that does lot of read/write's withcomputer's serial port. The application as a whole is workingfine. Current Approach: I have a Timer that checks once every millisecond to see if there is any data avaialable to read at theserial port. If so then reads it. The serial port is openedwithout OVERLAPPING. TRYING TO GET TO: I don't think polling serial port every millisecond is a good approach....
25
1910
by: Mark | last post by:
I'm just starting out in an introductory ASP.Net course, and am trying to run a simple program but keeping getting an error. I'm running XP, have installed Internet Information Services (5.1) , Microsoft .Net Framework (English) v1.0.3705 and Microsoft .Net Framework SDK (English) v1.0a on my computer. Also Visual Studio .Net 2002 is also installed. "http://localhost/day1/listing0104.aspx" is placed in the address line of Browser. ...
1
1561
by: Arvind P Rangan | last post by:
Hi, I have created a class library which i need to use in my ASPX file. when i say: Dim mylib As TestLib = new TestLib() it gives me an error saying type required. How do we use a class library ?
0
282
by: saravanan_article | last post by:
Hi I am newbie to C#, i am using C# 2005 and DataGridView in my Application. The problem is described here I am using DataGrid and I placed some Headers like Column1,Column2,Column3.... What i want is i that i want to Create secondary column under the Column1(Col name) of dataGridView. Please share ur ideas.. Its very urgent. Is there any properties i need to set or any methods i need to override? Reply me as soon as possible
2
1455
by: manisha.patravali | last post by:
Hello, First let me explain the scenario where i m using this requirement. We are Using CustomAppWizard and designing a wizard .One of the wizard pages will Insert Composite controls as many as the user wants . 1.So i should be able to dynamically insert ATL controls without using Insert Control Dailog. 2. can any one tell me how to dynamically create Template file in TEMPLATE folder of resource view .
2
1755
by: Andrew | last post by:
Hi, I am trying to write a program to solve roots using the Newtonian method of roots, and I am recieving several errors which I cannot figure out... if anyone could give me a point in the right direction it wuld be appreciaed. Here is what I have so far: #include <iostream> #include <math.h> using namespace std;
8
9157
by: rdabane | last post by:
I'm trying to perform following type of operation from inside a python script. 1. Open an application shell (basically a tcl ) 2. Run some commands on that shell and get outputs from each command 3. Close the shell I could do it using communicate if I concatenate all my commands ( separated by newline ) and read all the output in the end. So basically I could do following sequence: 1. command1 \n command2 \n command 3 \n
0
1064
by: P.K Sahu | last post by:
hello there, i'm new to web service but i have a difficulty to understand web services. See, I created the webservice through the default template of visual studio & " hello world" but that does not suffice my pupose. i went thru many books of web services but coding hunger is still there. can anybody give me some directions which book to read. however, if somebody can provide me the complete small applications based on webservice with...
0
8498
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8940
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8840
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8694
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7457
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6249
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4237
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2830
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1831
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.