Pira.cz Technical Forum

Radio Data System (RDS) => MRDS1322 => Topic started by: SteveyD on December 20, 2012, 06:20:49 am

Title: Auto Send on program load
Post by: SteveyD on December 20, 2012, 06:20:49 am
Jan

Is there a command that will allow the TinyRds.exe program to update the Text Source file when the program starts up?

Something like "C:\TinyRDS\TinyRDS.exe" -C:\TinyRDS\rds.txt

Title: Re: Auto Send on program load
Post by: Jan on December 20, 2012, 09:10:44 am
There's no option of that kind as the program is expected to run continuously.

A solution exists with the same effect by rewriting the configuration file before start-up. That file is usually placed in C:\Documents and Settings\[user]\Local Settings\Application Data\TinyRDS\. A simple batch file can rewrite it (copy) by one of prepared configuration file and then run the app.
Title: Re: Auto Send on program load
Post by: SteveyD on December 21, 2012, 01:38:44 am
Jan

Is it the TinyRDS configuration file that needs to be edited  or will changing the file identified in "Text Sources" read from File work as well?

Title: Re: Auto Send on program load
Post by: Jan on December 21, 2012, 09:43:51 am
There are two different source files, one for dynamic PS and one for RT. Manual change can be made in the tinyrds.rds configuration file. This way a set of different configuration files can be prepared. Copying one of them into tinyrds.rds will select the configuration desired. If it makes the things easier, the configuration file may be selectable by command line option in next version.

Code: [Select]
...
[DPS1]
...
FromFile=0
SendOnChange=1
SourceFile=C:\dps.txt
...
[Radiotext]
...
FromFile=0
SendOnChange=1
SourceFile=C:\rt.txt
...