473,385 Members | 1,814 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,385 software developers and data experts.

Help in defining serial port parameters for data transfer

Hello,

I'm basicly not a programmer...
I found some C++ codes on the net that almost satisfy me needs, wich
is to communicate with an other device that sends data to me, wich I
have to receive and save into a file.

But here is the problem :

I have a copy of the MS-DOS KERMIT communication program.
When I use this program to show the settings it uses I get the
following list:

These settings seems to be ideal to connect to that other device I
have.
That device sends data over a serial cable to an other pc. On that
latter it saves the data received into a file.

But with the communication C++ codes/scripts I've found, I can see
there is communication but not fully functional as it should like
Kermit does.

Can you help me in defining com port settings based on the list of
settings I've got from Kermit ?

COM1
Local echo : OFF
Handshake character : none
Duplex : Full
Debug: OFF
Modem is ready: DSR is ON
No carrier detect : CD is OFF
CTS (Clear to send) is ON
Speed : 9600
Parity : NONE (8 bit data)
Flow Control : Xon/Xoff
Display : Regular 7 bit
Escape character : ˆ]
Terminal type : VT320
Sent Packet size (max) : 9024
Receive packet size (max) : 94
Start of packet size char : Send : ˆA , Receive: ˆA
End of packet size char : Send : ˆM , Receive: ˆM
Time Out : Send : 8 , Receive :5
Sent as is without protective prefixing
File Type : Binary
EOF mode : No CTRL-Z
Attributes packets : character set : ON
Date Time : ON
Length : ON
Type : ON
File char set : CP437
Transfer char set : Transparent

----------------------------

In fact to be honest I would somebody to help to write a whole script

It should open the com1 port - listen for incomming data - save that
data into a file. Once save it should reinitialise itself to listen
again to incoming data, etc...
Kind Regards for all the efforts in reading this post !!

Feb 28 '07 #1
5 2658
chapeau_melon wrote:
I'm basicly not a programmer...
I found some C++ codes on the net that almost satisfy me needs, wich
is to communicate with an other device that sends data to me, wich I
have to receive and save into a file.

But here is the problem :

I have a copy of the MS-DOS KERMIT communication program.
When I use this program to show the settings it uses I get the
following list:

These settings seems to be ideal to connect to that other device I
have.
That device sends data over a serial cable to an other pc. On that
latter it saves the data received into a file.

But with the communication C++ codes/scripts I've found, I can see
there is communication but not fully functional as it should like
Kermit does.

Can you help me in defining com port settings based on the list of
settings I've got from Kermit ?
No, sorry, we cannot. Defining port settings has nothing to do with
C++ language, you're totally off topic with this question.
[..]
----------------------------

In fact to be honest I would somebody to help to write a whole script
Again, this is totally off-topic here. Try asking in the newsgroup
for your operating system.
[..]
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Feb 28 '07 #2
In wich group should I ask my question then ?

Kind Regards

Feb 28 '07 #3
The program I'm trying to write is in C++ though ?

Feb 28 '07 #4
On Wed, 28 Feb 2007 07:55:00 -0800, chapeau_melon wrote:
In wich group should I ask my question then ?
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

--
Lionel B
Feb 28 '07 #5
chapeau_melon wrote:
The program I'm trying to write is in C++ though ?
So is minesweeper. Should minesweeper questions be valid here?
It's nice that your program is in C++, but this newsgroup is for
discussion of the C++ language as defined by the ISO Standard ISO/IEC
14882, which does not discuss serial ports and their parameters.

You might want to ask in a newsgroup dedicated to your platform. See

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9 for some
possible groups.

Feb 28 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Alray | last post by:
I need to send information through a USB port, so I can control certain machine on the other side. The data goes through a USB to serial cable, so I'm only interested in sending data (Though...
3
by: rusttree | last post by:
Many moons ago, I took a class in embedded control at school. The course focused on a micro-controller mounted on a small electric car that was programmed using simple C code. The...
3
by: Swatcat | last post by:
I have a device that send to my computer information by serial com port. The comunication parameters are: PORT: COM 1 Bits per second: 9600 Data bits: 8 Parity: None (0) Stop bits:1 How...
1
by: Srinivasa Ra via .NET 247 | last post by:
(Type your message here) I am writing an application that does lot of read/write's withcomputer's serial port. The application as a whole is workingfine. Current Approach: I have a Timer that...
0
by: David | last post by:
I am having trouble with "ACCESS DENIED" error messages in a VB.NET 2003 application when attempting to open serial comms ports. The application has 2 ports that connect via serial cable to 2...
0
by: Daniel | last post by:
Ive used the New Serial Port Namespace in Net Framework 2 to write a Serial Port Monitoring Application. Basically the program opens the serial port and listens for any data that is received. It...
7
by: davetelling | last post by:
I'm a newbie that is still struggling with OOP concepts & how to make things work they way I want. Using Visual C# Express, I have a form in which I added a user control to display a graph, based...
2
by: evle | last post by:
haw to read data from an Infrared Infrared Remote Control
0
by: Wanxi | last post by:
Hi everyone, I am testing one of the example -> <UsingTheSerialPort> at VB101SamplesBCL2. But there are some error which i don't know how to edit. I found some post that having the same problem...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.