User Profile

Collapse

Profile Sidebar

Collapse
Maja Gajic
Maja Gajic
Last Activity: Jul 20 '11, 01:00 AM
Joined: Jul 13 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Maja Gajic
    replied to C# help padding Byte with zeros
    Great that makes more sense now, Thanks for the clever code!
    See more | Go to post

    Leave a comment:


  • Maja Gajic
    started a topic C# serial port programming help
    in .NET

    C# serial port programming help

    Hello I am writing a program for my final year project at uni attempting to communicate with a CTG machine via an RS232 interface. I have the documentation of the machine and have set the correct properties of the port in the code and also in the properties of the port through my computer.
    There is no handshaking.

    I am trying to send a block in the form of

    The data code for G-mode (auto send mode) is:
    ...
    See more | Go to post

  • Maja Gajic
    started a topic C# help padding Byte with zeros

    C# help padding Byte with zeros

    Hello I am quiet new at C# programming so would appreciate any help. I am writing a program to communicate via RS232 with a machine and need to send it a packet in the form:
    Code:
    { <DLE> , <STX> , "G" , <DLE> , <ETX> , <CRC> , <CRC> }
    
    byte[] byteToSend = new byte[] { 0x10, 0x02, 0x47, 0x10, 0x03, CRC , CRC };
    My two byte CRC is 0x421F and...
    See more | Go to post
No activity results to display
Show More
Working...