Actually, no, not yet. With your configuration, YAAC should be sending a KISS protocol frame with the command code 0xFF as the first and only byte in the frame. By the KISS protocol specification, this should tell a TNC to come out of KISS mode. The question is, is the command frame getting fully sent before the serial port connection is closed? There may be a serial port buffer flushing issue, depending on how the JSSC library handles a serial port write immediately followed by a close. There certainly isn't a mechanism presently in JSSC to force the application to wait until all the queued bytes are transmitted.
I'll try implementing a timed wait after the "exit KISS" command is sent before closing the serial port, to ensure there is enough time for the three bytes of the command to actually get "on the wire" and over to the TNC before the operating system closes the serial port (and possibly discards queued but unsent bytes).
Andrew, KA2DDO
author of YAAC
________________________________________
From:
[email protected] <
[email protected]> on behalf of Michael WA7SKG <wa7skg@...>
Sent: Friday, February 4, 2022 1:46 PM
To:
[email protected]Subject: Re: [yaac-users] Return TNC From KISS Mode ???
Any more thoughts on getting out of KISS mode?
Michael WA7SKG
Michael WA7SKG wrote on 2/3/22 4:47 PM:
TNC MFJ-1274 with updated TAPR firmware 1.1.8
Computer is a Dell with actual motherboard serial port (not USB adapter)
Linux Mint OS
I believe this used to work, but I haven't fooled with it for a couple
years. Now, I need to switch between APRS and WinLink. I've been
struggling with pat, so I have an A/B switch to toggle between the Linux
computer running YAAC and the Windows computer running WinLink Express.
I can't get WinLink to work with the KISS mode for some reason. I'm
dealing with that separately. I'm hoping that if I can get the TNC to
switch back out of KISS mode, then maybe WinLink will work.
In all likelihood, I'll just end up putting in another radio and use
direwolf or something for Winlink.
Michael WA7SKG
Andrew P. wrote on 2/3/22 4:33 PM:
Hmmm.... What make and model of TNC are you using? And what make/model
of serial port to connect it to your computer? Also, what operating
system and version thereof are you using? Windows 11? Ubuntu Linux?
etc...
________________________________________
From: [email protected] <[email protected]> on behalf of Michael
WA7SKG <wa7skg@...>
Sent: Thursday, February 3, 2022 7:22 PM
To: [email protected]
Subject: Re: [yaac-users] Return TNC From KISS Mode
Okay, if I am looking at the right things...
Port Type Serial_TNC
Command string: KISS ON\r\wRESTART\r
I was closing YAAC with the X at the upper right corner. I tried with
File > Exit Program but it appears the TNC remains in KISS mode.
I double checked there were no extra YAAC windows open anywhere.
I just upgraded from 164 to 170 to be sure I didn't miss anything, no
change.
Next idea?
Thanks for your time,
Michael
Andrew P. wrote on 2/3/22 3:37 PM:
If you shut down YAAC properly, and have the Serial_TNC port
configured with a non-blank (not the KISS-only TNC mode) command
string to switch the TNC to KISS mode, YAAC should send the KISS
command to exit KISS mode. If you did not let YAAC automatically put
the TNC into KISS mode, then it won't take it out.
Note that killing YAAC with the Linux "kill" command or with Windows
Task Manager does not give YAAC a chance to send the "exit KISS"
command to the TNC. Also, YAAC has to be completely down (no
iconified windows still lurking on the desktop).
________________________________________
From: [email protected] <[email protected]> on behalf of
Michael WA7SKG <wa7skg@...>
Sent: Thursday, February 3, 2022 6:20 PM
To: [email protected]
Subject: [yaac-users] Return TNC From KISS Mode
When I launch YAAC, it puts my TNC into KISS mode. If I want to do
something else with my TNC after closing YAAC, how do I get it out of
KISS mode? I'm trying to run WinLink and it does not seem to work with
my TNC in KISS mode.
I seem to remember a discussion about this a long time ago, but don't
remember how it works. I really don't want to have to open the TNC and
pull the battery to get it out of KISS mode.
Thanks for any ideas.
--
73,
Michael WA7SKG
"Any day you do not learn one new thing is a wasted day."