I am currently working on a project that involves a 4 Port A/V switch. This switch can be controlled via RS-232.
The computer that will interface with the switch runs Vista. I would like to create a sidebar gadget that has 4 buttons- 1 for each port on the switch. When the user presses the button, it switches to that port.
I have ...
Is there a way to tell whether the serial port has been opened successfully? The problem is that if the serial port not opened, no exception is thrown, and there is no way for users to know what the issue is.
Any input?
...
So, to open up a serial port and successfully transmit data from the balance through the serial port, i need to make sure that the settings on the serialPort object match the actual settings of the balance.
Now, the question is how do i detect that the connection hasn't been established due to the settings being different? No exception ...
This is a bit of an odd/specific question, but I'm having no luck, so maybe someone can help. I'm trying to build a microprinter using an Arduino and an Epson TM-T88II receipt/POS printer. The printer uses the ESC/POS system, but I can't get it to do anything at all from the Arduino. I'm doing things like:
#include <SoftwareSerial.h>
#...
How are RTSEnable and DtrEnable used? I am finding that some balances can communicate with my app but others can't even though the settings match. (baud rate, parity, data bits, stop bits and handshake)
The serial port settings are saved in the configurations file and the idea is to support different combinations of the possible setting...
I need to access the Serial Ports with Java in Windows Vista and FreebSD
is there any third party Solution to do that?
I understand Sun doesn't have a solution for that
...
Ok, everybody get in your wayback machine. I need to have a phone dial into my computer's 56k modem. I need my computer to have the modem "on" and have an active dialtone.
Here is why:
I have a sump pump alarm that will call me on a pump failure. It only works with a landline. I want to stop paying for my landline to save money and just ...
Greetings all.
I am looking for a way to communicate with RS232 serial COM port on windows. I have found 2 solutions on the net, one which is not totally free (introduces deliberate delays on the function) and another with limited capability on Windows. The latter can only write to a COM port on Windows, not read.
I can't look at the c...
I've been trying to learn a bit about how .Net (3.5) interacts with the Serial port through the System.IO.Ports.SerialPorts class by writing a small Windows Forms application to gather caller display data from an old external modem.
I've tested that the modem supports caller display; using Putty or Hyperterminal I can configure the mode...
I am using serial port to read the data off the scale that is attached to the thin client. In 99% of cases the data is read correctly - ie whatever is on the scale is what is captured by the application.
However, sometimes, it looks like data is dropped. For instance instead of 90.007 it will be read as 0.007. I am using ReadLine functio...
One of our customers has asked if we can interface with a serial magnetic card reader/encoder from a old EPOS system. The device has no make only the MW-3170 model number.
Does anybody know how I can communicate with the device? I am currently looking for a programming manual on Google, without much success.
...
I am reading data from serial port. The data comes off the scale. I am now using Readline() and getting data dropped even after I removed DiscardInBuffer().
What is the proper way to read the data from the serial port? There are so few examples online that I feel it's like some holy grail that no one has figured out.
Any help please?
...
I am required to talk back to the scale by making it PRINT programmatically.
The manual states that the print command is simply P ended with carriage return.
I use the following code:
Byte[] bytes = {80, 13};
_sp.Write(bytes,0,bytes.Length);
But every other time I get ES code back from the scale which means error but it still prints...
We make use of a java application that manages a pinpad via the serial port.
This works perfectly on windows with the Sun Comm.jar, the supplied dll and the properties file.
Now we are attempting to use this solution on Linux (actually it does run on various other flavours of linux out in the field) - with Ubuntu server mode.
After muc...
I am just reviewing some code I wrote to communicate with the serial port in C# on CF2.0.
I am not using DataReceived event since it's not reliable. MSDN states that:
The DataReceived event is not
gauranteed to be raised for every byte
received. Use the BytesToRead property
to determine how much data is left to
be read in the...
I am working with serial ports c#, CF 2.0
Can this function be trusted to return 0 when there is nothing to read?
while (_sp.BytesToRead > 0)
{
char[] buffer = new char[255];
int bytes_read = _sp.Read(buffer, 0, buffer.Length);
for (int i = 0; i < bytes_read; i++)
{
value += buffer[i];
}
}
ProcessValue(va...
I have tried using Readline() and data gets dropped, I tried using Read() but I am not sure how to have an error proof method of doing it, since I may get several packets one after another and I have no way of knowing that there is going to be another packet coming in. In between packets BytesToRead is 0, so I can't use it. When reading ...
How do i send ctrl-E through serial port MSComm1 ?
it should keep on passing ctrl-E....like for loop or do while loop..Here is my code:
MSComm1.CommPort = Convert.ToInt16(Settings.Default.PortName); SendKeys.Send("^(e)");
MSComm1.Settings = Settings.Default.BaudRate.ToString().Trim() + "," + Settings.Default.Parity.S...
I have a sensor that uses RS232 over USB to receive commands from a PC and send data to the PC.
The sensor needs to be reset (using the DTR line) before a command can be sent to it.
I tried to use the built-in .net serial port, but it does not seem to drive the DTR line as expected. I am beginning to wonder if the DTREnable property ac...
How to? I am using SerialPort.Write function and it looks like it works most of the time, but out of the blue it just stops working.
I also noticed that every time I send the command to print (even though I follow the manual, P with carriage return), I get string containing "ES" back - which according to the manual means error even thou...