Super Watchdog Interrupt

TonyD

Member
Hi Alex
The Command line utilities work great on the UPS Card. The Python Utilities work great from Python Fantastic work
The command line wdt -h reveals a command wdt -bint. There is no command to query this feature if is enabled or disabled
Testing has revealed that wdt -bint 0 disables the button mounted on the side (in the same location as all other cards) of the wdt card This was tested via a python script polling the button on the card & found the button was non operational. wdt -bint 1 Enabled this button again confirmed via python script. The function is great & very usable for a headless reset restart. " Excellent " however documentation does not quite line up with this Don't really care was able to work out.

Biggest problem is the Interrupt line from the sequent WDT Ups card is holding the interrupt line & not releasing this line therefore & not allowing any sequent card that i have installed able to change the interrupt line RPI 40 pin connector Pin 37 GPIO26. There appears to be no way of turning this feature on or off from either the Command line or from within Python
Every other feature of this card Excellent

Please Help is it possible to get an additional command line command to Enable/Disable the Interrupt line so as enable other cards to use the interrupt line.

Regards TonyD
 

alexburcea

Moderator
Staff member
Hi Tony,

We will update the documentation, thank you for the suggestion.
Could you tell me the card version so I can dig into this interrupt problem?
If there is a bug here, it will be solved only with a new firmware version but except for the V9.x it needs to be made with an STLink probe
 

TonyD

Member
Hi Alex
WDT Watchdog Card V7.0
wdt -v
Watchdog Control Software ver 2.04
Copyright (c) 2016-2023 Sequent Microsystems

Am running on RPI5 & 64Bit

Regards TonyD
 

alexburcea

Moderator
Staff member
Unfortunately, if I find the bug, you need to reflash the microcontroller using STLink and hook some wires on the 2x4 pin header .
Give me a few days to start debugging this.

Alex.
 

TonyD

Member
Sorry to Bug you again
You Mention earlier that V9.x WDT Super Watchdog.
Is this V9.x card available if so would like to purchase how do i go about getting this version & don't worry about firmware update will throw WDT card on another system not using Interrupt

Regards TonyD
 

alexburcea

Moderator
Staff member
The V9.0 will be available in a few days, I will let you know when we receive them. It contains probably the same bug but is easy fix.
We also do some hardware improvements, starting with a better charger, dual input voltage options 5V or 10 - 24V, and breakable PCB for use with one or two batteries.
 

alexburcea

Moderator
Staff member
The card can be powered from 24V but the output voltage and maintained by the battery is 5V. We added a switching power supply that converts 24V into 5V.
 

TonyD

Member
Hi Alex
with the release of the new v9.0 card love it by the way especially the 24VDC powering the card now i can do away with the 24VDC to 5VDC power supply
Is there any further movement on the fix with the interrupt line as mentioned above in this thread by this card not releasing the interrupt line
I will be trying out the new card in the live system in the next couple of days but suspect it will be the same problem . Will let you know the outcome
If you do update the firmware for the card could you please include a firmware UPDATE program for 64bit linux which is what i am running on the RPi5

Is it also possible to query the interrupt line Enable/Disabled from command line wdt -g bint. Note Have found that this is already in the firmware just not documented in the list when doing wdt -h -g

As well as being able to Enable/Disable the WDT interrupt from the command line is it possible to include this Enable/Disable from Python as well & a linux 64bit firmware UPDATE programme for the new WDT v9 card with a caveat that the UPDATE program will not work with earlier versions

Further testing enabling command line push button wdt -pbs 1 & query wdt -g pbs shows the push button enable however depressing the push button & then querying from the command line wdt -g pbs shows 0 was expecting a 1 after depress The above procedure after a time delay (which iam not sure where this time delay comes from) puts the WDT & RPi5 into a continuous shutdown reboot process that once enabled can only be halted by removing batteries & power.
The only cards fitted to the RPi5 are NVME SSD card, RPi5, 16relind solid state Sequent Card & new v9 WDT card


The reason for all of this is i was trying to enable an Interrupt driven orderly wdt interrupt headless shutdown & or Display card interrupt driven Button or Rotary nob scanning routine hence the need for interrupts from WDT & Display Card.


Regards Tony
 
Last edited:

alexburcea

Moderator
Staff member
Hi Tony,

I am planning to work on the firmware/drivers of the Watchdog next week and I will try to address all your requests. I will keep you posted.

Alex.
 

TonyD

Member
Giday Alex
Any further movement on fixing the Interrupt on the V9.0 WDT card along with enabling of interrupt from command line & Python as well as the looping problem mentioned above (WDT push button Loop)
1. bint help line from command line -h
2. bint enable disable from command line
3. bint enable disable from python
5. push button enable from command line
6. push button enable disable from python
7. Interrupt line working correctly
8. linux 64bit firmware UPDATE programme for WDT V9.0

Cheers Tony
 

alexburcea

Moderator
Staff member
Hi Tony,

I was unable to even start looking at it, sorry, it was and still is a crazy month.
It is close to the top of my list but I can not make any promise since I already broke the last one.

I hope you accept my apologies.
Alex.
 

alexburcea

Moderator
Staff member
Hi Tony,

I addressed some of the issues you mentioned:
1. "wdt -h -bint" returns the description of the command (already done)
2. "wdt -bint <0/1>" (already done), added reading the value "wdt -g bint"
3. getPowerButtonInterruptEnable() and setPowerButtonInterruptEnable(val) has being added in the library v1.0.3
5. "wdt -pbe <0/1>" Enable/disable the power button function
6. getPowerButtonEnable() and setPowerButtonEnable(val) already implemented
8 . Pending, A customer discovered a bug on the RTC so I will release a new firmware version and the 64bit update program soon
Please refresh my memory because I had the sensation that I need to change something in firmware but your list contains only command line and python updates.

Thank you for your bug report and patience,

Alex.
 

TonyD

Member
Giday Alex
The other problem which is the main issue is the interrupt line from the card is not functioning correctly.
It appears when triggered its not releasing the interrupt & causing a interrupt loop & the only way out of this is to kill the power

below is the original problem discovered

Further testing enabling command line push button wdt -pbs 1 & query wdt -g pbs shows the push button enable however depressing the push button & then querying from the command line wdt -g pbs shows 0 was expecting a 1 after depress The above procedure after a time delay (which iam not sure where this time delay comes from) puts the WDT & RPi5 into a continuous shutdown reboot process that once enabled can only be halted by removing batteries & power.
The only cards fitted to the RPi5 are NVME SSD card, RPi5, 16relind solid state Sequent Card & new v9 WDT card

Hope this helps
plus thanks for looking at the problems very much appreciated

Regards Tony
 

TonyD

Member
Giday Alex
Have done some testing of the Ver 9 WDT card
The card when accessed from the command line wdt -pbe 1 enable the push button on the WDT card. After pressing the button the first thing that you need to do is wdt -p 0 If you don't disable the watchdog it will reboot. I assume this is normal operation
1) I have noticed that after pressing the wdt Button if you interigate the button press from command line wdt -g pbs returns 1 that the button has been pressed & doesn't clear the flag after reading i.e. another read wdt -g pbs returns 1 again & the button is never cleared.

Have not tried any python functions as yet

Tony
 

TonyD

Member
Hi Alex
Just completed WDT Watchdog card testing Interrupt & push button
From python When enabling the Interrupt & then pushing the button on the Watchdog this generates an interrupt & then read the push button & this returns that the push button has been pressed
From Python & not enabling interrupts pressing the push button then polling the card returns the status that the button has been pressed

Thank you for your time fixing the Ver9 WDT software all features function as expected & will be able to Use the Headless shutdown from interrupt on the WDT card

All that is required now is the SMLCD card Interrupt working correctly releasing the interrupt when triggered & i will be a happy chappie

Thanks Alex
ps i await your earliest fix to the SMLCD interrupt release.

Cheers Tony
 
Top