![Digitax M1 mdt Скачать руководство пользователя страница 78](http://html1.mh-extra.com/html/digitax/m1-mdt/m1-mdt_installation-and-programming_2500510078.webp)
The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely con
fi
dential. Any disclosure, copying, distribution to third
party is strictly prohibited.
78
Digitax AITP-Taximeter Service
AitpTaxService is an application that runs in background and allows you to share the AITP and taximeter data
between multiple applications. Using standard digitax.protocols dlls only one application can connect to the AITP
and the taximeter.
AitpTaxService is based on Comtax5 protocol, so it is a TCP based service. You can see that service is running by looking in the
systray , it is a rectangular icon with a letter “A” (AITP enabled), “T” (taximeter enabled), “AT” (AITP and taximeter enabled).
Service Installation
In the latest releases of the device images the service is already installed, if you have an older image you can reflash
your device with the new image or you can copy only the required files on your device that are:
\hard disk\Autorun.exe
\hard disk\sysapps\aitptaxservice (copy the whole folder)
Service Configuration
To configure the service you have to change the configuration xml file:
\hard disk\sysapps\aitptaxservice\ AitpTaxServiceCfg.xml
There you can enable AITP, taximeter, set taximeter port and baud, and set the service to run on startup and automatical-
ly connect. If it is not set automatically connect it will open the serial port the first time a client will connect to the service.
Dlls to reference
To connect to the service from your application , you got to include the usual digitax.protocols dll set as you previ-
ously done plus:
AitpTaxService.Client
Digitax.Protocols.TcpProtocols
You can find them looking in the latest released of the sdk that can be always found in your FTP account, there you can
find also the full reference guide of the SDK with the details for every single class and method and several samples.
Update Existing Code
If you project is already is running standard serial port based digitax.protocols classes , to update your project to
the AitpTaxService is very simple, you only have to reference the correct dlls, and change your Aitp and Taximeter
constructor:
Digitax.Protocols.Interfaces.
IComTax2Protocol
_ct2p
if (AitpTaxService.Client.
AitpTaxClient.ServiceRunning)
//Service Init
_ct2p =
new AitpTaxService.Client.
AitpTaxClient();
else
//Serial port init
_ct2p
= new Digitax.Protocols.SerialProtocols.
ComTax2Protocol(
Digitax.DeviceTools.HardwareInfo.Data.AitpComPort,
Digitax.DeviceTools.HardwareInfo.Data.AitpComBaud, Digitax.DeviceTools.
HardwareInfo.Data.AitpBinaryProtocol ?
SubProtocols.Ct2Binary : SubProtocols.Ct2Standard);
_aitp =
new Digitax.Protocols.Aitp.
AitpManager(_ct2p);
This in most cases should be enough.
Содержание M1 mdt
Страница 1: ...Technical Manual InstallationandProgramming ver 1 16 12 2014...
Страница 2: ......
Страница 83: ......