Remote Control Interface v.1.1

General discussions V2
Post Reply
KF5WGB
Novice Class
Posts: 10
Joined: 10 Dec 2015, 03:08

Remote Control Interface v.1.1

Post by KF5WGB »

Howdy OM's,
I help coding for a program called POTA Watch by W4ELP, Groups.io/g/W4ELP, to work with Log4OM (latest version). So far it works with HRD and N3FJP's ACLog. Since I use Log4OM, I want to add it to the program. Ed, W4ELP, is on board.
So far I got the QSO Adif managed to send via UDP and it is getting logged, <CALLSIGN>KF5WGB send to the callsign field works and updates. Now my problem

As per The Remote Control Interface document I send to port 2241:

<RemoteControlRequest>
<MessageId>C0FC027F-D09E-49F5-9CA6-33A11E05A053</MessageId>
<RemoteControlMessage>SetTxFrequeny</RemoteControlMessage>
<Frequency>14075000</Frequency >
</RemoteControlRequest>

but the frequency does not change. Same for Mode change. All I need is Freq and Mode change. What do I miss?
Since the QSO works fine, I think my code sending via UDP should be OK.

Thanks for any advice,
73,
Ralf
User avatar
IW3HMH
Site Admin
Posts: 2988
Joined: 21 Jan 2013, 14:20
Location: Quarto d'Altino - Venezia (ITA)
Contact:

Re: Remote Control Interface v.1.1

Post by IW3HMH »

Ciao Ralf, we're closing the release but i'm checking that issue right now...
Daniele Pistollato - IW3HMH
User avatar
IW3HMH
Site Admin
Posts: 2988
Joined: 21 Jan 2013, 14:20
Location: Quarto d'Altino - Venezia (ITA)
Contact:

Re: Remote Control Interface v.1.1

Post by IW3HMH »

Is there anything on program log? like "is not a valid RemoteControlMessage"?
just to start from the beginning?
Daniele Pistollato - IW3HMH
User avatar
IW3HMH
Site Admin
Posts: 2988
Joined: 21 Jan 2013, 14:20
Location: Quarto d'Altino - Venezia (ITA)
Contact:

Re: Remote Control Interface v.1.1

Post by IW3HMH »

message contains: SetTxFrequeny
Right message is: SetTxFrequency
Daniele Pistollato - IW3HMH
KF5WGB
Novice Class
Posts: 10
Joined: 10 Dec 2015, 03:08

Re: Remote Control Interface v.1.1

Post by KF5WGB »

Ciao Daniele,
Gracie mille, that fixed the Frequency change problem. I copied and pasted the XML from the Log4OM 2 Remote Control interface v.1.1 document. There is a typo in the documentation. That typo is also in the SetRxFrequency section of the document.

I still can not change the Mode. Here is what I copied from the documentation:
<RemoteControlRequest>
<MessageId>C0FC027F-D09E-49F5-9CA6-33A11E05A053</MessageId>
<RemoteControlMessage>SetMode</RemoteControlMessage>
<Mode>USB</Mode>
</RemoteControlRequest>

No error in the log file.

I also tried this to get the Radio Status:
<RemoteControlRequest>
<MessageId>C0FC027F-D09E-49F5-9CA6-33A11E05A053</MessageId>
<RemoteControlMessage>GetRadioStatus</RemoteControlMessage>
</RemoteControlRequest>

and the log shows:
2025-05-18 14:16:46.5293 ERROR: [FwFile][DeserializeObjectFromString] : <RemoteControlRequest>
<MessageId>C0FC027F-D09E-49F5-9CA6-33A11E05A053</MessageId>
<RemoteControlMessage>GetRadioStatus</RemoteControlMessage>
</RemoteControlRequest
[EXCEPTION] There is an error in XML document (4, 23). System.InvalidOperationException: There is an error in XML document (4, 23). ---> System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: RemoteControlRequest. Line 4, position 23.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
at System.Xml.XmlTextReaderImpl.ParseEndElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.ReadElementString()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderRemoteControlRequest.Read3_RemoteControlRequest(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderRemoteControlRequest.Read4_RemoteControlRequest()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
at L4ONG.Framework.FwFile.DeserializeObjectFromString(Type dje_zB9NPL5UT_ejd, String dje_zV3HZZQYJ_ejd)
2025-05-18 14:16:46.5293 ERROR: [dje_zHPN7XCFCR9N47XZFEPX3DBUY6D9A_ejd][MoveNext] : <RemoteControlRequest>
<MessageId>C0FC027F-D09E-49F5-9CA6-33A11E05A053</MessageId>
<RemoteControlMessage>GetRadioStatus</RemoteControlMessage>
</RemoteControlRequest is not a valid RemoteControlMessage
[EXCEPTION] There is an error in XML document (4, 23). System.InvalidOperationException: There is an error in XML document (4, 23). ---> System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: RemoteControlRequest. Line 4, position 23.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
at System.Xml.XmlTextReaderImpl.ParseEndElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.ReadElementString()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderRemoteControlRequest.Read3_RemoteControlRequest(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderRemoteControlRequest.Read4_RemoteControlRequest()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
at L4ONG.Framework.FwFile.DeserializeObjectFromString(Type dje_zB9NPL5UT_ejd, String dje_zV3HZZQYJ_ejd)
at L4ONG.BL.RemoteControlManagement.dje_zYLJ8WBSU7B6VYRAQ4QMFS_ejd.dje_zHPN7XCFCR9N47XZFEPX3DBUY6D9A_ejd.MoveNext()

Thanks for your fast response and help. Buona giornata.
73 de KF5WGB
Ralf
KF5WGB
Novice Class
Posts: 10
Joined: 10 Dec 2015, 03:08

Re: Remote Control Interface v.1.1

Post by KF5WGB »

Hi everybody,
I wonder if nobody else ever used the Remote Control over port 2241. If someone used it to change the Mode successful, please let me know what you sent. I also tried different port #s all up to 2299, no success.
Here is what I send, one time with the \n and \r\n and one time without. I do not know if that makes any difference. Anyway, there are no errors in the log file and the Mode does not change.

Code: Select all

<RemoteControlRequest>\n<RemoteControlMessage>SetMode</RemoteControlMessage>\r\n<Mode>USB</Mode>\r\n</RemoteControlRequest>
I also used the GetRadioStatus and my XML request just creates a ton off error messages in the log. Anyone was successful?
I copied both commands from the Log4OM 2 Remote Control interface v.1.1 Documentation.
Thanks to Daniele, the Frequency change problem is solved. I copied a typo from the documents.
Appreciate any advice.
73 de KF5WGB
Ralf
KF5WGB
Novice Class
Posts: 10
Joined: 10 Dec 2015, 03:08

Re: Remote Control Interface v.1.1

Post by KF5WGB »

Nobody? Not a single one is using the Log4OM 2 Remote Control interface v.1.?

If somebody could tell me how to change the Frequency, I would really appreciate it.

73 de KF5WGB
Ralf
Post Reply