Click here to Skip to main content
15,889,335 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
AnswerRe: Printers and Vista, program hangs or chrashs. Pin
dadashri4-Feb-09 2:56
dadashri4-Feb-09 2:56 
GeneralRe: Printers and Vista, program hangs or chrashs. Pin
st144-Feb-09 9:58
st144-Feb-09 9:58 
AnswerRe: Printers and Vista, program hangs or chrashs. Pin
#realJSOP9-Feb-09 6:10
mve#realJSOP9-Feb-09 6:10 
GeneralRe: Printers and Vista, program hangs or chrashs. Pin
st149-Feb-09 10:19
st149-Feb-09 10:19 
GeneralRe: Printers and Vista, program hangs or chrashs. Pin
#realJSOP9-Feb-09 11:23
mve#realJSOP9-Feb-09 11:23 
GeneralRe: Printers and Vista, program hangs or chrashs. Pin
st141-May-09 16:06
st141-May-09 16:06 
GeneralHardware Configuartion to run SAP on Windows PC Pin
Arijit Manna29-Jan-09 20:11
Arijit Manna29-Jan-09 20:11 
QuestionSending 5-bit Baudot Over Serial Pin
ricecake29-Jan-09 12:29
ricecake29-Jan-09 12:29 
Can anybody help me in implementing a method to send 5-bit Baudot codes over a serial port?

I have an application that must communicate with a piece of hardware that sends 5-bit Baudot data, so I am building a simulator to run on a different computer to send the same format data to our receiving PC for testing. The simulator is written in C# using .NET 2.0, so I am utilizing the System.IO.Ports.Serial interface.

I can send and receive the data as 8-bit with no problems at all.

The receiving PC has a serial card that does support 5-bit communications. In the implementation, I tried manually doing the encoding to Baudot and sending it as 8-bit using the trick given here: http://graffiti.virgin.net/ljmayes.mal/baud/baud.htm[^] (bitwise OR'ing each character with 0xE0 to set the 3 MSBs to 1, which should simulate sending multiple stop bits). However, on the receiving end, when I set it to 5 bits, I just get a bunch of boxes in the terminal output, and when I set it to 8 bits, I get gibberish characters.

I'm not sure if I need to set the encoding to UTF8 or ASCII, or if it even makes a difference since I am using the SerialPort.Write() method that takes in a Byte[], offset, and length. I have tried setting it to both ways and it didn't work.

Has anybody done anything like this before, or has any ideas on how to implement it?

Thanks.

--
Marcus Kwok

AnswerRe: Sending 5-bit Baudot Over Serial Pin
Jonathan Davies30-Jan-09 0:04
Jonathan Davies30-Jan-09 0:04 
GeneralRe: Sending 5-bit Baudot Over Serial Pin
ricecake30-Jan-09 3:57
ricecake30-Jan-09 3:57 
GeneralRe: Sending 5-bit Baudot Over Serial Pin
ricecake4-Feb-09 7:30
ricecake4-Feb-09 7:30 
QuestionExternal H.D. Problem Pin
scorp_scorp28-Jan-09 0:22
scorp_scorp28-Jan-09 0:22 
QuestionRe: External H.D. Problem Pin
Jörgen Andersson28-Jan-09 1:15
professionalJörgen Andersson28-Jan-09 1:15 
AnswerRe: External H.D. Problem Pin
scorp_scorp28-Jan-09 1:29
scorp_scorp28-Jan-09 1:29 
GeneralRe: External H.D. Problem Pin
Jörgen Andersson28-Jan-09 1:34
professionalJörgen Andersson28-Jan-09 1:34 
QuestionRe: External H.D. Problem Pin
scorp_scorp28-Jan-09 1:42
scorp_scorp28-Jan-09 1:42 
AnswerRe: External H.D. Problem Pin
Jörgen Andersson28-Jan-09 1:58
professionalJörgen Andersson28-Jan-09 1:58 
AnswerRe: External H.D. Problem Pin
scorp_scorp28-Jan-09 2:06
scorp_scorp28-Jan-09 2:06 
QuestionRe: External H.D. Problem Pin
Nanda_MR28-Jan-09 23:13
Nanda_MR28-Jan-09 23:13 
AnswerRe: External H.D. Problem Pin
Michael Martin16-Feb-09 22:01
professionalMichael Martin16-Feb-09 22:01 
AnswerRe: External H.D. Problem Pin
tech60316-Mar-09 16:41
tech60316-Mar-09 16:41 
QuestionLAN problem - Do not allow to access one machine Pin
Sipder26-Jan-09 0:41
Sipder26-Jan-09 0:41 
AnswerRe: LAN problem - Do not allow to access one machine Pin
dadashri26-Jan-09 21:07
dadashri26-Jan-09 21:07 
GeneralRe: LAN problem - Do not allow to access one machine Pin
Sipder26-Jan-09 23:46
Sipder26-Jan-09 23:46 
AnswerRe: LAN problem - Do not allow to access one machine Pin
fat_boy27-Jan-09 2:35
fat_boy27-Jan-09 2:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.