CQRLOG - fldigi XmlRpc

| WARNING! Backup your data often! BACKUP your log directory at the end of EVERY session! All that you need to backup and store in a safe place is the log database directory located in the ~/.config/cqrlog/database folder, or you can enable the autobackup function in Preferences. This autobackup function creates an ADIF file with a backup of your log. /td>

[Menu]

CQRLOG for LINUX by OK2CQR & OK1RR

## fldigi XmlRpc remote

- Settings
- Use
- Some notes
- Starting fldigi and wsjt-x via cqrlog

XmlRpc remote connection to fldigi is an alternative way to transfer qso data to cqrlog. With XmlRpc cqrlog acts as client what is opposite way compared to wsjt-x remote where cqrlog acts like server. Because of this cqrlog can not know if “save to log” button is pressed at fldigi because it tells it’s information only when asked. This leads to situation where fldigi logging can not be used to act like indicator to cqrlog to save qso and saving must be done by operator on cqrlogs side.

There are two ways to save qso:

Press “save qso” on cqrlog’s NewQSO form and press save on fldigi. You get entry to both logs.
Press “Save this qso” on cqrlog XmlRpc form. You get qso saved to cqrlog and fldigi entry is cleared, but not saved.

When using XmlRPC:

You get qrz/HamQth data immediately after adding call to fldigi’s call field
You see qso before/dxcc statistics from cqrlog before firing TX the first time
You can run fldigi on other computer than cqrlog if they have common network. WiFi, wired, or even internet(when you should use openVPN to make secured tunnel between sites)

### Settings

In cqrlog’s preferences/fldigi/wsjt interface there are some new settings. Port and Address for fldigi network connection and selection to use XmlRpC.With selection you can choose “the old way” for fldigi remote, or the XmlRpc way. Port number should be ok, but IP address may change depending your needs. Address is normally 127.0.0.1 (localhost) if you run fldigi on same PC than cqrlog. If you have fldigi running on other PC put here the IP address of fldigi-PC. There is no IP address validation, so you have to type correctly formatted address. If you use fldigi on other PC remember to open firewall at fldigi-PC side for TCP traffic to port 7362 from your local network.

Parameter "Drop after SyncErr >" automates remote mode closing when fldigi is closed. But as it may affect also (in slow PCs) fldigi started by cqrlog it can be changed. 0 disables, 1-20 means timer rounds until drop. When closing happens it leaves text "Socket error, check fldigi!" to NewQSO field "Comment QSO".

In all cases fldigi must be started from command line with parameter: fldigi --xmlrpc-server-port 7362 When closing fldgi properly and answering YES to save setup changes the next start should open xmlrpc server without parameters from usual icon.

### Use

When you have activated fldigi remote and checked “Use XmlRpc” at preferences, texts that you type to fldigi logging sheet (or select from monitor with right click) are transferred to cqrlog by polling fldigi with speed you have set on preferences “Try to load QSO from fldigi every X seconds”. When remote for fldigi is opened a new status form is shown. It shows data that have been received from fldigi. If you can’t see any changes you have to check port and address settings (both fldigi and cqrlog) and firewall settings. There is more information about XmlRpc at:
http://www.w1hkj.com/FldigiHelp-3.21/html/xmlrpc_control_page.html

If everything is OK you should see something like this:

### Some notes

fldigi’s pr (Province) is transferred to cqrlog’s County
fldigi’s Country is not transferred
Save this qso is shown after you have call, time on, rst_in, rst_out and TX fired once it hides again when qso data is cleared.
Save this qso saves only to cqrlog, fldigi’s qso data is just cleared.

### Starting fldigi and wsjt-x via cqrlog

You can set preferences so that cqrlog will start fldigi and/or wsjt-x programs for you when you enter remote mode. This is very handy, but doing that has also one risk.
When fldigi or wsjt-x has been started as a child process of cqrlog they will die at the moment cqrlog crashes for some reason.
If you start them manually as processes of their own and then activate remote mode from cqrlog they keep on running if cqrlog dies. You can finish your ongoing qso, start cqrlog again, set remote mode on and then log the qso in normal manner.

[Menu]