Page 1 of 1

PTV Remote Interface

Posted: Fri Jul 10, 2020 10:36 am
by afreire
Hello there, we are new to the forum.

We are currently developing an Android application, using the RI we successfully send BCR files to the PTV Truck APP and we get some feedback too, but we will appreciate some extended info on the matter, we found this page http://navigator.ptvgroup.com/DE/remote ... orial.html with some references to a RITest code example we couldn't find.

We found some inaccurate or incomplete info regarding the info provided http://navigator.ptvgroup.com/DE/remote ... b_c_r.html

Regarding the 'Sending bundle', we couldn't find the action triggered by the 'neutralBtn', can we set it to do something?

Regarding the 'Return bundle', we only get the values 0 or 2 as response, if the user press the positive Button we receive a 'MSG_RI_START_NAVIGATION' message with the expected value (1) (Not described in the documentation)

Could you provide some info regarding the issues described? (Forum, RITest sourcecode or other sourcecode examples, Documentation)

Thanks in advance

Re: PTV Remote Interface

Posted: Mon Aug 31, 2020 12:21 pm
by Bernd Welter
Hello Alejandro,

thanks for the summary you sent me 1:1. No clue whether it is an important topic for other users but as we have it just let me share it:

• When you reached a station, you want to be able to set the timer to start the calculation for the next destination. You have to edit this value in the preferences: <int name="navigation_destination_reached_duration" value="120000"/>
• In bcr files, you can set the vehicle profile with string Vehicleprofile=car.dat. This can do for every existing profile on the device.
• The best way to import preferences values is to set all the variables desired and copy the preferences_import.xml into the navigator folder before startup.
• Drawing a message on the navigator is possible with multiple API calls:
http://navigator.ptvgroup.com/DE/remote ... _sign.html
http://navigator.ptvgroup.com/DE/remote ... _sign.html
http://navigator.ptvgroup.com/DE/remote ... modal.html
• To check if the driver has left the trace you have to use the Register for corridor crossed events:
http://navigator.ptvgroup.com/DE/remote ... e-commands
http://navigator.ptvgroup.com/DE/remote ... 38ddd22944

Also thank you very much, Sebastian for handling this behind the scene ;-)

Bernd