473,545 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2668
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
2185
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 knowing how to receive it, is always a plus!). The thing is I've been searching for a USB API for VC++, and I can't seen to find any functions or...
3
4575
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 micro-controller chip had several pins, some of which were for output and some were for input. The crux of the project was to make the program set the ouput pins...
3
2232
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 can I receive or transfer DATA by COM 1 serial port ???
1
2649
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 checks once every millisecond to see if there is any data avaialable to read at theserial port. If so then reads it. The serial port is openedwithout...
0
2472
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 different hardware devices to transfer binary data to the application. The setup screen enables the user to select COM1 -- COM8 via combo boax for...
0
1460
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 then added it to a Rich Text Box showing the data in either Hex or Text as well as any control characters. The program works perfectly on Windows...
7
5370
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 upon data received via the serial port. If I run the serial port in the main form code, I can get data and, using public properties of the user...
2
3776
by: evle | last post by:
haw to read data from an Infrared Infrared Remote Control
0
1333
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 with me. I understand that i need to use Invoke method, because there is a different level of thread, so the update on the textBox is not valid.....
0
7659
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7811
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7760
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5975
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5334
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4949
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3455
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1019
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
709
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.