Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

Turn an external device on and off using a modem. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Clocks, timers, relays, load switches

Comments on the article Comments on the article

When it becomes necessary to control an external device from a computer, there are usually many options for connecting it to LPT, COM, USB ports, which, however, require special adapters and software.

In addition, LPT and COM ports are usually absent on modern computers (especially laptops). The USB bus remains, but only a very qualified specialist can pair anything with it on their own.

If the task is very simple and does not require the transfer of large amounts of information and the issuance of complex commands (for example, you just need to turn something on or off), the USB option becomes completely unprofitable.

I propose a simple and interesting, in my opinion, solution. A telephone modem, external or built-in, is found in almost all modern computers, although with the development of ADSL technology and high-speed Internet it is practically not used. It can be easily adapted to solve a simple "on-off" task.

Turning an external device on and off using a modem
Ris.1

For example, let's connect an LED to the modem's "LINE" jack, as shown in fig. 1 Now, using any terminal program, such as the HyperTerminal included with Windows, you can turn this LED on and off.

To launch HyperTerminal, follow the path "Start-Programs-Accessories-Communications->HyperTerminal". First of all, the program will ask you to specify the name of the new connection. Set any and click "OK". In the next step, indicate to the program the COM port of the computer to which the modem is connected, and click "OK" again. If the modem is built-in, in the computer it is usually connected to a COM port that physically exists, but does not have an external connector.

Turning an external device on and off using a modem
Fig. 2

The figure shown in Fig. will help you determine this port. 2 window, which is opened by following the path Start-Settings-Control Panel-Phone and Modem-Modems.

When further setting up the connection, refuse the offer to change the port settings, leaving them as default, however, some Hyper Terminal program modes need to be changed. In its main window, press the screen button &, in the window that opens, go to the "Parameters" tab. Set their values ​​according to fig. 3 and click on the "OK" button

Turning an external device on and off using a modem
Fig. 3

Now you can start controlling the LED. We give the modem the command "Hook up", for which we type on the keyboard ATH1 (in Latin letters) and press the Enter key. The response should be an OK message. The modem's line circuit will close and the LED will turn on. To turn it off, you need to give the command ATNO - "Hang up the phone". On fig. Figure 4 shows what the exchange of information with the modem looks like in the main window of the terminal program.

Turning an external device on and off using a modem
Fig. 4

It is not necessary to issue commands to the AT modem by typing them manually. The automatic execution of the operations necessary for this can be included in a program of our own design, as is done in the demo program attached to the article.

The demo program can be downloaded hence.

Author: Yu. Shomnikov, village of Verkhovye, Oryol region; Publication: radioradar.net

See other articles Section Clocks, timers, relays, load switches.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Artificial leather for touch emulation 15.04.2024

In a modern technology world where distance is becoming increasingly commonplace, maintaining connection and a sense of closeness is important. Recent developments in artificial skin by German scientists from Saarland University represent a new era in virtual interactions. German researchers from Saarland University have developed ultra-thin films that can transmit the sensation of touch over a distance. This cutting-edge technology provides new opportunities for virtual communication, especially for those who find themselves far from their loved ones. The ultra-thin films developed by the researchers, just 50 micrometers thick, can be integrated into textiles and worn like a second skin. These films act as sensors that recognize tactile signals from mom or dad, and as actuators that transmit these movements to the baby. Parents' touch to the fabric activates sensors that react to pressure and deform the ultra-thin film. This ... >>

Petgugu Global cat litter 15.04.2024

Taking care of pets can often be a challenge, especially when it comes to keeping your home clean. A new interesting solution from the Petgugu Global startup has been presented, which will make life easier for cat owners and help them keep their home perfectly clean and tidy. Startup Petgugu Global has unveiled a unique cat toilet that can automatically flush feces, keeping your home clean and fresh. This innovative device is equipped with various smart sensors that monitor your pet's toilet activity and activate to automatically clean after use. The device connects to the sewer system and ensures efficient waste removal without the need for intervention from the owner. Additionally, the toilet has a large flushable storage capacity, making it ideal for multi-cat households. The Petgugu cat litter bowl is designed for use with water-soluble litters and offers a range of additional ... >>

The attractiveness of caring men 14.04.2024

The stereotype that women prefer "bad boys" has long been widespread. However, recent research conducted by British scientists from Monash University offers a new perspective on this issue. They looked at how women responded to men's emotional responsibility and willingness to help others. The study's findings could change our understanding of what makes men attractive to women. A study conducted by scientists from Monash University leads to new findings about men's attractiveness to women. In the experiment, women were shown photographs of men with brief stories about their behavior in various situations, including their reaction to an encounter with a homeless person. Some of the men ignored the homeless man, while others helped him, such as buying him food. A study found that men who showed empathy and kindness were more attractive to women compared to men who showed empathy and kindness. ... >>

Random news from the Archive

Qualcomm S7 and S7 Pro headphones 26.10.2023

Qualcomm Corporation has introduced new audio platforms designed specifically for headphones and speakers - Qualcomm S7 and S7 Pro Gen1. These innovative chips promise optimal use of artificial intelligence algorithms, thus providing the best audio experience.

Benefits of the new platforms include a six-fold increase in overall performance and more than a hundred times faster AI algorithm calculations compared to the previous generation.

Particularly noteworthy is the Qualcomm Expanded Personal Area Network (XPAN) technology and micro-Wi-Fi connectivity introduced in the S7 Pro model. This innovation extends indoor connectivity while also supporting lossless music streaming at up to 192 kHz. Unlike Bluetooth, which is limited to 48 kHz at a distance of up to 10 meters, the new XPAN technology breaks new ground.

Dino Bekis, vice president of Qualcomm, noted: “When we lowered power consumption and added Wi-Fi support to the headphones, we were able to stream 96 kHz audio over Wi-Fi while maintaining 10 hours of playback on a 50 mAh battery. This way, we can transmit lossless audio over Wi-Fi at the same power consumption as lossless audio over Bluetooth."

New Snapdragon Sound technologies will be integrated into new Qualcomm products such as Snapdragon 8 Gen 3 processors (for smartphones and tablets) and Snapdragon X Elite processors (for laptops), delivering a new level of wireless audio. Qualcomm partners, including brands such as Audio-Technica, Bose, Edifier, Fiio, Jabra, LG, Master & Dynamic, Shure and others, will provide compatible models for use with Snapdragon Sound technology.

Other interesting news:

▪ Sad music improves mood

▪ The retina does not change with age

▪ 4K display with ultra-wide color gamut

▪ Teleportation of solar energy

▪ Single-chip system Qualcomm Snapdragon 855 Plus

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ site section Voltage converters, rectifiers, inverters. Article selection

▪ article Good intentions are destined for you, but nothing is given to accomplish ... Popular expression

▪ article How cold is the universe? Detailed answer

▪ article Goose onion yellow. Legends, cultivation, methods of application

▪ article Running lights on a three-phase multivibrator. Encyclopedia of radio electronics and electrical engineering

▪ article Transistor voltage converter. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024