View Single Post
  #3 (permalink)  
Old 07-08-2009, 9:11 AM
bjfguitar bjfguitar is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jul 2009
Age: 18
Posts: 2
Reputation: 0
bjfguitar is on a distinguished programming path ahead
Default

Hey Robert, thanks for the reply.

I send a hex code:
Dim xmtBuf() As Byte = {&H96, &H1, &H50, &H51, &H74}
serialPort.Write(xmtBuf, 0, xmtBuf.Length)

Which translates out to 96 01 50 51 74

The device I'm writing to reads this function and will respond as a hex as well, which I'm trying to read here:
Dim rcvBuf(1024) As Byte
serialPort.Read(rcvBuf, 0, rcvBuf.Length)

Thanks,
Ben.
Reply With Quote