Dev:Install or update SerialDeviceIntegrationService
Jump to navigation
Jump to search
This is a windows service running on a computer to which a device with serial interface is connected. It listens to data from the device all the time and, after receiving it places it into a preconfigured folder. From that point on, the Device Data Uploader service uploads the data to Kordeus server from where it can be used in the Kordeus app.
Service installation is very straightforward, essentially clicking on the .msi installer file. Updating the services works the same, except the already running service has to be turned off.
- Start -> Dienste -> Right click -> Als Administrator ausführen
- Find SerialDeviceIntegrationService and click beenden.
- After the service has been installed or updated, SerialDeviceIntegrationServiceSetup.exe.config needs to be configured or updated.
Logging
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
- <file value="Full path to a dedicated logs folder\serial-device-log.txt" />
- <appendToFile value="true" />
- <rollingStyle value="Date" />
- <datePattern value="yyyyMMdd-HHmm" />
- <layout type="log4net.Layout.PatternLayout">
- <conversionPattern value="%-5level: %date [%thread] %logger - %message%newline%exception" />
- </layout>
</appender>
Device connection
Have in mind that currently only one device can be connected via SerialDeviceIntegrationService.
- Copy <devices> section from the corresponding serial device integration instructions.
- After changing the settings, the service needs to be (re)started.
- Start -> Dienste -> Right click -> Als Administrator ausführen
- Find SerialDeviceIntegrationService and click starten or neu starten.