Titanium ASC1 or ASC-1 Software Update Attempt

Caught it!
Just a bit ago I had an ASC-1 on the bench for testing. The ULN2003A 50V 7-ch darlington transistor array was replaced.
It was responsible for controlling the h-bridge signal from the MCU to the relays. No motor switching and the resulting motor/sensor failure.
Good fix. And setting on the bench on and idle.

The power flickered. When the juice came back on I noticed that my actuator was fully extended to the limit switch. That's a touch past 34 W.
I was freaked that the IC repair was a bust. In fact the mover fired up on it's own after the power glitch.
The receiver it was hooked up to was set for 55 W. The ASC-1 display showed that the counter was driven to "find" 55 W.
Curious, I sent the mover West. When it reached 0000. Signal came is strong. 55 W position stored in memory was 2750.
So I tuned the receiver to 127 W which is the 0000 reference. Then drove the dish negative 2750. 127 W signal popped in and was damned near perfect as far as signal strength.
So then I went to the resets menu and reset the position. 127 W then showed 0000. Drove it back to 55 W and all was cool.
This is the first time I actually caught and figured out what was happening.
All positions were stored correctly still. And I used a saved ASC-1 Loader file to lookup what positions were what.
So, there you have it.

EB. Trying to latch on to the logic. If East increases counts and West Decreases them. Same as me.
If the last dish movement was East. Triggering the sensor input manually will increase the counts? And opposite if the last movement was West?
My findings are that you always lose counts. Only if there is spurious noise in the sensor cable or a ratty reed switch with bouncy, noisy contacts could you gain counts.
A bit of "tuning" of the trigger voltage at the sensor input to lower the trip threshold has helped.
Depending on the length of sensor cable, the optocoupler seems to be saturated most of the time the reed contacts are closed.. Is it 12 V? Need to check that. Dropping the voltage of the LED in the opto. with a resistor divider as shown would shape the pulse to the MCU:
1795505358921.webp
Because I'm using an opto interuptor as my trigger with a 20 slot wheel at the output gear on the actuator. Positioning is rather accurate.
But initial testing showed fat, saturated pulses at the sensor inputs. Adding a voltage divider resistor after finding the resistance with a pot wired as a variable voltage divider. I was able to get very nice and equal duty cycle pulses.

If anyone is still tuned in. I'd be interested in finding out how many dead ASC-1's y'all have out there.
Besides the 2 working ones, I have 3 others that required replacing the NXP MC9S08 MCU. They sit blank and unprogrammed.
I bought the specific programmer for them. Not cheap. If I mind my manners I may be able to get what is needed to program them.
Making bricks a thing of the past. Botched firmware updates No problem. What? Shipping both ways, parts, solder and flux, IPA and Q-Tips.
Only the guts would be needed. Saving a lot on just shipping for that heavy sob.
Lets see....
 
I appreciate the comments. The problems you describe have already been addressed and described in detail in the first page of this thread in Version CF10.

Your report is from stock firmware, and we already addressed the position-loss problem. Our firmware saves the live actuator count in a checksummed EEPROM ring and restores it at boot. CF10 also boots parked at Welcome and ignores DiSEqC during the initial power-up window.

in CF10, Triggering the sensor input manually will increase the counts Or manually decrease the counts, depending on direction selected last.. This is tested and proven. It may also happen in stock firmware, but that was not investigated. If it does happen in stock firmware, the onscreen counter ignores it while the software records it.

My mid-move power-cut test verified that behavior on the dish. CF10 restored −248, two counts behind the last reported −246, and stayed parked until the DreamOne sent a fresh GOTO.

You can mess with hardware all day, but if the firmware needs edits or has defects, hardware adjustments will not help much.

And you cannot fix hardware defects with software. You may gloss or paste over them, but that is all....

Defects are defects. If the defects are not eliminated, then you still have defects. Software or hardware.

What's the full part number printed on the MCU and the make and model of your programmer. The firmware’s memory map matches the MC9S08PA60, but the chip marking should confirm it.
 
The attached ZIP is for the three ASC-1 boards where you’ve already replaced the MCU and the new chip is sitting there blank. The first test can be done on one of those boards with the programmer you bought. You can do the whole job from a PC without a Dreambox, plugin, or Python.

On a working ASC-1, there’s a small program in the chip called the bootloader. That’s what listens on the rear RS-232 port when you send a firmware update. A blank replacement chip has nothing there to answer the Loader. The ZIP gives you a file that puts both the bootloader and the ASC-1 operating firmware into the chip in one pass.

Here’s how I’d try the first board:
  1. Confirm the chip and programmer. The files were made for the MC9S08PA60. Please post the full marking on one replacement chip and the make and model of your programmer. That lets us confirm the match and give you the settings for the tool you actually own.
  2. Program one blank chip. Once we confirm the match, unzip the package and open the images folder. For a first test with the familiar Titanium firmware, I’d use ASC1-stock-fullchip.s19. Open that file in the chip programmer’s software, select the matching target, then program and verify it through the board’s BDM programming connection. If you want to start directly with our CF11 firmware, use ASC1-cf11-fullchip.s19 instead. Pick one file. Each is complete.
  3. Watch the first power-up. The expected front-panel message is “Updating Bootloader.” Let it finish, then switch the ASC-1 off and back on. This full-chip package has been tested in a simulator only. The first real test is whether that board starts up again and talks to your PC Loader.
  4. Put your saved positions back. The satellite table starts empty. Connect your usual RS-232 cable, open the ASC-1 Loader, and go to Satellite Setting → Read From File. Open your saved list, then choose Save To Device. Your list tells the controller that 55°W belongs at count 2750 on your dish. You still have to tell it where the dish is sitting now. On your installation, that means confirming the dish is physically at 127°W, resetting the position count there to 0000, and setting the east and west limits before using automatic moves.
The matching .bin files are copies of the same full-chip images in another format. The .s19 is the one to open in the chip programmer. The loose README is also inside the ZIP, and the Python files are for building and testing the images. Once the board boots and communicates, later firmware updates go through the normal RS-232 process.

Try it and see No guarantees.

Note:
On your Windows PC, right-click the ZIP and choose Extract All. You can skip the dev and meta-local folders. The Python scripts in there were used to prepare and test the firmware.

The folder you want is images. Once the number on your replacement chip is confirmed and the model of your programmer, open the programmer’s Windows software and use its file-open command to select ASC1-stock-fullchip.s19 for the Titanium firmware, or ASC1-cf11-fullchip.s19 for CF11. You only need one. Open it from inside the programmer software.

Your familiar ASC-1 Loader comes into play after the programmed board boots. That’s when you reconnect the RS-232 cable and send your saved satellite list back to the ASC-1.
 

Attachments

The asc1 plugin has all the features of the stock loader that needs to be installed in a computer. Flashing of the firmware, reloading and editing positions, setting or changing soft limits, and more can be done using the receiver.
asc1-plugin-menus_20261125004417.webp



The plugin also shows information about what has happened recently. Looking for errors? Look here.
CF15-Live-Status_20261125004220.webp
 
I have computers with real genuine RS232 ports. Most users do not have that as RS232 hardly exists anymore. Yet it is still used and will not completely go away soon. Windows needs to install files and firmware for a given usb to RS232 adapter. Linux, you usually just plug the usb to RS232 into the computer and it is immediately recognized. I find the Linux based receiver to work well with usb to RS232 devices.

Here is the dreamone being used to program the asc1:
asc1-update-firmware_20261125023817.webp


Might as well move the front panel into the plugin. A guy should not need to get off the couch to make an edit or adjustments. And a guy should not have to squint to see the menus. The system now becomes more enjoyable.
asc1-plugin-front-panel_20261125033034.webp
 
I thought a feature to set the counter would be nice. If the counts get off for some reason, the operator can set them to what is desired or needed. For me, a great maintenance feature. Shown in the screenshots, I have 76 counts for 89w, but only need 2.
asc1-set-count_20261126005226.webp

asc1-count-2_20261126005426.webp
 
Here is one that is very interesting. Let's use my actuator as an example. The stock Venture MA-818B36 36-inch ball-screw actuator is rated at 40 pulses per inch using its eight-pole magnetic wheel and reed switch. For most c band satellite dish system, this amount of pulses or counts per inch are good enough for dish alignment and individual satellite adjusting-calibrating. But what if we want more pulses? More resolution in the counting department?

A single pulse or single count consists of one open and one close of the reed switch. We can alter the ASC1 to read open as one count or pulse, and close as another count or pulse. This brings our pulses to 80 pulses per inch by doing absolutely nothing except editing the firmware. When the setting is set to fine as show, the pulse counts are doubled for your saved satellites, plus maximum asc1 counts go from 5000 to 9999. Indeed a fantastic feature for those that need it!

count-resolution-menu_20261126160422.webp

count-resolution-change_20261126160557.webp
 
I'll try to follow along. Flashing the firmware requires a programmer (BDM). For example, I imagine the connection diagram is displayed in the software itself, just like with all other devices, such as an SB6141.
But first, I need to make sure it's compatible with my board model, right?
Thank you.
 
The ASC1 already had a 9999 count capability. -4999 ~ +4999. If you doubled it we should have 20k counts :) With the negative number count you could set it up with negative numbers that increase going west and decrease going east. But once you get used to it, there's not much difference.
 
Probably the last thing to add: Run Dish Motor Without Counts.

There are times when tests need to be made of the dish motor itself. Maybe the dish is "stuck" and every time you try to move, the motor comes on, shuts down and throws some error that makes little to no sense. CF20 or version 20 allows the operator to run the dish motor without any counts or pulses.

This feature should be used with caution as it can destroy a satellite dish system if the motor is allowed to run unchecked. However, I consider it a very useful feature under the right conditions. All sorts of tests are possible with this feature. Shown below is the plugin menu for this feature. Note my current firmware is CF19 and will need to be upgraded.

asc1-run_motor-without-counts_20261128121903.webp
 
I found one more feature to implement: Share the dish mover between multiple receivers.

Granted we will have some limits to this. And one receiver will be the host. But we should be able to share the asc1 over LAN without much issue. Onscreen display of what the dish is actually doing and error reporting should be available to every receiver on the network.

Visual Diagram:
Shared Satellite Dish Control Network.webp


We could do similar with other dish movers. But we would not have much information about what the dish motor did or did not do.
Shared Dish Control_ ASC1 vs VBox_Gbox.webp
 
Tested to work!

I have successfully shared the asc1 with three receivers. The dreamone is connected directly to the asc1. Then I have a sf8008 and an osmio4k that share the asc1. Any receiver can move the asc1 to any position. Each receiver has some onscreen readout of the dish moving, and each receiver will receiver any dish moving errors. A very nice system. Something I have wanted for years.
 
This is the chip from my ASC1, which failed whilst I was flashing it, and I’ve never been able to get it working again. Do I need a programmer? Which programmer would you recommend? I only have a BDM.
 

Attachments

  • 20261201_204240.webp
    20261201_204240.webp
    150.3 KB · Views: 1
You do not need a separate programmer. On this chip the BDM is the programmer, as long as your BDM supports HCS08.

The chip:

The photo shows a Freescale/NXP MC9S08PT60 (64-pin QFP), from the HCS08 family. These chips are programmed through a single wire, BKGD, using Background Debug Mode (BDM). A failed flash almost never kills one. If BKGD is held low while the chip comes out of reset, it goes into background mode before any of its own code runs. That works however badly the flash went, so the chip can be erased and reprogrammed. If the failed flash left it locked ("secured"), a BDM can still mass-erase it, which unlocks it. Real damage to the chip would mostly come from electrical faults, not from a flash going wrong.

Check Your BDM:

"BDM" is used loosely. Many cheap BDM tools are made for car ECUs (MPC5xx/HC12/ColdFire) and don't support HCS08. You need one that lists HCS08/S08 support, such as:
USBDM: open source, cheap clones are easy to find, and it runs natively on Linux and Windows. (This is recommended).
P&E USB Multilink Universal / FX: the official tool, more expensive, Windows software.
OSBDM / OSJTAG: older open designs that also handle S08.

Hookup. On the standard 6-pin BDM header, pin 1 is BKGD, pin 2 is GND, pin 4 is RESET and pin 6 is VDD. Check whether the ASC1 board has that header or test pads for it. If not,you can wire to the chip directly; The datasheet shows which pin is BKGD on the 64-pin package. It's safest to power the board normally and let the BDM only sense the voltage.

Software and the image to write:
USBDM comes with its own flash programmer, and CodeWarrior or P&E PROG also work.
If you just wants the unit working, try the normal serial loader first and power-cycle the unit if it hangs. When I first flashed CF4, my asc1 froze on "Updating Bootloader" and a power-cycle brought it back. Now I am on CF20.
If the serial loader can't talk to it at all, the bootloader is probably gone. Then you have to write a full chip image (bootloader plus firmware) through the BDM. The firmware update .bin files are only for the serial loader and won't work for this.

You can get a full image by reading one out of a working ASC1 with the same BDM, if that unit isn't locked. Or use the full-chip image from the blank-MCU work we did earlier, which is still untested.

Confirm the BDM supports HCS08, connect it, mass-erase (this also unlocks the chip), write the full image, verify it, and power-cycle.
 
The asc1 plugin already in the feeds does most of it. The plugin is named asc1 and is located under extensions in receiver feeds.

What the plugin already does:
The firmware screen has a Recovery option for exactly this case: an update that was interrupted and left the ASC1 sitting in its bootloader, with a blank display and no response. Recovery skips the satellite backup (the main firmware isn't running to give one) and talks straight to the bootloader. It sends E and waits for the bootloader to answer P; after that, the normal flash runs.

So:
If the bootloader answers
, the chip is fine. Reflash over RS-232 through Recovery and no need for the BDM at all. This is the most likely result: an interrupted serial update normally leaves the bootloader intact, because the update rewrites the main firmware, not the bootloader.
If it says "bootloader did not answer" even after a power-cycle and a retry, then either the cable or port is bad, or the bootloader itself is gone. Only that second case needs the BDM.
What it can't tell apart. Silence from a bad cable and silence from a dead bootloader look the same to the plugin, so a 100% answer from the plugin alone cannot be guaranteed.

Rule out the cable first:
Loopback test.
At the ASC1 end of the cable, unplug it from the ASC1 and short pins 2 and 3 of the DB9. Open the port at 57600 8N1 in any serial terminal and type: every character should come back. That proves the port, the adapter and the wiring up to the ASC1.
Correct cable type. It must be the same cable that worked with Loader Editor 2.0. A null-modem cable where a straight one is needed, or the reverse, gives total silence.
Power-cycle the ASC1, then run Recovery in the plugin and choose the firmware file.

Notes:
Loopback passes and Recovery reaches the bootloader: reflash over serial, no BDM needed.
Loopback passes but the bootloader still doesn't answer after a power-cycle: Use the BDM with a full chip image, as in my last answer.
Loopback fails: Fix the cable or port first. Nothing about the chip can be judged yet.

One caveat:
All of this needs an Enigma2 receiver running our plugin with the ASC1 on its RS-232. If you only have the Windows Loader Editor, the loopback test still applies, but I can't say how Loader Editor handles an ASC1 stuck in its bootloader.

Days, Not Hours have been spent working with the asc1 and perfecting its firmware defects. A windows loader was originally supplied with the asc1 most likely because that is what most home computers have, and a Linux user usually has some experience needing something in Windows to run.

The recovery, except for what happened in CF4 which was not really a problem is the only issue I have had. CF4 was the first flash with previous versions being built and tested virtually with improvements or additions being added before a flash into the asc1 could be completed. This means I have flashed without issue at least 16 different versions as now I am on CF20.

Previously I used a Windows loader for the asc1 because that was what was available. The loader inside the enigma2 image for the asc1 is far superior to what was originally supplied with the asc1.
 
As mentioned earlier, and I think at the beginning of the thread, it was expected to have at least on flash misbehave or bad flash during development and testing. Provisions were made for that In The Plugin!

Find the Firmware update menu. Enter it and press the blue button on the remote. Verify the Cable and the Connection! You may need to download the usb serial drivers in feeds before the serial connection is realized in your fta receiver.

asc1-Firmware-update_20261202002108.webpasc1-recovery_20261202001337.webp

.
 
Back
Top