Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
AnswerRe: Tele-operated robotic arm need help in programming Pin
Christian Graus5-Jul-07 9:24
protectorChristian Graus5-Jul-07 9:24 
GeneralRe: Tele-operated robotic arm need help in programming Pin
koool_faysie5-Jul-07 9:35
koool_faysie5-Jul-07 9:35 
GeneralRe: Tele-operated robotic arm need help in programming Pin
Christian Graus5-Jul-07 10:24
protectorChristian Graus5-Jul-07 10:24 
AnswerRe: Tele-operated robotic arm need help in programming Pin
Luc Pattyn5-Jul-07 10:03
sitebuilderLuc Pattyn5-Jul-07 10:03 
GeneralRe: Tele-operated robotic arm need help in programming Pin
koool_faysie5-Jul-07 10:41
koool_faysie5-Jul-07 10:41 
GeneralRe: Tele-operated robotic arm need help in programming Pin
Luc Pattyn5-Jul-07 10:57
sitebuilderLuc Pattyn5-Jul-07 10:57 
GeneralRe: Tele-operated robotic arm need help in programming Pin
koool_faysie5-Jul-07 11:06
koool_faysie5-Jul-07 11:06 
GeneralRe: Tele-operated robotic arm need help in programming Pin
Luc Pattyn5-Jul-07 11:29
sitebuilderLuc Pattyn5-Jul-07 11:29 
When setting up a communication (or a storage) you have to make a basic decision
as to how represent the commands or data.
1. one way is using text (say ASCII characters); the advantage is you can read
it easily, you can save it to a file, then edit it; you can use an RS232C spy
to watch the characters on the cable, you can use a terminal emulator, etc.
The disadvantages are you need more bytes (since not all bit combinations
are allowed, e.g. ASCII printable is only 0x30-0x7E), and you must encode
(translate number to chars) and decode (translate chars to number).
2. the other way is using bytes simply as binary bit patterns, as you have
choosen to do. In this case, you must provide your own command encoder/decoder,
so a general-purpose tool such as a terminal emulator cannot help you in the
debug stage.

As far as SerialPort class goes,
For 1. you typically would use the methods Write(string), ReadChar, ReadLine;
for 2. you would use Write(byte[]), ReadByte, Read.

Smile | :)


GeneralRe: Tele-operated robotic arm need help in programming Pin
koool_faysie7-Jul-07 5:53
koool_faysie7-Jul-07 5:53 
GeneralRe: Tele-operated robotic arm need help in programming Pin
Luc Pattyn7-Jul-07 6:05
sitebuilderLuc Pattyn7-Jul-07 6:05 
GeneralRe: Tele-operated robotic arm need help in programming Pin
koool_faysie7-Jul-07 6:09
koool_faysie7-Jul-07 6:09 
GeneralRe: Tele-operated robotic arm need help in programming Pin
Luc Pattyn7-Jul-07 6:21
sitebuilderLuc Pattyn7-Jul-07 6:21 
GeneralRe: Tele-operated robotic arm need help in programming Pin
koool_faysie7-Jul-07 6:34
koool_faysie7-Jul-07 6:34 
GeneralRe: Tele-operated robotic arm need help in programming Pin
Luc Pattyn7-Jul-07 6:57
sitebuilderLuc Pattyn7-Jul-07 6:57 
GeneralRe: Tele-operated robotic arm need help in programming Pin
koool_faysie7-Jul-07 7:12
koool_faysie7-Jul-07 7:12 
QuestionSetting things like TCP/IP Address and Gateway through code. Pin
jbradshaw5-Jul-07 8:13
jbradshaw5-Jul-07 8:13 
AnswerRe: Setting things like TCP/IP Address and Gateway through code. Pin
Bert delaVega5-Jul-07 10:40
Bert delaVega5-Jul-07 10:40 
GeneralRe: Setting things like TCP/IP Address and Gateway through code. Pin
jbradshaw6-Jul-07 4:30
jbradshaw6-Jul-07 4:30 
QuestionTitle of FolderBrowserDialog [modified] Pin
topksharma19825-Jul-07 7:49
topksharma19825-Jul-07 7:49 
AnswerRe: Title of FolderBrowserDialog Pin
led mike5-Jul-07 8:08
led mike5-Jul-07 8:08 
AnswerRe: Title of FolderBrowserDialog Pin
Luc Pattyn5-Jul-07 8:44
sitebuilderLuc Pattyn5-Jul-07 8:44 
AnswerRe: Title of FolderBrowserDialog Pin
Nouman Bhatti5-Jul-07 20:14
Nouman Bhatti5-Jul-07 20:14 
QuestionDefault Dialog Directories Pin
PhilDanger5-Jul-07 6:36
PhilDanger5-Jul-07 6:36 
AnswerRe: Default Dialog Directories Pin
led mike5-Jul-07 6:42
led mike5-Jul-07 6:42 
AnswerRe: Default Dialog Directories Pin
PhilDanger5-Jul-07 6:58
PhilDanger5-Jul-07 6:58 

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.