Python script shutting down the station

 




Next up is my Python script for shutting down my contest station. That probably makes it sound like I’m running some massive, high-end operation—but in reality, I just really like things to work smoothly. I find it incredibly handy to simply double-click a Python shutdown icon on my desktop and have everything taken care of automatically. Some might call that lazy, overly dependent on a PC, or a bit geeky. I prefer the last option, and I’m fairly certain my dear wife would agree.

The reason I use a Python script for shutting the station down is the same reason I use one for startup: everything shuts down in the proper order. The shutdown process is essentially the reverse of the startup sequence, with a few hiccups that required some creative workarounds.

One issue was that certain applications—Win4Icom in particular—take noticeably longer to shut down than they do to start up, so I had to extend some of the timing in the script to allow for a clean exit. Another problem was that Win4Icom was not shutting down my Icom 7610 as it’s supposed to. As a result, the radio was staying powered on until the Wi-Fi plug turned off, cutting power to the supply and abruptly killing the radio. That obviously doesn’t allow for a proper shutdown sequence.

In the video, you’ll see that the Icom 7610 now shuts down cleanly at the very end of the shutdown process. I accomplished this by adding Python code that sends the appropriate Icom HEX command to power down the radio correctly.


 


Mike Weir, VE9KK, is a regular contributor to AmateurRadio.com and writes from New Brunswick, Canada. Contact him at [email protected].

AmateurLogic 213: RF Burns


AmateurLogic.TV Episode 213 is now available for download.

In another Tales From The Transmitter, George presents RF Burns. Emile is getting back on the air in the new shack. Mike asks Hey What’s That, WISP?

Download
YouTube


George Thomas, W5JDX, is co-host of AmateurLogic.TV, an original amateur radio video program hosted by George Thomas (W5JDX), Tommy Martin (N5ZNO), Peter Berrett (VK3PB), and Emile Diodene (KE5QKR). Contact him at [email protected].

Amateur Radio Weekly – Issue 404

Amateur Radio Weekly

New 60-Meter frequencies available as of February 13
It’s a bit confusing, as different rules apply to different segments of the band.
ARRL

Using VOCAP to predict HF propagation
This post goes deep into the technical choices we made to bring VOACAP — a serious propagation prediction system — to a simple web interface.
DXLook

Airplanes ‘lost’ during a geomagnetic storm
Disturbances in Earth’s ionosphere disrupted GPS tracking systems for airplanes flying over Europe.
Spaceweather.com

How the field radio landscape has changed
There’s never been a better time to jump in.
QRPer

Plans for solar farm leave Radio Ham facing detrimental loss of life’s work
“Last August I was the international winner of a meteor reflection contest organised by the Italian Radio Society.”
The Northern Times

Introducing FreeDV Reporter+
A real-time graph that separates Transmit (TX) and Receive (RX) events.
M0SPN

Hotel antenna for 2 Meter and 70 Centimeter Amateur bands
The Hotel Antenna is a clever space-saving vertical antenna design popular among VHF and UHF amateur radio operators.
DXR Electronics Bits

This Week in POTA
Another week, another flurry of radios in the cold, boots on the trail, batteries pushed to their limits, and logs filled with stories worth telling.
POTA News & Reviews

2015 Throwback: The science behind Joy Division’s Unknown Pleasures album cover
The album cover shows a series of radio frequency periods from the first pulsar discovered.
Scientific American

Video

RADE and FreeDV presentation
Open Source digital voice mode over HF using machine learning.
RATPAC

Intercept is a new application for RF signal intelligence
Decode pagers, 433MHz sensors, ACARS, aircraft tracking, and more.
Tech Minds

Get Amateur Radio Weekly in your inbox.

Sign-up here


Amateur Radio Weekly is curated by Cale Mooth K4HCK. Sign up free to receive ham radio's most relevant news, projects, technology and events by e-mail each week at http://www.hamweekly.com.

Ham College 132


Ham College episode 132 is now available for download.

Technician Exam Questions Part 19
T6A – Fixed and variable resistors, Capacitors, Inductors, Fuses, Switches, Batteries.
T6B – Semiconductors: basic principles and applications of solid state devices, diodes and transistors.

Ham College 132, titled “Technician Exam Questions Part 19,” focuses on topics T6A (Fixed and variable resistors, Capacitors, Inductors, Fuses, Switches, Batteries) and T6B (Semiconductors: basic principles and applications of solid-state devices, diodes, and transistors) as part of their technician exam pool. The hosts announce a double dose of questions in this episode and will be doubling up on episodes and questions in the coming months until the current technician study guide expires on June 30th, 2026 (0:40-0:52, 47:13-49:15).

Key topics and questions covered include:

Resistors
The electrical component that opposes the flow of current in a DC circuit is a resistor (2:32-3:57).
A potentiometer is often used as an adjustable volume control (5:24-6:20).
The electrical parameter controlled by a potentiometer is resistance (8:28-9:12).
Capacitors
A capacitor stores energy in an electric field (9:37-10:20).
A capacitor consists of conductive surfaces separated by an insulator (10:48-11:36).
Inductors
An inductor stores energy in a magnetic field (11:51-12:24).
An inductor is typically constructed as a coil of wire (13:06-13:42).
Switches
The function of a single pole double throw (SPDT) switch is that a single circuit is switched between one of two other circuits (13:59-15:01).
Component three in Figure T2 represents a single pole single throw switch (21:26-22:00).
Fuses
A fuse is used to protect other circuit components from current overloads (16:49-17:42).
Batteries
Nickel metal hydride, lithium-ion, and lead acid battery chemistries are all rechargeable (17:55-18:56).
Carbon zinc battery chemistry is not rechargeable (19:00-20:52).
Diodes
It is true that forward voltage drop in a diode is lower in some diode types than in others (28:09-29:30).
A diode allows current to flow in only one direction (30:06-30:52).
The cathode lead of a semiconductor diode is often marked on the package with a stripe (37:26-38:07).
Forward current causes a light-emitting diode (LED) to emit light (38:32-39:37).
The names for the electrodes of a diode are anode and cathode (41:15-42:18).
Transistors
A transistor can be used as an electronic switch (32:40-33:50).
A transistor can consist of three regions of semiconductor material (34:16-35:02).
An FET (Field Effect Transistor) has a gate, drain, and a source (35:26-36:24, 40:29-41:00).
A transistor can provide power gain (42:27-43:02).
The term that describes a device’s ability to amplify a signal is gain (43:11-43:53).
The names of the electrodes of a bipolar junction transistor are emitter, base, and collector (43:58-44:46).

Download
YouTube


George Thomas, W5JDX, is co-host of AmateurLogic.TV, an original amateur radio video program hosted by George Thomas (W5JDX), Tommy Martin (N5ZNO), Peter Berrett (VK3PB), and Emile Diodene (KE5QKR). Contact him at [email protected].

Python script energizes my contesting setup.


 

I have been working on some Python scripts to automate tasks that I would rather not do manually. The video above shows my contest station powering up from start to finish.

Why do this, you ask? The part of the amateur radio hobby that really interests me is CW contesting. Now that I am retired, I take part in four weekly one-hour “mini” contests and, in an average month, I spend two or three weekends CW contesting as well.

The programs I use need to be started in a specific order. For example, I must start my virtual port program (VSPE) first, and then start the radio and contest programs in a certain sequence. If this order is not followed, I get flooded with error messages.

Some say I over complicate things, but I am somewhat of a perfectionist and like everything set up just so. Python lets me achieve that with a single mouse click. There has been some fine-tuning of the Python code along the way. For example, my radio control program Win4Icom is delivered as a complete new program with each update, rather than as an add-on to the original, as the N1MM+ contesting program does. Because of this, I wrote the script for Win4Icom so that it always checks for and runs the highest revision number of the program; otherwise, it would just continue to load the same old version.

I also had to introduce delays between the startup of some programs. After VSPE starts, I delay Win4Icom by five seconds, because VSPE is still initializing in the background and Win4Icom would otherwise throw errors. I also added a step to minimize VSPE to the taskbar once it starts, so it does not sit on the screen. As Win4Icom starts, I added a 10-second delay while it powers up my Icom 7610 and sets up the COM port configurations for N1MM+. I found N1MM+ needs to wait for those steps to complete before it begins its own startup. Finally Reverse Beacon Network web page is setup to open with my call sign showing spots where it is heard. 

 Here's the sequence shown in the YouTube video:

  • WiFi smart plug powers on.

  • Astron power supply powers on seen in the lower left corner .

  • Raspberry Pi 4B boots (red power LED visible on desk), launching HamClock.

  • VSPE starts and minimizes to taskbar.

  • Win4Icom launches, powering on the Icom 7610.

  • Reverse Beacon Network loads/refreshes as HamClock continues to load.

  • N1MM+ Logger starts.

Next up: Python shutdown scripting (with its own challenges). I'm also 3/4 through a script to generate ADIF file of contest contacts that exports and auto-upload to N3FJP, Club Log, LoTW, CWops, and QRZ.com. Stay tuned!



Mike Weir, VE9KK, is a regular contributor to AmateurRadio.com and writes from New Brunswick, Canada. Contact him at [email protected].

2026 NAQP contest

 


The January NAQP is always a contest I look forward to. It starts at 2:00 PM local time, and my plan was to operate for about eight hours of the ten-hour event. This contest is always well attended, and with the maximum power limited to 100 watts, everyone is on a level playing field.

As always, I reviewed the previous year’s results, the bands I used and when, and my balance between running and search-and-pounce. Last year, 10 through 40 meters were all open and I made good use of those bands. This year was quite different — 10 meters was poor and I spent only a short time there. The best band turned out to be 20 meters, followed by 15 meters and then 40 meters. I knew going in that solar conditions were not going to be as favorable as last year.

The contest started off a bit slow, and I initially wondered if many operators had seen the predicted solar conditions and decided to sit this one out. Like last year, I spent about 95% of the contest running, and things did begin to pick up later in the afternoon. My highest hourly rate was 115 contacts, and three hours in, it was time for dinner. I was very pleased to have logged 300 contacts by that point.

After dinner, however, that’s when things really went downhill. Before the break, the Kp index had been holding steady at 3 and the Bz index was around −6 to −8. After dinner, the Kp jumped to 6 and the Bz index dropped as low as −19. I was wrapping up my time on 20 meters and transitioning to 40 meters as evening set in, but under these new solar conditions my hourly rate dropped from around 100 contacts to barely 25.


 

The deteriorating band conditions brought severe QSB  stations would be there one moment and completely gone the next. The combination of high Kp and strongly negative Bz also made CW signals sound as though they were gurgling underwater. Given these conditions, I decided to pull the plug at 8:00 PM local time and call it a day.


Mike Weir, VE9KK, is a regular contributor to AmateurRadio.com and writes from New Brunswick, Canada. Contact him at [email protected].

ICQPodcast Episode 474 – New Radio Shack Additions

In this episode, we join Martin Butler M1MRB, Chris Howard (M0TCH), Frank Howell (K4FMH) and Leslie Butterfields (G0CIB) to discuss the latest Amateur / Ham Radio news. Colin Butler (M6BOY) rounds up the news in brief, and the episode's feature is New Radio Shack Additions.

We would like to thank our monthly and annual subscription donors for keeping the podcast advert free. To donate, please visit - http://www.icqpodcast.com/donate


Colin Butler, M6BOY, is the host of the ICQ Podcast, a weekly radio show about Amateur Radio. Contact him at [email protected].

Subscribe FREE to AmateurRadio.com's
Amateur Radio Newsletter

 
We never share your e-mail address.


Do you like to write?
Interesting project to share?
Helpful tips and ideas for other hams?

Submit an article and we will review it for publication on AmateurRadio.com!

Have a ham radio product or service?
Consider advertising on our site.

Are you a reporter covering ham radio?
Find ham radio experts for your story.

How to Set Up a Ham Radio Blog
Get started in less than 15 minutes!


  • Matt W1MST, Managing Editor