¿ªÔÆÌåÓý

Digipeating fails but Igate continues to function - Windows 7


 

David,

Per your request, I have copied and pasted our discussion below.?

Greg



David,

Thanks for your reply and the information. I took some time before replying in order to try a couple of other things. I will try the suggestions you made asap.

You're right about me using third party software, at least in part, to terminate and restart DW. Since I started off setting things up to use the Igate functionality, I started looking for something "canned" which would solve the problem of a crash while I was unable to be there and monitor the pc. I tried a couple of programs but settled on a one named "Restart On Crash". I found it to be the only one which started DW correctly after a crash. I'll add links at the bottom of this e-mail. I am using Windows to terminate the engine at regular intervals (every 20 minutes) by taking advantage of Task Scheduler. I went back, before replying, and attempted to use TS to restart DW thinking it would be great to have everything taken care of within Windows. Unfortunately, that didn't work well. When TS calls DireWolf.exe, it doesn't seem to "remember" where the rest of the support files are and DW does not start correctly. This is the same thing that happened with the crash monitor program I tried. I don't have a lot of experience with TS so it is probably something I have missed in the task setup. I did not try all of the programs mentioned in the link describing eight different restart type programs. I did try App Monitor with poor results and ROC. I'm not sure if some or all of these programs simply offer an easier way to deal with Task Scheduler because they apparently work with Windows versions prior to 7.

My antivirus software says ROC is clean but who knows. It does not need to be installed so I thought that was good as well. I found it on a blog and then took some time last night to try and research it's origins. I did find the author's name but not a direct contact method for him unless I overlooked it. I did see he had recently answered questions about his program so he's still around. There was nothing on the blog or within the software that states whether it's copyrighted or open source and that's what I was really interested in since it could disappear if the his blog went away. If it's open source, it would be nice to be able to possibly add it to the DW distro. At least that was my thought.

I would be happy to go back to the thread in the forum and explain what I have done but wanted to run it past someone else since it involves the third-party software. What do you think? This is working for me but hate to mentions something which may or may not be available to download tomorrow.



Here are the links that lead me to ROC:

https://www.raymond.cc/blog/download/did/1914/

http://w-shadow.com/blog/2009/03/04/restart-on-crash/


Original article

https://www.raymond.cc/blog/keep-application-running-by-automatically-rerun-when-closed/


I have one question but can post to the forum if that's better. DW mentions several different packages it will work with as a "drop-in" replacement for AGWPE. I have had no luck with with Winpack. It just doesn't seem to see the DW engine. Will it work and I'm just missing something?

I would love to help more if there is something I can do.

Thanks and 73,
Greg Watson KA9DTZ



On September 2, 2016 5:35:08 PM EDT, David Ranch wrote:

Hello Greg,


> My work-around for this was to include a process monitor which would?
> automatically restart Dire Wolf upon unexpected termination. With this?
> in place, I had no other issues with the engine and everything worked?
> fine without having to check on it's status. If the engine terminates,?
> it is restarted within 20 seconds. The process monitor also logs?
> unexpected terminations.?

Curious, are you doing this process monitoring and restart using native?
Windows tools or some other 3rd party tools? It might be helpful for?
some people if you post what you did here and maybe John can add it into?
the official documentation.


> The second problem arose when I implemented the digipeater?
> functionality. Setup was clean and fast due to the excellent?
> documentation and my digi was on the air quickly. Unfortunately,?
> something happens where the engine fails to send the command to?
> digipeat. I see the command on the monitor window but the LED?
> indicator on my interface (RTS > opto > PTT) does not indicate that?
> the RTS signal changes states.
>

You mentioned that you're capturing logs now. When things crash and?
restart, are you seeing any specific errors? To increase logging, per?
the User Guide - Section 9.14) you can add "-d o" which will show PTT /?
DCD signals. There is "-d i" which will show I gate operations.?
Another issue you might be seeing is illegal characters or specific?
corrupt frames that are crashing Direwolf (it's happened in the past).?
As such, you can add "-d p" to log all packets. Once a failure occurs,?
you might be able to determine if a local station's packets are freaking?
our Direwolf.

Beyond that, I'm not aware of any "verbose logging" feature in Direwolf.


Btw, in your Direwolf config, disable AGW and TCPKISS in your?
direwolf.conf file by setting the socket number to "0"


--David
KI6ZHD




?opened this?issue? a day ago?¡¤ 0 comments

I installed v1.3.1 based on the text I read about the previous version having some Windows keying problems.

My Igate/digi is up an running but not without some other software help.

For some background, I'm running Windows 7 on a netbook (CPU useage ~ 2 - 5 %) and use a USB to serial adapter. I have used two different adapters with, to the best of my knowledge, equal succes. One uses a Prolific chipset and the other is FTDI. Both use "legitimate" chipsets and have given me no trouble in other applications.

There are actually two problems I have encountered and they are as follows:

At first, I ran only as an Igate station. Setup was straight forward and I was up and running in little time. The problem was the Dire Wolf engine would abruptly terminate for no apparent reason. The time-frame for the problem could be in as little as within the first hour to as many as 14 hours.

My work-around for this was to include a process monitor which would automatically restart Dire Wolf upon unexpected termination. With this in place, I had no other issues with the engine and everything worked fine without having to check on it's status. If the engine terminates, it is restarted within 20 seconds. The process monitor also logs unexpected terminations.

The second problem arose when I implemented the digipeater functionality. Setup was clean and fast due to the excellent documentation and my digi was on the air quickly. Unfortunately, something happens where the engine fails to send the command to digipeat. I see the command on the monitor window but the LED indicator on my interface (RTS > opto > PTT) does not indicate that the RTS signal changes states.

Simply restarting the DW engine corrects the problem until the next time this happens. The problem is random and may occur within a very few minutes or may not occur again for a couple of hours. My work-around for this problem was to schedule tasks to terminate the engine on a regular basis (once every 20 minutes). Once terminated, the process monitor restarts the the engine and the station is up again within the minute.

At this point, the scheduled tasks and the process monitor keep the station on the air without human intervention but I still see times when the digipeater function fails prior to time for the scheduled task to purposely restart the engine. I've minmised my digipeater downtime but something is still not right with v1.3.1. Again, the Igate functionality continues without a hitch.

Is there anything I can do to collect more useful data for the developer?

73, Greg


David Ranch
 

¿ªÔÆÌåÓý


Hello Greg,

?
Per your request, I have copied and pasted our discussion below.

Perfect!? Let's begin!


You're right about me using third party software, at least in part, to terminate and restart DW. Since I started off setting things up to use the Igate functionality, I started looking for something "canned" which would solve the problem of a crash while I was unable to be there and monitor the pc. I tried a couple of programs but settled on a one named "Restart On Crash" (ROC).
. . .
I found it to be the only one which started DW correctly after a crash. I'll add links at the bottom of this e-mail. I am using Windows to terminate the engine at regular intervals (every 20 minutes) by taking advantage of Task Scheduler. I went back, before replying, and attempted to use TS to restart DW thinking it would be great to have everything taken care of within Windows. Unfortunately, that didn't work well. When TS calls DireWolf.exe, it doesn't seem to "remember" where the rest of the support files are and DW does not start correctly. This is the same thing that happened with the crash monitor program I tried.

So this sounds like a path issue with some of these programs but if you've found something that works.. good deal!? I'm not huge Windows user anymore so I can't comment on the built-in Task Scheduler program in Windows but maybe someone else on the list here can help you get that going natively (that would probably best if possible).


I would be happy to go back to the thread in the forum and explain what I have done but wanted to run it past someone else since it involves the third-party software. What do you think? This is working for me but hate to mentions something which may or may not be available to download tomorrow.

If someone has posted something on a public blog without any specific license, etc, I would argue it's probably ok to use for the version you have.? At some later date, the author posts a license you're not ok with, you can continue using the OLDER version though always be careful of software that has security issues, etc.



Here are the links that lead me to ROC:


Original article

Cool.. thanks for those!


On to the more important point of WHY Direwolf is crashing on your machine and/or why it stops digipeating.? We need details:

? - Gives us the specs of your computer (cpu make/model/speed, amount of ram, OS version, etc)
???? - Sounds like your running WIndows 7 with USB serial adapters
? - Tell us about the radio setup and soundcard setup you have:?
????? - do you have any audio/ptt isolation (signalink, etc)
????? - does direwolf crash only when it's transmitting?? Have you tried lowering your power as low as possible to see if that helps (RFI, etc)
? - Sounds like your running Direwolf v1.3.1
? - If you manually run Direwolf from a command prompt and it eventually crashes, does Windows say anything specific about the failure?? The details matter here so give everything you can (take a picture of it, etc)

?
Some other things to try out just to see if it helps:

? - Start windows in Safe mode and see if that helps at all
? - If your willing to do a little a work, you can install WinDbg and try getting a stack dump when Direwolf is crashed
???? - Download WinDbg -
???? - How to use it:

Beyond that, I can't help you on Windows and we'll need help from John WB2OSZ to see what else he might need from you to figure out what's going on


DW mentions several different packages it will work with as a "drop-in" replacement for AGWPE. I have had no luck with with Winpack. It just doesn't seem to see the DW engine. Will it work and I'm just missing something?

According to , this is a AX.25 packet terminal program that works with either:

?? - a physical TNC running in COMMAND mode
?? - BPQ or WA8DED/TF HOST mode
?? - AGWPE support to a local or remote AGWPE server
?? -

Anyway, Winpack won't work with Direwolf for several reasons

? 1. Winpack does't use the TCP/IP stack to communicate to the AGWPE server software - it uses the deprecated DDE interface ( bottom of ) which Direwolf doesn't support

? 2. Direwolf currently only supports unconnected AGWPE packets for things like APRS.? It won't support connected sessions to BBSes, etc.? Work has begun to support this in Direwolf 1.4 but it's incomplete and there isn't any ETA for it's delivery (but it won't work for you anyway - see #1 above)


Ps.? If you have a 64bit WIndows 7, 8.1, 10 install, WinPack won't run as it's evidently a 16bit program :


I would love to help more if there is something I can do.

So tell us what you're trying to do.? Are you trying to connect to packet BBSes?? Are you trying to do this with a software TNC?? Is Windows a requirement?

?? - If WIndows is a requirement, you should check out the UZ7HO soundmodem ( ) and EasyTerm.? There is also the true "AGWPE" softTNC and application suite from but both the UZ7HO and Direwolf soft tncs are significantly better decoders than the original AGWPE program these days.

?? - If you're willing to try out Linux on say a $35 Raspberry Pi, Direwolf works very well with Linux and my Linpac program : .? I have it mostly documented here:


--David
KI6ZHD


 

We have been noticing this on a Raspberry Pi, using a DIO for PTT control.? It happens randomly, but at a much longer timeframe - a couple weeks to a month or so.? The system is remote, so we can't physically?observe it, but we can ssh into it.? We are now logging DW's output, and also monitoring it at another station.


Just now I was able to connect to it with APRSIS32 via a KISS port, and it was receiving well and may have transmitted a packet or two from that.


In every case, simply restarting DW has gotten it going again.? The RPi itself has been up for a long time, and we don't have to reset it.


Erik,

WB0NIU