¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: MT4BB Halting

 

¿ªÔÆÌåÓý

good thinking.? pretty much exactly what Jack Ganssel said in the OP link

I hope everyone will read this and take a few lessons.? Jack is absolutely the premiere of embedded system programming, he has a lot of great stories.

(every bug I make, has been made before, somewhere...)

Clifff K6CLS CM87

On 2021-10-18 16:02, vhsproducts via groups.io wrote:


The ATMEGA has a watchdog timer built in. Which should be just fine for
detecting hung code.
One would think so, wouldn't one? Byon could doubtless address that better, but the illusive hanging condition does not seem to fit into definition of hanging code as we seem to view it. This is kind of a Loch Ness monster kind of thing, a rare problem, and once we come running to see it, it ducks its little head back under the water! If we could see it happen, we would be a lot better off.

One other way we have dealt with this is to use one of our DTMF receiver/decoders to force a commanded reset:?? As my mentor taught me many years ago, "there is no problem that can't be solved with brute force and ignorance!" I have plenty of both.?

73,

Allen


-----Original Message-----
From: David Schultz, KC5WSV <david.schultz@...>
To: [email protected]
Sent: Mon, Oct 18, 2021 3:38 pm
Subject: Re: [TinyTrak] MT4BB Halting

On 10/18/21 7:31 AM, vhsproducts via groups.io wrote:
> The problem with having a TT4-based watchdog timer is that the ATMEGA
> chip seems to be the thing that hangs, so depending on the code to run
> in the chip that is locked up is a no-go.

The ATMEGA has a watchdog timer built in. Which should be just fine for
detecting hung code. Not the greatest which reminds me of a web page I
ran across years ago:




--

David Schultz






Re: MT4BB Halting

 

All my satellites and other APRS projects (and TT4 modules) use an external
watchdog timer made from a simple 555 timer chip. I just set the RC to
time out in 90 seconds. And then the restart RC to about 3 seconds. The
555 timer output powers the TT4.

Then I put an NPN transistor across the timing capacitor who's base is
driven from the PTT line. THen I assure that the programming of the telemetry
is once every minute. As long as the telemetry (or any other packet) keys
the PTT, then the 555 never times out. But if the CPU locks up, then there
will be no tgransmissions and no PTT and the 555 will time out and remove
power for 3 seconds. The 555 timer has enough load drive cpapability that
I actually power the TT4 from the 555 output (for the small satellites).

Of course there are CPU hangups that could transmit at too high a rate, but
on the small satellites, I assume that too high a rate would run down the
satellite battery in a few orbits and get a power cycle that way...

Of course, for terrestrial use, a 1 minute telemetry is too much for the APRS
channel, but maybe 10 minus will do. BUT THEN we are talking about a
very-very long RC time constgant, and I would not trust a 1000 uF
electrolytic and
1 meghom or greater RC timer to be reliable?

PCSAT now going on 20 years and never locked up (though it coiuld be being
reset every hour or so, who knows. It dies in the dark and wakes up
35 minutes later.

Bob
On Mon, Oct 18, 2021 at 8:31 AM vhsproducts via groups.io
<vhsproducts@...> wrote:

The problem with having a TT4-based watchdog timer is that the ATMEGA chip seems to be the thing that hangs, so depending on the code to run in the chip that is locked up is a no-go. I have considered an extra timer based on a PIC to periodically restart the TT4 chip ( It does not take long to reboot) so that it will still automatically essentially push the reset switch on pin 9 of the TT4 chip, and not be dependent on the TT4 itself. Compton's use of an external timer seems to validate the approach. I don't know if having a timer to intermittently reset the TT4 actually prevents the mysterious hanging condition, or if it just allows recovery in the rare instance of a hangup.

73,

Allen AF6OF


-----Original Message-----
From: Barry L. Lankford <BarryL@...>
To: [email protected]
Sent: Sun, Oct 17, 2021 11:08 pm
Subject: Re: [TinyTrak] MT4BB Halting

If you are OK with the fixed periodic reboot solution, the following
might still be useful in the future. Google "Watchdog Timer," the
time-honored, last-ditch method of dealing with many impossible-to-find
(and yet-to-be-experienced) bugs.

I once took over a bad project where the original designer (and also its
programmer) had included a watchdog function but put the code to
periodically clear the watchdog counter inside an interrupt routine
instead of in-line with the main program path. So, when the main
program somehow got out in the weeds, the timer service interrupt would
push the "out in the weeds" program counter onto the stack, jam in the
address of the interrupt service routine, which would then reset the
timer preventing it from ever timing out. The interrupt service code
would then reach the end of the routine and the return from the routine
would pop the old "out in the weeds" program counter location off the
stack and the program would jump right back out into the weeds, solving
NOTHING. Don't do it that way!

Unfortunately, AFAIK, we still don't have access to the source so it'd
be difficult to add some elements of a watchdog timer function to the
TT4 code. I think there are some one-chip hardware watchdog timer
solutions now. Might be worth a look, but I've been out of that level
of design for several years, so I'm not familiar with a lot of the newer
ICs. Maybe you could dead-bug the chip, connect it to suitable circuit
nodes with wire-wrap wire and be done with it. If "dead-bug" and
"wire-wrap" are unfamiliar to the younger folks, Wikipedia them
(wire-wrap is actually referenced in the wiki article about dead-bug).
I think the techniques are still useful and the dead-bug method is very
durable.


Barry
N4MSJ


On 10/17/2021 9:10 PM, Compton wrote:
On Mon, Oct 18, 2021 at 12:45 PM, David Schultz, KC5WSV wrote:

Putting one of the problem systems in a location where it was easier
to troubleshoot when it failed would probably help a lot.

Done that. Found nothing. The timer work around works. Not worth
spending any more time on the issue.

--
Compton
VK2HRX
Sydney, Australia





Re: MT4BB Halting

 


The ATMEGA has a watchdog timer built in. Which should be just fine for
detecting hung code.
One would think so, wouldn't one? Byon could doubtless address that better, but the illusive hanging condition does not seem to fit into definition of hanging code as we seem to view it. This is kind of a Loch Ness monster kind of thing, a rare problem, and once we come running to see it, it ducks its little head back under the water! If we could see it happen, we would be a lot better off.

One other way we have dealt with this is to use one of our DTMF receiver/decoders to force a commanded reset:?http://byonics.com/dtmf? As my mentor taught me many years ago, "there is no problem that can't be solved with brute force and ignorance!" I have plenty of both.?

73,

Allen


-----Original Message-----
From: David Schultz, KC5WSV <david.schultz@...>
To: [email protected]
Sent: Mon, Oct 18, 2021 3:38 pm
Subject: Re: [TinyTrak] MT4BB Halting

On 10/18/21 7:31 AM, vhsproducts via groups.io wrote:
> The problem with having a TT4-based watchdog timer is that the ATMEGA
> chip seems to be the thing that hangs, so depending on the code to run
> in the chip that is locked up is a no-go.

The ATMEGA has a watchdog timer built in. Which should be just fine for
detecting hung code. Not the greatest which reminds me of a web page I
ran across years ago:




--

David Schultz






Re: MT4BB Halting

 

On 10/18/21 7:31 AM, vhsproducts via groups.io wrote:
The problem with having a TT4-based watchdog timer is that the ATMEGA chip seems to be the thing that hangs, so depending on the code to run in the chip that is locked up is a no-go.
The ATMEGA has a watchdog timer built in. Which should be just fine for detecting hung code. Not the greatest which reminds me of a web page I ran across years ago:




--

David Schultz


Re: MT4BB Halting - RFI and power

 

The chip is for TTL to RS232 for the serial port.
Once you use the erial port to configure the digi,
then the serial port at a digi is not likely used...
Unless you are using a CPU to send the various telemetry
items via the serial port.
Bob

On Mon, Oct 18, 2021 at 6:35 PM Compton <comptonallen@...> wrote:

All 4 that we have are used as digis.
All 4 are set to Tx their DC voltage so we can monitor the status of power supplies, back up generators, solar panels, & batteries. We use AGM batteries and can usually determine the state of charge of the battery and wether is is being charged etc.
2 are used as trackers with a GPS connected so we can located the portable repeaters in trailers.
If we remove this chip would we lose any functionality? It must be in there for a reason.
--
Compton
VK2HRX
Sydney, Australia


Re: MT4BB Halting - RFI and power

 

All 4 that we have are used as digis.
All 4 are set to Tx their DC voltage so we can monitor the status of power supplies, back up generators, solar panels, & batteries. We use AGM batteries and can usually determine the state of charge of the battery and wether is is being charged etc.
2 are used as trackers with a GPS connected so we can located the portable repeaters in trailers.
If we remove this chip would we lose any functionality? It must be in there for a reason.
--
Compton
VK2HRX
Sydney, Australia


Re: MT4BB Halting - RFI and power

 

All of my Projects at the Naval Acadmy and our satellite designs, PSAT2
(on orbit) use the MTT4B basic system, but the first thing we do is remove
the MAX232 chip since its internal buck/boost converter to get
RS232 level generates too much RFI for use in a weak signal system.

We interface to other stuff at TTL levels. If used as a tracker, I;d
deflinately
pull the MAX232 chip after programming, though I guess if it is a tracker
only, then it does not need to hear weak signals anyway.

Oh, removing the MAX232 chip also saves about 8 mA which is very usefdul
on a cubesat.

CAVEAT! This is all from memory and could be erroneous.
Bob, WB4APR

On Sun, Oct 17, 2021 at 8:26 PM vhsproducts via groups.io
<vhsproducts@...> wrote:

Compton,

Why not reset the timer more often? (Every day?) Are you finding that once a week is enough to keep the units running reliably? Our problem is not being able to replicate the hanging complaint in a TT4 or an MTT4BT. I recently found that the MAX232 chip has a non-documented problem that occasionally causes the chip to lock up, overheat, and draw a bunch of excess power ( Google "MAX232 overheating" and you will see that the problem with the chip has been going on for years with no satisfactory explanation) I hoped I could find someone who has consistent lock-up to see if pulling the MAX232 chip solved the problem...of course, this would need to be in a digipeater or similar application where the serial ports are not in use during operation. When the MAX gets hot, it may start sending gibberish to the TT4 chip. I like your timer solution, but I wish it was not necessary! If you get to one of your remote units, can you see if pulling the MAX chip makes any difference?

73,

Allen


-----Original Message-----
From: Compton <comptonallen@...>
To: [email protected]
Sent: Sun, Oct 17, 2021 3:06 pm
Subject: Re: [TinyTrak] MT4BB Halting

[Edited Message Follows]
I am in a group in Sydney that uses 4 of these. We experence the same issue. We ended up fitting a timer that turns the power on/off. We set the time to do this every Tue at 2AM. If they happen to go off air during the week then the timer will revive them on Tues at 2AM. Yes, its an annnnoying porblem but the timer does work as a good work around. We are suspicious of RF getting into them that causes the hang up to occur. Seems to occur in the 2-3 month time period but we can see no pattern to it.


Allen and Byron at Byonics are aware of the issue.

This is the timer we use:
--
Compton
VK2HRX
Sydney, Australia


Re: MT4BB Halting

 

Watchdog timers are awesome and easy to implement internally in most any micro.? Here is an external one in an old-fashioned dip:

As Barry pointed out, you can deadbug it by gluing it upside down with epoxy or such, and soldering to the pins in the air.? However, the watchdog needs a periodic reset within its timeout window, and the firmware needs to provide this on a pin, or some signal on the board needs to be tapped that is fast enough to keep the WD happy, yet stops toggling when the system hangs.? Not something that is generally added after the fact.

Also, there are system latchups that require a power cycle to clear.? The silicon structure can get an scr-like trigger from static zaps, rf, or whatever, and a reset will not clear it.? For a remote install, a timer cycling power at midnight is a pretty good plan, and easy to implement.

gil

----- Original message -----
From: "vhsproducts via groups.io" <vhsproducts=[email protected]>
Subject: Re: [TinyTrak] MT4BB Halting
Date: Monday, October 18, 2021 5:31 AM

The problem with having a TT4-based watchdog timer is that the ATMEGA chip seems to be the thing that hangs, so depending on the code to run in the chip that is locked up is a no-go. I have considered an extra timer based on a PIC to periodically restart the TT4 chip ( It does not take long to reboot)? so that it will still automatically essentially push the reset switch on pin 9 of the TT4 chip, and not be dependent on the TT4 itself. Compton's use of an external timer seems to validate the approach. I don't know if having a timer to intermittently reset the TT4 actually prevents the mysterious hanging condition, or if it just allows recovery in the rare instance of a hangup.

73,

Allen AF6OF


-----Original Message-----
From: Barry L. Lankford <BarryL@...>
Sent: Sun, Oct 17, 2021 11:08 pm
Subject: Re: [TinyTrak] MT4BB Halting


If you are OK with the fixed periodic reboot solution, the following
might still be useful in the future.? Google "Watchdog Timer," the
time-honored, last-ditch method of dealing with many impossible-to-find
(and yet-to-be-experienced) bugs.

I once took over a bad project where the original designer (and also its
programmer) had included a watchdog function but put the code to
periodically clear the watchdog counter inside an interrupt routine
instead of in-line with the main program path.? So, when the main
program somehow got out in the weeds, the timer service interrupt would
push the "out in the weeds" program counter onto the stack, jam in the
address of the interrupt service routine, which would then reset the
timer preventing it from ever timing out.? The interrupt service code
would then reach the end of the routine and the return from the routine
would pop the old "out in the weeds" program counter location off the
stack and the program would jump right back out into the weeds, solving
NOTHING.? Don't do it that way!

Unfortunately, AFAIK, we still don't have access to the source so it'd
be difficult to add some elements of a watchdog timer function to the
TT4 code.? I think there are some one-chip hardware watchdog timer
solutions now.? Might be worth a look, but I've been out of that level
of design for several years, so I'm not familiar with a lot of the newer
ICs.? Maybe you could dead-bug the chip, connect it to suitable circuit
nodes with wire-wrap wire and be done with it.? If "dead-bug" and
"wire-wrap" are unfamiliar to the younger folks, Wikipedia them
(wire-wrap is actually referenced in the wiki article about dead-bug).
I think the techniques are still useful and the dead-bug method is very
durable.


Barry
N4MSJ


On 10/17/2021 9:10 PM, Compton wrote:
> On Mon, Oct 18, 2021 at 12:45 PM, David Schultz, KC5WSV wrote:
>
>? ? Putting one of the problem systems in a location where it was easier
>? ? to troubleshoot when it failed would probably help a lot.
>
> Done that. Found nothing. The timer work around works. Not worth
> spending any more time on the issue.
>
> --
> Compton
> VK2HRX
> Sydney, Australia







Re: MT4BB Halting

 

Rob,

The MTT4BT-40 is much the same as the original MTT4B, we just decided that all the MTT4BT's would have the Bluetooth Module instead of having to stock four different varieties of MTT4BT's ( Low and high power MTT4BT's, with and without BT modules)

?IF the cause of the TT4-hang is actually caused by the MAX232 chip in the MTT4BT-40,? and someone has an application where it does occasionally hang ( Like Compton's,? Australian installs), AND they are not using the serial ports ( Pretty common thing in a portable, battery powered digi I would think)? I am interested in having them pull the MAX232 chip solely to rule out the MAX chip overheating as the root cause of the hanging or locked up MTT4BT.

?I have seen the MAX232 chip lock and overheat, but I have not been able to replicate the lock up of the MTT4BT-40...Pulling the chip is just an experiment, the root cause is a mystery, but the other working theory is an issue related to high SWR building up RF voltage on the PCB. ( A problem we see with TT3's and compromised antennae quite a bit) Pulling the MAX232 out of the machine assembled, SMD TT4 would be a challenge!?

The BT unit is selected internally for connecting to the TT4 COMPORT A? via jumpers, or to the external serial (2.5mm jack) through the MAX 232. The BT module can only be connected to the the PORTA TTL (UART) or to the 2.5mm jack through the serial/TTL converter in the case of someone who may need to change their Bluetooth parameters. If the jumpers are set to connect the 2.5mm jack to the TT4 via the MAX232 converter, the BT module is still awake, its just not connected to anything.?

?If the issue is related to the converter, communicating via TTL is an alternative ( I did not set up the PCB for easy access to PORTA and PORTB through a TTL connection, but its doable with minor surgery) But its not a very convenient or clean way of dealing with the root problem as a permanent solution.?

73,

Allen AF6OF


-----Original Message-----
From: Rob Giuliano via groups.io <kb8rco@...>
To: [email protected] <[email protected]>
Sent: Mon, Oct 18, 2021 6:20 am
Subject: Re: [TinyTrak] MT4BB Halting

I am not sure what the MT4BB is?

If it really "IS" the max232 chip, and the MAX232 chip is in a socket (MTT4B and kit TT4), I suggest removing the chip and interfacing with the unit through TTL connectors.? There are many FTDI or cheaper knock offs available for interfacing with the computer.

I don't know if the BT module requires the MAX232 chip (since most modules are TTL, I am guessing the answer is no).

Remove the MAX232 chip from the socket (if you used one).? If not, you could remove it and install a socket, but that may not be worth the effort.
Use?24 gauge AWG solid wire to jumper across the socket. ?
These can be pushed in the socket without damage and removed to put the MAX232 chip back in - if needed.
?? 7 <--> 10
?? 8 <-->? 9
?11 <--> 14
?12 <--> 13

Of course that would require a (new) TTL serial GPS - but these are cheap too.? Since most have 5V on one of the pins, these are similar to the Byonics TT USB cable (but different logic levels) and convenient for changing settings.?
NOTE:? This is the same as the MTT4B-mini.

IMPORTANT!!!? Do not use the Byonics TT USB with jumpers.? The logic levels are very different.

Robert Giuliano
KB8RCO


On Monday, October 18, 2021, 08:42:13 AM EDT, vhsproducts via groups.io <vhsproducts@...> wrote:


Dave,

The MAX chip has built-in pull-ups, and a bunch of people have tried adding external pull ups or pull downs with out any clear resolution. The problem is so intermittent, that its very difficult to tell if you have solved the problem with any particular hardware fix. Of the many years of the problem that have gone by ( And the Mfg denying that the problem even exists) No one has a bulletproof fix. There are several known ways you can induce the converter chip to go berserk, and it only rarely kills the chip.?

FYI, for quite some time, any new MTT4BT-40 has an additional bimetallic thermostat that will switch off the power amplifier if the MTT4BT-40 locks-up in transmit mode. Fortunately, this only happens if their is a cataclysmic failure of the antenna. When any MTT4BT-40 comes back for service, check-out or programming, I automatically add the thermostat to the unit, switching off the power amp when it reaches 50C, and with a drop-out period for cool down of several minutes.?

73,

Allen AF6OF


-----Original Message-----
From: David Schultz, KC5WSV <david.schultz@...>
To: [email protected]
Sent: Sun, Oct 17, 2021 6:45 pm
Subject: Re: [TinyTrak] MT4BB Halting

On 10/17/21 7:26 PM, vhsproducts via groups.io wrote:
> Compton,
>
> Why not reset the timer more often? (Every day?) Are you finding that
> once a week is enough to keep the units running reliably? Our problem is
> not being able to replicate the hanging complaint in a TT4 or an MTT4BT.
> I recently found that the MAX232 chip has a non-documented problem that
> occasionally causes the chip to lock up, overheat, and draw a bunch of
> excess power ( Google "MAX232 overheating" and you will see that the
> problem with the chip has been going on for years with no satisfactory
> explanation)

An open input might be asking for trouble. On something where the serial
port isn't being used, a connector wired to pull the input to a known
state might help.

Putting one of the problem systems in a location where it was easier to
troubleshoot when it failed would probably help a lot.


--

David Schultz






Re: MT4BB Halting

 

I am not sure what the MT4BB is?

If it really "IS" the max232 chip, and the MAX232 chip is in a socket (MTT4B and kit TT4), I suggest removing the chip and interfacing with the unit through TTL connectors.? There are many FTDI or cheaper knock offs available for interfacing with the computer.

I don't know if the BT module requires the MAX232 chip (since most modules are TTL, I am guessing the answer is no).

Remove the MAX232 chip from the socket (if you used one).? If not, you could remove it and install a socket, but that may not be worth the effort.
Use?24 gauge AWG solid wire to jumper across the socket. ?
These can be pushed in the socket without damage and removed to put the MAX232 chip back in - if needed.
?? 7 <--> 10
?? 8 <-->? 9
?11 <--> 14
?12 <--> 13

Of course that would require a (new) TTL serial GPS - but these are cheap too.? Since most have 5V on one of the pins, these are similar to the Byonics TT USB cable (but different logic levels) and convenient for changing settings.?
NOTE:? This is the same as the MTT4B-mini.

IMPORTANT!!!? Do not use the Byonics TT USB with jumpers.? The logic levels are very different.

Robert Giuliano
KB8RCO


On Monday, October 18, 2021, 08:42:13 AM EDT, vhsproducts via groups.io <vhsproducts@...> wrote:


Dave,

The MAX chip has built-in pull-ups, and a bunch of people have tried adding external pull ups or pull downs with out any clear resolution. The problem is so intermittent, that its very difficult to tell if you have solved the problem with any particular hardware fix. Of the many years of the problem that have gone by ( And the Mfg denying that the problem even exists) No one has a bulletproof fix. There are several known ways you can induce the converter chip to go berserk, and it only rarely kills the chip.?

FYI, for quite some time, any new MTT4BT-40 has an additional bimetallic thermostat that will switch off the power amplifier if the MTT4BT-40 locks-up in transmit mode. Fortunately, this only happens if their is a cataclysmic failure of the antenna. When any MTT4BT-40 comes back for service, check-out or programming, I automatically add the thermostat to the unit, switching off the power amp when it reaches 50C, and with a drop-out period for cool down of several minutes.?

73,

Allen AF6OF


-----Original Message-----
From: David Schultz, KC5WSV <david.schultz@...>
To: [email protected]
Sent: Sun, Oct 17, 2021 6:45 pm
Subject: Re: [TinyTrak] MT4BB Halting

On 10/17/21 7:26 PM, vhsproducts via groups.io wrote:
> Compton,
>
> Why not reset the timer more often? (Every day?) Are you finding that
> once a week is enough to keep the units running reliably? Our problem is
> not being able to replicate the hanging complaint in a TT4 or an MTT4BT.
> I recently found that the MAX232 chip has a non-documented problem that
> occasionally causes the chip to lock up, overheat, and draw a bunch of
> excess power ( Google "MAX232 overheating" and you will see that the
> problem with the chip has been going on for years with no satisfactory
> explanation)

An open input might be asking for trouble. On something where the serial
port isn't being used, a connector wired to pull the input to a known
state might help.

Putting one of the problem systems in a location where it was easier to
troubleshoot when it failed would probably help a lot.


--

David Schultz






Re: MT4BB Halting

 

Dave,

The MAX chip has built-in pull-ups, and a bunch of people have tried adding external pull ups or pull downs with out any clear resolution. The problem is so intermittent, that its very difficult to tell if you have solved the problem with any particular hardware fix. Of the many years of the problem that have gone by ( And the Mfg denying that the problem even exists) No one has a bulletproof fix. There are several known ways you can induce the converter chip to go berserk, and it only rarely kills the chip.?

FYI, for quite some time, any new MTT4BT-40 has an additional bimetallic thermostat that will switch off the power amplifier if the MTT4BT-40 locks-up in transmit mode. Fortunately, this only happens if their is a cataclysmic failure of the antenna. When any MTT4BT-40 comes back for service, check-out or programming, I automatically add the thermostat to the unit, switching off the power amp when it reaches 50C, and with a drop-out period for cool down of several minutes.?

73,

Allen AF6OF


-----Original Message-----
From: David Schultz, KC5WSV <david.schultz@...>
To: [email protected]
Sent: Sun, Oct 17, 2021 6:45 pm
Subject: Re: [TinyTrak] MT4BB Halting

On 10/17/21 7:26 PM, vhsproducts via groups.io wrote:
> Compton,
>
> Why not reset the timer more often? (Every day?) Are you finding that
> once a week is enough to keep the units running reliably? Our problem is
> not being able to replicate the hanging complaint in a TT4 or an MTT4BT.
> I recently found that the MAX232 chip has a non-documented problem that
> occasionally causes the chip to lock up, overheat, and draw a bunch of
> excess power ( Google "MAX232 overheating" and you will see that the
> problem with the chip has been going on for years with no satisfactory
> explanation)

An open input might be asking for trouble. On something where the serial
port isn't being used, a connector wired to pull the input to a known
state might help.

Putting one of the problem systems in a location where it was easier to
troubleshoot when it failed would probably help a lot.


--

David Schultz






Re: MT4BB Halting

 

The problem with having a TT4-based watchdog timer is that the ATMEGA chip seems to be the thing that hangs, so depending on the code to run in the chip that is locked up is a no-go. I have considered an extra timer based on a PIC to periodically restart the TT4 chip ( It does not take long to reboot)? so that it will still automatically essentially push the reset switch on pin 9 of the TT4 chip, and not be dependent on the TT4 itself. Compton's use of an external timer seems to validate the approach. I don't know if having a timer to intermittently reset the TT4 actually prevents the mysterious hanging condition, or if it just allows recovery in the rare instance of a hangup.

73,

Allen AF6OF


-----Original Message-----
From: Barry L. Lankford <BarryL@...>
To: [email protected]
Sent: Sun, Oct 17, 2021 11:08 pm
Subject: Re: [TinyTrak] MT4BB Halting

If you are OK with the fixed periodic reboot solution, the following
might still be useful in the future.? Google "Watchdog Timer," the
time-honored, last-ditch method of dealing with many impossible-to-find
(and yet-to-be-experienced) bugs.

I once took over a bad project where the original designer (and also its
programmer) had included a watchdog function but put the code to
periodically clear the watchdog counter inside an interrupt routine
instead of in-line with the main program path.? So, when the main
program somehow got out in the weeds, the timer service interrupt would
push the "out in the weeds" program counter onto the stack, jam in the
address of the interrupt service routine, which would then reset the
timer preventing it from ever timing out.? The interrupt service code
would then reach the end of the routine and the return from the routine
would pop the old "out in the weeds" program counter location off the
stack and the program would jump right back out into the weeds, solving
NOTHING.? Don't do it that way!

Unfortunately, AFAIK, we still don't have access to the source so it'd
be difficult to add some elements of a watchdog timer function to the
TT4 code.? I think there are some one-chip hardware watchdog timer
solutions now.? Might be worth a look, but I've been out of that level
of design for several years, so I'm not familiar with a lot of the newer
ICs.? Maybe you could dead-bug the chip, connect it to suitable circuit
nodes with wire-wrap wire and be done with it.? If "dead-bug" and
"wire-wrap" are unfamiliar to the younger folks, Wikipedia them
(wire-wrap is actually referenced in the wiki article about dead-bug).
I think the techniques are still useful and the dead-bug method is very
durable.


Barry
N4MSJ


On 10/17/2021 9:10 PM, Compton wrote:
> On Mon, Oct 18, 2021 at 12:45 PM, David Schultz, KC5WSV wrote:
>
>? ? Putting one of the problem systems in a location where it was easier
>? ? to troubleshoot when it failed would probably help a lot.
>
> Done that. Found nothing. The timer work around works. Not worth
> spending any more time on the issue.
>
> --
> Compton
> VK2HRX
> Sydney, Australia






Re: MT4BB Halting

 

If you are OK with the fixed periodic reboot solution, the following might still be useful in the future. Google "Watchdog Timer," the time-honored, last-ditch method of dealing with many impossible-to-find (and yet-to-be-experienced) bugs.

I once took over a bad project where the original designer (and also its programmer) had included a watchdog function but put the code to periodically clear the watchdog counter inside an interrupt routine instead of in-line with the main program path. So, when the main program somehow got out in the weeds, the timer service interrupt would push the "out in the weeds" program counter onto the stack, jam in the address of the interrupt service routine, which would then reset the timer preventing it from ever timing out. The interrupt service code would then reach the end of the routine and the return from the routine would pop the old "out in the weeds" program counter location off the stack and the program would jump right back out into the weeds, solving NOTHING. Don't do it that way!

Unfortunately, AFAIK, we still don't have access to the source so it'd be difficult to add some elements of a watchdog timer function to the TT4 code. I think there are some one-chip hardware watchdog timer solutions now. Might be worth a look, but I've been out of that level of design for several years, so I'm not familiar with a lot of the newer ICs. Maybe you could dead-bug the chip, connect it to suitable circuit nodes with wire-wrap wire and be done with it. If "dead-bug" and "wire-wrap" are unfamiliar to the younger folks, Wikipedia them (wire-wrap is actually referenced in the wiki article about dead-bug). I think the techniques are still useful and the dead-bug method is very durable.


Barry
N4MSJ

On 10/17/2021 9:10 PM, Compton wrote:
On Mon, Oct 18, 2021 at 12:45 PM, David Schultz, KC5WSV wrote:
Putting one of the problem systems in a location where it was easier
to troubleshoot when it failed would probably help a lot.
Done that. Found nothing. The timer work around works. Not worth spending any more time on the issue.
--
Compton
VK2HRX
Sydney, Australia


Re: MT4BB Halting

 

On Mon, Oct 18, 2021 at 12:45 PM, David Schultz, KC5WSV wrote:
Putting one of the problem systems in a location where it was easier to troubleshoot when it failed would probably help a lot.
Done that. Found nothing. The timer work around works. Not worth spending any more time on the issue.
?
--
Compton
VK2HRX
Sydney, Australia


Re: MT4BB Halting

 

On 10/17/21 7:26 PM, vhsproducts via groups.io wrote:
Compton,
Why not reset the timer more often? (Every day?) Are you finding that once a week is enough to keep the units running reliably? Our problem is not being able to replicate the hanging complaint in a TT4 or an MTT4BT. I recently found that the MAX232 chip has a non-documented problem that occasionally causes the chip to lock up, overheat, and draw a bunch of excess power ( Google "MAX232 overheating" and you will see that the problem with the chip has been going on for years with no satisfactory explanation)
An open input might be asking for trouble. On something where the serial port isn't being used, a connector wired to pull the input to a known state might help.

Putting one of the problem systems in a location where it was easier to troubleshoot when it failed would probably help a lot.


--

David Schultz


Re: MT4BB Halting

 

Hi Allen,

We selected once a week as the units have always lasted between 1-3 months before hanging. We could do it daily or even hourly but once a week works. There has only been a single episode when the hanging occurred between the weekly power on/off events and the power cycle restored the unit. It happens to all of our units and we know of at least 1 other where it also happens. One unit operates in an aircon controlled comms hut, the others are under cover but no air con and temps could certainly get to 40C in summer.

I can get to a few ouf our units fairly easily.
Not sure what you mean by pulling the Max chip.
--
Compton
VK2HRX
Sydney, Australia


Re: MT4BB Halting

 

Compton,

Why not reset the timer more often? (Every day?) Are you finding that once a week is enough to keep the units running reliably? Our problem is not being able to replicate the hanging complaint in a TT4 or an MTT4BT. I recently found that the MAX232 chip has a non-documented problem that occasionally causes the chip to lock up, overheat, and draw a bunch of excess power ( Google "MAX232 overheating" and you will see that the problem with the chip has been going on for years with no satisfactory explanation) I hoped I could find someone who has consistent lock-up to see if pulling the MAX232 chip solved the problem...of course, this would need to be in a digipeater or similar application where the serial ports are not in use during operation. When the MAX gets hot, it may start sending gibberish to the TT4 chip. I like your timer solution, but I wish it was not necessary! If you get to one of your remote units, can you see if pulling the MAX chip makes any difference??

73,

Allen


-----Original Message-----
From: Compton <comptonallen@...>
To: [email protected]
Sent: Sun, Oct 17, 2021 3:06 pm
Subject: Re: [TinyTrak] MT4BB Halting

[Edited Message Follows]
I am in a group in Sydney that uses 4 of these. We experence the same issue. We ended up fitting a timer that turns the power on/off. We set the time to do this every Tue at 2AM. If they happen to go off air during the week then the timer will revive them on Tues at 2AM. Yes, its an annnnoying porblem but the timer does work as a good work around. We are suspicious of RF getting into them that causes the hang up to occur. Seems to occur in the 2-3 month time period but we can see no pattern to it.


Allen and Byron at Byonics are aware of the issue.

This is the timer we use:
--
Compton
VK2HRX
Sydney, Australia


Re: TT4 with Kenwood TM71 and no TX

 

Danny, correct, hasn't been used in a while so i tested both before and after a factory reset with same results.

I suspect, as suggested by Rob, there may be an interface problem.

The radio is always in the truck, and always has the data cable connected so (SUPPOSEDLY) all i need to do is hook up the GPS disk and radio to the TT4 as needed and 'off to the races we go'.? Interestingly, that's what i use it for, Bike-A-Thons, throughout the year as a rover/support vehicle and found the failure setting up for the Ride 4 Ronald here in the Orlando, FL area last week (first time in a year we've had an event).

Thanks for the ideas, guys.


Re: MT4BB Halting

 
Edited

I am in a group in Sydney that uses 4 of these. We experence the same issue. We ended up fitting a timer that turns the power on/off. We set the time to do this every Tue at 2AM. If they happen to go off air during the week then the timer will revive them on Tues at 2AM. Yes, its an annnnoying porblem but the timer does work as a good work around. We are suspicious of RF getting into them that causes the hang up to occur. Seems to occur in the 2-3 month time period but we can see no pattern to it.

Allen and Byron at Byonics are aware of the issue.

This is the timer we use:
--
Compton
VK2HRX
Sydney, Australia


Re: TT4 with Kenwood TM71 and no TX

 

About the only 3 'internal' things that would provide no audio are:
?* The TX potentiometer R1
?* JP8 installed.? This is only needed for "some" HTs.? Not with radios using the Data Port.
?* TX amp which you are able to change (increase) using CALIBRATE.

If it isn't one of those 3 things, then it must be the connection between radio and TT4.

At least that's all I can think of.

Rob KB8RCO


On Sun, Oct 17, 2021 at 11:18, Rick/ KM4KQQ
<km4kqq@...> wrote:
Used to work, but now....
Using CALIBRATE get a red/TX light, but no sound heard when monitoring with another radio, no matter what setting.
Using MONITOR, no sound heard no matter what setting.
I have an idea what might be wrong, but will withhold that idea from here until others offer suggestions, to see if i am thinking the same.