Quote:
Hi Hans,
Another idea which might work out an might be simple to implement and might have other advantages.
Like in Bojcha's situation the pc is visible to other people who should not have control over the device.
Isn't there a way to password protect certain pages of stereotool or stereotool in total?
Might be easier to show the application but every change must be done ater the correct PW has been entered.
As for the RDS and changing PI, TA etc it should be possible to work with XML files
If the program polls for changes that are made in an XML file and inserts the values into its own encoder it should be easy and should solve the problems for the 2 gentlemen above.
A 1 sec poll would be fast enough and shouldn't consume that much cpu etc.
If someone has access to the PC, password protection won't help at all - they could just close Stereo Tool altogether, change some settings in the .ini file (or remove it), and start it up again.
Something very close to the XML solution is already implemented in Stereo Tool: It is already polling a settings file 4 times a second if you turn that option on. However, that needs to be done manually at the moment by editing the .ini or an .sts file.
I have never put this in the official documentation (I really need to rewrite some parts of it), but here's a forum post with an explanation:
viewtopic.php?f=16&t=25&p=128&hilit=poll#p128
Bojcha: This might be usable for you as well - people only need access to one file on the system. The disadvantage is that it's a bit difficult to change settings this way. The intention was that you can for example write a separate tool that selects different settings during different times of the day. And it's used in a PAL script by Khel973 to select different settings depending on the song:
viewtopic.php?f=3&t=34&p=178&hilit=poll#p178
If you only want to give people access to the RDS text, there are 2 possibilities:
1. Use the aforementioned solution, and just let them upload a file with a single line such as: "RDS PS text=1.5s: POWER/1s: FM"
or:
2. In the RDS text, you can include a text file. You don't even need the polling mechanism for that, just give people access to a file on the disk where they can write the new RDS text to, and put something like this in the RDS PS field in Stereo Tool: \F"C:\rds_ps.txt"
Both are not the most user friendly solutions, but they will work.