Page 1 of 1

serial feed looks odd

Posted: Wed Mar 24, 2010 9:30 pm
by taz6053
I am having a little trouble with the data strings I am receiving. Can you tell me how to see the byte data and how to receive in byte data format instead of string? I am using vb.net for developement.

RE: serial feed looks odd

Posted: Wed Mar 24, 2010 9:48 pm
by johan
Please read this:
http://franson.com/forum/topic.asp?TOPIC_ID=13

Regards,
Johan

Franson Support

RE: serial feed looks odd

Posted: Wed Mar 24, 2010 11:49 pm
by taz6053
I tried that but I am still getting some really weird characters. Please see below output.

@ ! D I N E I N

! ! M a r 2 4 ! 1 4 : 4 6

! ! - - - - - - - - - - - - - - - - - - - -

! ! C h e c k 1 0 0 0 6

! ! k

! ! = = = = = = = = = = = = = = = = = = = =

! ! 1 S M M A C & C H Z

! ! 1 S M F R I E D O K R A

! ! = = = = = = = = = = = = = = = = = = = =

! ! : þ ÿ ÿ ÿ † ë Q ¸ … ë Q ¸ ¾ ÿ ?

!











V

RE: serial feed looks odd

Posted: Wed Mar 24, 2010 11:50 pm
by taz6053
Here is the code that produces this.

Private Sub objPort_OnRead(ByVal data) Handles objPort.OnRead
Dim i, mybyte, mystr
mybyte = objPort.StringToByteArray(data)

For i = 0 To UBound(mybyte)
mystr = mystr & Chr(mybyte(i))
TextBox1.Text = TextBox1.Text & " " & mystr
Next


End Sub