473,322 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Sending Text File by Serial Port in c#

33
Hi:
If I have a Text file (say sss.Txt);

How Can I send it using Serial Port (For Printing purposes) just like HyperTerminal with C#


Thanks
Aug 12 '08 #1
2 5857
Plater
7,872 Expert 4TB
Open SerialPort object
Open FileStream (or StreamReader, whichever)
Read in data from file
Write out data to SerialPort
Aug 12 '08 #2
Jetean
33
Open SerialPort object
Open FileStream (or StreamReader, whichever)
Read in data from file
Write out data to SerialPort

Thanks. I got it up and running.
Aug 13 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
1
by: minaalashokvijaya | last post by:
thanks a lot ! but i hav sorted that out now. now i hav to send what i have read to the parallel port. it is a string and i have to convert it to integer and then send it. Any ideas for...
1
by: cvschie | last post by:
Hi, I have a LED Sign with standard software to control messages (via serial port). Because the limitations of the software I want my own VB.net program. With a serial analyzer program, I see...
1
by: avanthik | last post by:
I am trying to send three bit patterns to the serial port, 1st bitpattern -> one out of 16 radio buttons(0-F in hexa) 2nd bit pattern -> one out of 16 check boxes (0-F in hexa) 3rd bit pattern ->...
6
by: terry | last post by:
Hi, I am trying to send a character to '/dev/ttyS0' and expect the same character and upon receipt I want to send another character. I tired with Pyserial but in vain. Test Set up: 1. Send...
0
by: Charles Crawford | last post by:
Hi, This apparently is a common problem and I've yet to read a solution that actually works for my specific situation. I have a Zebra RW220 printer that I connect to via Bluetooth connection...
0
by: =?Utf-8?B?Q2hhcmxpZQ==?= | last post by:
Hi, This apparently is a common problem and I've yet to read a solution that actually works for my specific situation. I have a Zebra RW220 printer that I connect to via Bluetooth connection...
1
by: akaley | last post by:
Hi, Iam sending mail by using mailx command..for other files it's working file,,But while sending txt files..some junk characters are coming in place of new lines.. my text file containg marking...
1
by: thanthan | last post by:
In the program, i'm sending "#ABCDE#" through serial port. From the receive side, as soon as we detect "#" character, we want to display "ABCDE" only on the screen without any "#". Here is the code...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.