chee0007
January 14th, 2008, 08:53 AM
Hi.
I got a serial card (high speed serial card) that is modified with a 8Mhz crystal. When i did handshaking with the card itself, (like connecting com1 and com2, both ports are from the same card), it is able to send and receive the correct data.
However if i get another computer with a standard serial port and tried to send data to the high speed card via a cable, it received garbage.
I suspected that the high speed serial is using a non standard baud rate, with a speed mutiplier in play.
Hence i tried to guess the correct baud rate of the high speed serial card by doing the following.
Computer 1 (standard serial card)
Keeps sending data out at 9600 baud rate
Computer 2 (modified high speed )
I did a baud rate polling, something like this...
for(iBaud=100;iBaud<9600;iBaud++)
Connect(comport, iBaud)
recvData(buf, 10)
Theoritically, it should be able to receive the correct message from computer 1, but unfortunately, i don't.
Can I know what is wrong with this method?
Thanks and regards!
I got a serial card (high speed serial card) that is modified with a 8Mhz crystal. When i did handshaking with the card itself, (like connecting com1 and com2, both ports are from the same card), it is able to send and receive the correct data.
However if i get another computer with a standard serial port and tried to send data to the high speed card via a cable, it received garbage.
I suspected that the high speed serial is using a non standard baud rate, with a speed mutiplier in play.
Hence i tried to guess the correct baud rate of the high speed serial card by doing the following.
Computer 1 (standard serial card)
Keeps sending data out at 9600 baud rate
Computer 2 (modified high speed )
I did a baud rate polling, something like this...
for(iBaud=100;iBaud<9600;iBaud++)
Connect(comport, iBaud)
recvData(buf, 10)
Theoritically, it should be able to receive the correct message from computer 1, but unfortunately, i don't.
Can I know what is wrong with this method?
Thanks and regards!