Click here to Skip to main content
15,881,801 members

Comments by EddyGuzman (Top 19 by date)

EddyGuzman 21-Apr-17 18:36pm View    
Works good, thank you!
EddyGuzman 20-Apr-15 18:20pm View    
I have to communicate with a device through serial port.
This device has to read two sequences of hexadecimal data:
One to open the factory mode: 0xC0 0x63 7 0x02 0X00
One to Get data: 0xC0 0x73 7 0x35 0x00 0x00
EddyGuzman 20-Apr-15 17:56pm View    
Hello.
I have tried to write as this: using (SerialPort port = new SerialPort("COM2", 9600, Parity.None, 8))
{
byte[] bytesToSend = new byte[6] { 0XC0,0x63,7,0x02,0x00,0x01 };

port.Open();
port.Write(bytesToSend, 0, 6);

bytesToSend = new byte[6] { 0xC0, 0x63, 7, 0x66, 0x00, 0x01 };

port.Write(bytesToSend, 0, 6);
}

and didn't work...I've tried to make it with the serial port object and with one in code, but it's not working
EddyGuzman 21-Feb-13 11:42am View    
Oh! Yes I know, I was saving them as Integers at start, problem is that this numbers are consecutive serials, so if I remove the zeros the serial will be incorrect. But your comment is absolutely valid.
EddyGuzman 20-Feb-13 19:52pm View    
function Launch() {
var launcher = new ActiveXObject("Shell.Application");
launcher.ShellExecute("where_is_your_exe\\file.exe", "<%=userId%>", "", "open", "1");
}