Click here to Skip to main content
15,917,997 members
Home / Discussions / Java
   

Java

 
Questionlooking for simple java code to read serial port Pin
aliyesami1-Sep-10 11:51
aliyesami1-Sep-10 11:51 
AnswerRe: looking for simple java code to read serial port Pin
Richard MacCutchan1-Sep-10 22:18
mveRichard MacCutchan1-Sep-10 22:18 
GeneralRe: looking for simple java code to read serial port Pin
aliyesami2-Sep-10 3:43
aliyesami2-Sep-10 3:43 
GeneralRe: looking for simple java code to read serial port Pin
Richard MacCutchan2-Sep-10 4:11
mveRichard MacCutchan2-Sep-10 4:11 
GeneralRe: looking for simple java code to read serial port Pin
aliyesami2-Sep-10 4:59
aliyesami2-Sep-10 4:59 
GeneralRe: looking for simple java code to read serial port Pin
Richard MacCutchan2-Sep-10 5:42
mveRichard MacCutchan2-Sep-10 5:42 
GeneralRe: looking for simple java code to read serial port Pin
aliyesami2-Sep-10 8:46
aliyesami2-Sep-10 8:46 
GeneralRe: looking for simple java code to read serial port Pin
Richard MacCutchan2-Sep-10 10:05
mveRichard MacCutchan2-Sep-10 10:05 
Firstly I suggested that you edit your original question and not post a new one for each attempt at formatting your code. Secondly if you look at the last post you will notice that the pre tags show up at the top and bottom, so they have been encoded rather than interpreted as HTML; I guess you did a copy and post operation. I will allow that you could be forgiven for thinking that it was correct.

Be that as it may I have looked at your code, and the original article which I think is this one[^] and can see nothing wrong. It may well be that the information you are receiving from the serial connection is not as you expect. I suggest using your debugger to trace the data as it arrives in your application.

For the record when using the <pre></pre> tags your code should look like this:
public class SimpleRead implements Runnable, SerialPortEventListener {
static CommPortIdentifier portId;
static Enumeration portList;

note the colour scheme.
But not like this:
<pre>
public class SimpleRead implements Runnable, SerialPortEventListener {
static CommPortIdentifier portId;
static Enumeration portList;
</pre>
It's time for a new signature.

GeneralRe: looking for simple java code to read serial port Pin
aliyesami2-Sep-10 18:43
aliyesami2-Sep-10 18:43 
GeneralRe: looking for simple java code to read serial port Pin
Luc Pattyn2-Sep-10 8:55
sitebuilderLuc Pattyn2-Sep-10 8:55 
GeneralRe: looking for simple java code to read serial port Pin
Peter_in_27802-Sep-10 13:38
professionalPeter_in_27802-Sep-10 13:38 
GeneralRe: looking for simple java code to read serial port Pin
Luc Pattyn2-Sep-10 14:02
sitebuilderLuc Pattyn2-Sep-10 14:02 
GeneralRe: looking for simple java code to read serial port Pin
aliyesami2-Sep-10 18:39
aliyesami2-Sep-10 18:39 
GeneralRe: looking for simple java code to read serial port Pin
Richard MacCutchan5-Sep-10 5:43
mveRichard MacCutchan5-Sep-10 5:43 
Questionjava with emf & rcp vs c# Pin
manni198130-Aug-10 19:57
manni198130-Aug-10 19:57 
AnswerRe: java with emf & rcp vs c# Pin
Cedric Moonen1-Sep-10 20:52
Cedric Moonen1-Sep-10 20:52 
Questionhello stuck in restore of mysql via java IO Pin
Alok Sharma ji30-Aug-10 3:12
Alok Sharma ji30-Aug-10 3:12 
Questionjava Pin
emasejohn27-Aug-10 0:25
emasejohn27-Aug-10 0:25 
AnswerRe: java Pin
David Skelly27-Aug-10 4:04
David Skelly27-Aug-10 4:04 
QuestionOn Update of java ,the application nto working. Pin
002comp26-Aug-10 20:54
002comp26-Aug-10 20:54 
AnswerRe: On Update of java ,the application nto working. Pin
Richard MacCutchan26-Aug-10 22:42
mveRichard MacCutchan26-Aug-10 22:42 
AnswerRe: On Update of java ,the application nto working. Pin
David Skelly27-Aug-10 3:45
David Skelly27-Aug-10 3:45 
GeneralRe: On Update of java ,the application nto working. Pin
002comp29-Aug-10 22:30
002comp29-Aug-10 22:30 
GeneralRe: On Update of java ,the application nto working. Pin
Richard MacCutchan30-Aug-10 2:45
mveRichard MacCutchan30-Aug-10 2:45 
Questionmultiplexer code Pin
bozorgvar26-Aug-10 1:04
bozorgvar26-Aug-10 1:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.