Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius26-Jul-07 7:37
professionalMichael Fritzius26-Jul-07 7:37 
GeneralRe: Serial To USB Communication Pin
Luc Pattyn26-Jul-07 7:52
sitebuilderLuc Pattyn26-Jul-07 7:52 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius30-Jul-07 6:21
professionalMichael Fritzius30-Jul-07 6:21 
GeneralRe: Serial To USB Communication Pin
Luc Pattyn30-Jul-07 7:47
sitebuilderLuc Pattyn30-Jul-07 7:47 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius30-Jul-07 6:53
professionalMichael Fritzius30-Jul-07 6:53 
GeneralRe: Serial To USB Communication Pin
Luc Pattyn30-Jul-07 7:03
sitebuilderLuc Pattyn30-Jul-07 7:03 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius30-Jul-07 7:09
professionalMichael Fritzius30-Jul-07 7:09 
GeneralRe: Serial To USB Communication Pin
Luc Pattyn30-Jul-07 7:34
sitebuilderLuc Pattyn30-Jul-07 7:34 
Hi,


matrix2681 wrote:
ignore any cross-threaded calls. Would this be a problem?


It is in general a bad idea.
I don't expect it wil affect the serial port I guess, it will, if anything,
show up as a GUI that works half or not at all (immediately or after some time).

Do not do this. Fix it, you will have to fix it anyway, why run such risks now.
If all you need is visual feedback from some thread, use Console.WriteLine(),
that works all the time (towards Visual's output pane when running under Visual).


So your app receives, but is unable to transmit ? That is a first, most
people get the opposite.
I trust you have code for synchronous transmission, i.e. port.WriteLine() ?

IIRC the default settings are OK for simple transmission.
This is code from my very first SerialPort experiment:
SerialPort port;
...
port=new SerialPort(portName, 9600, Parity.None, 8, StopBits.One);
port.Encoding=Encoding.ASCII;
port.NewLine="\r\n";
port.Open();
...
port.WriteLine(someString);


Hope this helps.

Smile | :)


GeneralRe: Serial To USB Communication Pin
Luc Pattyn30-Jul-07 7:38
sitebuilderLuc Pattyn30-Jul-07 7:38 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius30-Jul-07 7:49
professionalMichael Fritzius30-Jul-07 7:49 
GeneralRe: Serial To USB Communication Pin
Luc Pattyn30-Jul-07 7:56
sitebuilderLuc Pattyn30-Jul-07 7:56 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius30-Jul-07 8:28
professionalMichael Fritzius30-Jul-07 8:28 
GeneralRe: Serial To USB Communication Pin
Luc Pattyn30-Jul-07 8:37
sitebuilderLuc Pattyn30-Jul-07 8:37 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius30-Jul-07 8:39
professionalMichael Fritzius30-Jul-07 8:39 
GeneralRe: Serial To USB Communication Pin
Luc Pattyn30-Jul-07 9:03
sitebuilderLuc Pattyn30-Jul-07 9:03 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius30-Jul-07 9:18
professionalMichael Fritzius30-Jul-07 9:18 
GeneralRe: Serial To USB Communication Pin
Luc Pattyn30-Jul-07 8:02
sitebuilderLuc Pattyn30-Jul-07 8:02 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius30-Jul-07 8:37
professionalMichael Fritzius30-Jul-07 8:37 
GeneralRe: Serial To USB Communication Pin
Luc Pattyn30-Jul-07 8:40
sitebuilderLuc Pattyn30-Jul-07 8:40 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius30-Jul-07 9:06
professionalMichael Fritzius30-Jul-07 9:06 
GeneralRe: Serial To USB Communication Pin
Luc Pattyn30-Jul-07 9:17
sitebuilderLuc Pattyn30-Jul-07 9:17 
GeneralRe: Serial To USB Communication Pin
Michael Fritzius30-Jul-07 9:22
professionalMichael Fritzius30-Jul-07 9:22 
QuestionRuntime error with MS Word Pin
André Stroebel26-Jul-07 3:41
André Stroebel26-Jul-07 3:41 
AnswerRe: Runtime error with MS Word Pin
kubben26-Jul-07 4:22
kubben26-Jul-07 4:22 
GeneralRe: Runtime error with MS Word [modified] Pin
André Stroebel26-Jul-07 4:33
André Stroebel26-Jul-07 4:33 

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.