473,612 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
6 5107
"C a r l o s A n t o n i o" <carlvazpr?arro bażyahoo.comwro te in message
news:em******** ******@TK2MSFTN GP04.phx.gbl...
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.
You have at least a couple of options. You can search the web for the specs
of the protocol (Z Modem?) you are using with Hyperterminal and roll your
own solution. Or you can buy an ActiveX control or .Net class library with
file transfer support. Google is your friend - this product (which I know
NOTHING about) came up when I searched

http://www.softplatz.com/Soft/Develo...t-Control.html

Regards,
Will
www.ivrforbeginners.com
Apr 18 '07 #2
"C a r l o s A n t o n i o" <carlvazpr?arro bażyahoo.comwro te in
news:em******** ******@TK2MSFTN GP04.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 #3
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 #4
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_grierNOSP AM@.msn.comwrot e in message
news:uP******** ******@TK2MSFTN GP02.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 #5
"Carlos Antonio" <carlvazpr?arro bażyahoo.comwro te in message
news:%2******** ********@TK2MSF TNGP02.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 #6
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 #7

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

Similar topics

2
7257
by: Gerry Sutton | last post by:
Is it possible to automate and script the windows Hyperterminal utility with Python?
61
16228
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 simulation - display registers contents I tried to search con google with no success.
1
5792
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 (querying for info, etc..) The "results" will be sent from the hardware back to the console app. These results will appear on the console screen, then the user can type in another command. Any samples (or good reference links) of how to handle the...
1
4575
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 my program .
2
3906
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
2627
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, I can see the caller's phone number in my telephone's screen). I put my phone line into the LINE hub of my modem and test with HyperTerminal. Here is the AT command and the result: AT OK ATZ OK
7
1677
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. Thanks. Regards,
0
1909
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 do i send SYN via hyperterminal? If I type 'T' then using port monitor sw I can see that 54 is sent and the same for CR. But how do send SYN? Thanks in advance
1
6062
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 using AT commands which i got to send out using the hyperterminal.how do i make a c program to run through hyperterminal. cud anyone help me plzzzz. thanks, Rylan
3
6078
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 invoke hyperterminal? Plus can the program also input command to the hyperterminal which is connected to a modem to do some function? It would probably be easier to write the code to poke data down the COM port instead, but actually the...
0
8565
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8246
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8415
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7039
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6076
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5532
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4045
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.