| | |
C# COM ports in Linux
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
Hey everyone,
we're still working trying to get Linux to communicate to our robot via an RS232 port. We added this code to the project in Mono:
We can't get anything sent out of our COM ports. We're not even sure if we're coding it correctly. Is ttyS0 (we've tried S0-Sf) what we should be putting in the code? Please help!!
thanks!
we're still working trying to get Linux to communicate to our robot via an RS232 port. We added this code to the project in Mono:
c# Syntax (Toggle Plain Text)
Using System.Ports.IO SerialPort ports = new SerialPort("ttyS0",19200,Parity.None, 8, StopBits.One);
We can't get anything sent out of our COM ports. We're not even sure if we're coding it correctly. Is ttyS0 (we've tried S0-Sf) what we should be putting in the code? Please help!!
thanks!
Last edited by Duki; Oct 17th, 2008 at 3:26 pm.
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.
-Edsger Dijkstra
-Edsger Dijkstra
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
Well, having the kernel support would be somewhat essential to your program, so it would make sense that you learn how to tell.
If you are sure you have ttyS0, thats a terminal running through a serial port, not the serial port itself.
If you are sure you have ttyS0, thats a terminal running through a serial port, not the serial port itself.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
![]() |
Similar Threads
- How to Configure Samba on RedHat Linux (*nix Hardware Configuration)
- What's better? Windows 2000 Server or Linux Server? (Windows Servers and IIS)
- Is Linux Gui (Getting Started and Choosing a Distro)
- How to get list ports in Linux (Java)
- substitute for conio.h in linux (C)
- Mono project brings .NET to Linux (*nix Software)
- vnc on linux, firewall shutdown command (*nix Software)
- Linux Audio Streaming (live!) using Ices and Icecast (*nix Software)
- Windows vs Linux (IT Professionals' Lounge)
- Red Hat Linux Webserver Configurations (*nix Software)
Other Threads in the C# Forum
- Previous Thread: Another Question
- Next Thread: textbox1 to textbox2
| Thread Tools | Search this Thread |
.net access algorithm array barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom customactiondata database datagrid datagridview dataset date/time datetime datetimepicker degrees development dll draganddrop drawing encryption enum event excel file filename files form format forms function gdi+ gis gtk hash httpwebrequest image index input install java label list listbox mandelbrot math mouseclick mysql operator outlook2003 path photoshop picturebox pixelinversion pixelminversion post programming radians regex remote remoting richtextbox server sleep socket sql statistics stream string table tables tcp text textbox thread time timer tutorial update usercontrol usercontrols validation visualstudio webbrowser webcam wia windows winforms wpf xml






