Re: Serialport does not return any data Programming Software Development by sknake … partial class frmSerial5 : Form { private List<SerialPort> ports; public frmSerial5() { InitializeComponent(); } …new List<SerialPort>(); string[] portNames = SerialPort.GetPortNames(); foreach (string s in portNames) { SerialPort sp = new SerialPort(s); sp… Serialport does not return any data Programming Software Development by therockey123 … get fired. [CODE]//serial port def SerialPort sp; //delegate to write to textbox …try { string[] sps = SerialPort.GetPortNames(); foreach (string pname in sps) { sp = new SerialPort(pname); sp.DtrEnable = true… Re: Serialport does not return any data Programming Software Development by sinnerFA Does your code throw any exceptions? I am looking @ your code and I do not see any port config info (baud, parity, etc...) Check this out: [URL="http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx"]MSDN system.io.ports.serialport[/URL] HTH's... SerialPort Programming issues Programming Software Development by limepebblez …) and this I got no problem sending as the function SerialPort.Write() I can use to send byte array of the… really don't know how to send scan code through SerialPort.Write as it only supports String, Byte array and Char… Re: SerialPort.GetPortNames() Programming Software Development by Software guy …. The code I used: [code] public void serialport() { foreach (string s in System.IO.Ports.SerialPort.GetPortNames()) { Console.WriteLine("{0}"… SerialPort.GetPortNames() Programming Software Development by Fritz.fx … the code. [CODE]foreach (string s in System.IO.Ports.SerialPort.GetPortNames()) Combobox1.Items.Add(s);[/CODE] SerialPort.DataReceived Event HELP Programming Software Development by Magic8Computing … System.IO.Ports Public Class Form1 Private mySerialPort As New SerialPort Private Sub ButtonShowPorts_Click(ByVal sender As System.Object, ByVal e… Recieve from SerialPort from Another Machine Programming Software Development by JOSheaIV … small little application that reads in the bytes from a SerialPort object. While this worked successfully, it was completely local. The…need to use the same logic to read from a SerialPort object that might be located on another machine. Is there…with. Can I use that IP in relation to the SerialPort to pull data from another source (the one device I… C# Remoting to access SerialPort? Programming Software Development by gumbald …; using System.IO.Ports; namespace C7_Serial_Server { class C7_Serial { internal static SerialPort SP { get; set; } static void Main(string[] args) { …: "); int SP_Location = Convert.ToInt32(Console.ReadLine()); SP = new SerialPort("COM" + SP_Location); SP.BaudRate = 57600; SP.Open(); … write ctrl+z to managed System::IO::Ports::SerialPort Programming Software Development by chamika.deshan …;Write("at"); // smsport type is System::IO::Ports::SerialPort ^smsPort;` gives me output OK At the end(after the…((char)26); this gives me error *'void System::IO::Ports::SerialPort::Write(System::String ^)' : cannot convert parameter 1 from 'char' to… vb.net serialport Programming Software Development by dre-logics i use vb.net 2012 and a pin terminal on serialport. Everthing works fine (sending en receiving), i want that the … System.Threading Public Shared Sub Main() Dim mySerialPort As New SerialPort("COM1") mySerialPort.BaudRate = 9600 mySerialPort.Parity = Parity.Even… Re: Recieve from SerialPort from Another Machine Programming Software Development by JOSheaIV … wireless transmitter. I have an IP Address, but sadly, the SerialPort object can accept that IP, it just complains that when… System.IO.Ports.SerialPort Question!! Programming Software Development by ecloney … 2008. I am sending data back and forth using the serialport module. I am wondering if there is a way to… Re: SerialPort Programming issues Programming Software Development by AndreRet Have a look at [URL="http://bytes.com/topic/visual-basic-net/answers/461567-using-function-keys-vb-net"]THIS[/URL] link. The coding will be something like - [CODE]Private Sub Form1_KeyDown( _ ByVal sender As Object, _ ByVal e As System.Windows.Forms.KeyEventArgs _ ) Handles MyBase.KeyDown If e.KeyCode = Keys.F2 Then MsgBox("F2 … Re: SerialPort Programming issues Programming Software Development by limepebblez [QUOTE=AndreRet;1394688]Have a look at [URL="http://bytes.com/topic/visual-basic-net/answers/461567-using-function-keys-vb-net"]THIS[/URL] link. The coding will be something like - [CODE]Private Sub Form1_KeyDown( _ ByVal sender As Object, _ ByVal e As System.Windows.Forms.KeyEventArgs _ ) Handles MyBase.KeyDown If e.KeyCode = … Re: SerialPort.DataReceived Event HELP Programming Software Development by ddanbe You could place the code from the example in the form load event and leave out th console.WriteLines. Re: Eject and re-detect serialport without unplugging it Programming Software Development by Begginnerdev … do what you wish. Private Function ResetSerialPort() As IO.Ports.SerialPort Try For Each sPort As String In IO.Ports….SerialPort.GetPortNames() Dim spMyPort As New IO.Ports.SerialPort(sPort) If spMyPort.IsOpen Then spMyPort… Re: Send correct ascii to serialport Programming Software Development by procomp65 … on these 2 terminal programs, what is sent to the serialport? BTW I am using VS2010 beta on Vista, could that… Re: Reading text from textbox and passing to serialPort Programming Software Development by Ketsuekiame … machine and then select the correct one for your device. `SerialPort.GetPortNames` will return a list of com ports to you… serialport in win32 console Programming Software Development by arunkp i need to send at or atx commands to mobile using c or c++.please tell me how to send it in win32 console?which fn &header file is used for this purpose? thanks in advance. Re: Recieve from SerialPort from Another Machine Programming Software Development by SalmiSoft I think you'll need to have some software running on the machine which physically has the serial port. You could write that software yourself, or buy it (eg http://www.advancedvirtualcomport.com/index.html). Re: Recieve from SerialPort from Another Machine Programming Software Development by JOSheaIV Yeah I assumed I might, any idea how I would got about though writing it? I know how to use the Serial Port, but is there anyway to pull that data from another machine using say an IP address? Re: Recieve from SerialPort from Another Machine Programming Software Development by SalmiSoft I would set the machine that has the physical serial port to be a server (use TcpListener?) and the remote machine to be a client (use TcpClient?). Then the client can send stuff to the server for the server to send to the device attached to the serial port, and the server can send back whatever it receives from the serial device. The server doesn'… Re: Recieve from SerialPort from Another Machine Programming Software Development by SalmiSoft I am lost. How is your device connected? Serial line? (RS232 or something else?). Network cable? Wifi? If the device is connected via a network cable or wifi, can you ping it? Re: Recieve from SerialPort from Another Machine Programming Software Development by rubberman If you are using physical serial ports (even via USB) then IP addresses are irrelevant, and not used. You need to connect to the correct COM: port. Re: Recieve from SerialPort from Another Machine Programming Software Development by JOSheaIV Oh man I totally forgot about this. The device is a scale, but instead of hooking up to a standard serial port (like to a PC), it's hooked up to what I think was a wireless transmitter for like WiFi. Unfortantly I have to go back on site to work with the device. So for now I am at a stand still. Re: write ctrl+z to managed System::IO::Ports::SerialPort Programming Software Development by chamika.deshan Can some one please shed some light? Re: write ctrl+z to managed System::IO::Ports::SerialPort Programming Software Development by Milton Neal smsPort->Write("Message" + Convert::ToChar(26).ToString()); Milton Re: write ctrl+z to managed System::IO::Ports::SerialPort Programming Software Development by gusano79 Have you tried [`"\x1A"`](http://msdn.microsoft.com/en-us/library/69ze775t(v=vs.80).aspx)? Re: System.IO.Ports.SerialPort Question!! Programming Software Development by ecloney well, its amazing that after 74 views nobody has a response to this, what turned out to be an easy problem. as i am new to vb.net the syntax briefly eluded me, but after some research i found that if i passed an argument as a byte array, it would not convert to ascii, as when i passed it a string (by default).