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

Emulate HyperTerminal

Hello,

I have to submit a file via HyperTerminal using my PC's internal modem on a
daily basis. Does anybodoy know how to accomplish this in VS2005? Any
language is good, VB preferred. Thanks.
Regards,
C a r l o s A n t o n i o
Apr 18 '07 #1
7 5882
Recommend you to create a windows service and schedule it for the regular
time that you want to run.

HTH
--
Every thing is perfect, as long as you share!!!
"C a r l o s A n t o n i o" wrote:
Hello,

I have to submit a file via HyperTerminal using my PC's internal modem on a
daily basis. Does anybodoy know how to accomplish this in VS2005? Any
language is good, VB preferred. Thanks.
Regards,
C a r l o s A n t o n i o
Apr 18 '07 #2
Chakravarthy,

Why would you want to create a service that may run for a few seconds in a
24-hour period?

Best idea would be to create an applicating & let Task Schedule handle the
time when it runs. At lease this way you are not using pointless Windows
resourses running a service

--
Newbie Coder
(It's just a name)

"Chakravarthy" <ds******@india.comwrote in message
news:1E**********************************@microsof t.com...
Recommend you to create a windows service and schedule it for the regular
time that you want to run.

HTH
--
Every thing is perfect, as long as you share!!!
"C a r l o s A n t o n i o" wrote:
Hello,

I have to submit a file via HyperTerminal using my PC's internal modem
on a
daily basis. Does anybodoy know how to accomplish this in VS2005? Any
language is good, VB preferred. Thanks.
Regards,
C a r l o s A n t o n i o


Apr 18 '07 #3
"C a r l o s A n t o n i o" <carlvazpr?arrobażyahoo.comwrote in
news:em**************@TK2MSFTNGP04.phx.gbl:
Hello,

I have to submit a file via HyperTerminal using my PC's internal modem
on a daily basis. Does anybodoy know how to accomplish this in
VS2005? Any language is good, VB preferred. Thanks.

What protocol are you using? Xmodem? Z-Modem? Straight ASCII, etc?

..NET 2.0 has a Serial Port class, but I don't think it handles file
transfers ... you'll need a 3rd party class if you're using some sort of
file transfer protocol.
Apr 18 '07 #4
Hi,

By "submit" do you mean to implement an error-checked file transfer (via
modem or direct serial connection)? If so, I have examples of this in my
book (see below). The examples that I have employ my XMCommNET control,
derived from the built-in SerialPort class. It uses XMODEM/CRC (or
checksum). If you need something like Zmodem, I suggest SaxComm 2005
(www.sax.net). Automating the process involves knowing the dialing, logon-
and authentication process, which varies from system to system.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Apr 18 '07 #5
By "submit" I mean I create a text file with code i wrote. Once it is
created, I click on START, ALL PROGRAMS, ACCESORIES, COMMUNICATIONS,
HYPERTERMINAL...

Then I open the connection, dial-it and when i'm connected i send the file
to the remote computer. what i want to do is to code an applicaton that i
may be able to execute with the Task Scheduler and perform thi operation
without human intervention. I do not now nothing about protocols or Zmodem
and all that stuff. I just want to be able to dial, connect send the file,
disconnect and send myself a confirmation e-mail.

Regards,
Carlos
I just go to
"Dick Grier" <dick_grierNOSPAM@.msn.comwrote in message
news:uP**************@TK2MSFTNGP02.phx.gbl...
Hi,

By "submit" do you mean to implement an error-checked file transfer (via
modem or direct serial connection)? If so, I have examples of this in my
book (see below). The examples that I have employ my XMCommNET control,
derived from the built-in SerialPort class. It uses XMODEM/CRC (or
checksum). If you need something like Zmodem, I suggest SaxComm 2005
(www.sax.net). Automating the process involves knowing the dialing,
logon- and authentication process, which varies from system to system.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.

Apr 20 '07 #6
"Carlos Antonio" <carlvazpr?arrobażyahoo.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
By "submit" I mean I create a text file with code i wrote. Once it is
created, I click on START, ALL PROGRAMS, ACCESORIES, COMMUNICATIONS,
HYPERTERMINAL...

Then I open the connection, dial-it and when i'm connected i send the file
to the remote computer. what i want to do is to code an applicaton that i
may be able to execute with the Task Scheduler and perform thi operation
without human intervention. I do not now nothing about protocols or
Zmodem and all that stuff. I just want to be able to dial, connect send
the file, disconnect and send myself a confirmation e-mail.
That's a hokey and brittle way of solving a problem. To pursue you'd need to
launch hyperterminal and then send window messages to controls. You need to
use a tool like Spy++ to determine the IDs of the controls which are
necessary to get handles that you'd use to send messages.

Regards,
Will
Apr 20 '07 #7
Hi,

What I said applies. I have example code that sends and receives simple
(non-error corrected) files. These are more complex than error-corrected
file transfers for two reasons. 1, you have no way to know if the data have
been received correctly (obvious?). 2, you have to make some assumptions
about how long it takes to send the data (and for it to be received)... You
cannot just blast it out and hope.

Certainly, you could use TaskScheduler to start your program. You also
could simply write your program to set its own schedule. This program could
be a standard desktop applicaton (add to the Startup group, perhaps), or it
could be a written as a Windows Service.

The devil is in the details. Nothing you want to do is difficult
(sheduling, dialing and monitoring the connection, log-in (which, btw, is
the trickiest part), sending the file, sending an email and either exiting,
or waiting for the the next sheduled time to start the process again.
Getting it together might take a few hours, days, or weeks, depending on
"stuff."

Personally, I might do this as a Windows Serivce, perhaps. It could be set
to auto-start, and simply run in the background.

Task Scheduler is a Windows Service that will start up a standard
applicaton, so you could actually use it more simply than writing your own
service. So it is your choice.

You cannot automate HyperTerminal for this purpose, in any reasoable way.
The only "good way," IMO is to write your own application that does what you
want. If it is as simple as you state, I suspect that it might take me a
day to write and test -- so you might want to plan on spending a little more
time, and effort, than that.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Apr 20 '07 #8

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

Similar topics

2
by: Gerry Sutton | last post by:
Is it possible to automate and script the windows Hyperterminal utility with Python?
61
by: /* frank */ | last post by:
I have to do a homework: make a CPU simulator using C language. I have a set of asm instructions so I have to write a program that should: - load .asm file - view .asm file - do a step by step...
1
by: VB Programmer | last post by:
I want to create a custom console application that is similar to HyperTerminal. Given an ip/port it will connect via TCP and allow the users to type commands to a certain piece of hardware...
1
by: Cc | last post by:
hi, i would like to call hyperterminal function from vb.net, how do i do that? for example I using hyperterminal to transfer file between pc through modem, so now i would like to controll it in...
2
by: Dzemal Tipura | last post by:
I need control that work like HyperTerminal made in vb 2003 or 2005 is there anything like that? thx
1
by: dinh1410 | last post by:
I've read many material and all your direction in this forum, but I still can't capture the caller id. I use SmartLink 56TS V.90 & X2, and my phone line is caller id enabled (when people call me,...
7
by: C a r l o s A n t o n i o | last post by:
Hello, I have to submit a file via HyperTerminal using my PC's internal modem on a daily basis. Does anybodoy know how to accomplish this in VS2005? Any language is good, VB preferred. ...
0
by: max232 | last post by:
Guys, I'm trying to send some stuff to a remote device via RS232. Before coding it I want to test the string is sent and received OK via Hyperterminal. The string is T or 16 54 0D in hex. But how...
1
by: rylan365 | last post by:
hi Ppl, I'm doing a project wherein i got to run a c program to read a text string from a cell phone.the cell phone is connected via data cable and my c program has to read an incoming message...
3
by: calvinLYP | last post by:
Is it possible to write a program to invoke the hyper terminal? In the sense the program will allow user to enter phone number(maybe plus some others parameters like data bits,baud rate) before it...
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.