.. role:: raw-html-m2r(raw)
:format: html
**Contents**
* `FactoryControlApp: <#factorycontrolapp>`__
* `Pre-requisites <#pre-requisites>`__
* `Service bring up <#service-bring-up>`__
FactoryControlApp
=================
This module controls the Alarm Light and Reset button.
The Output of VA (Video Analytics) i.e. the classified results data (MetaData, Frame) is published on a topic (which is mentioned in the docker compose.yml file in VA section) & the Factory control app subscribes to this topic (again sub topic mentioned in compose file of factory control app section). This meta data is parsed by the FCA & is used to determine if the frame is Defective or a proper one & glow the Red or green light in the IO module (Adam controller) respectively.
FactoryControlApp uses Message Bus Library to subscribe the output of VA (Video analytics) on the topic where VA publishes the classified data on the same topic.
The config about Adamcontroller (IO module) like port, IP address, register bits is stored in ETCD (A distributed key-value store).
``Pre-requisites``
----------------------
#.
Configure io_module using a tool **AdamApax.Net Utility V2.05.11 B19.msi**. This can be downloaded from [here]
(https://support.advantech.com/support/DownloadSRDetail_New.aspx?SR_ID=1-2AKUDB&Doc_Source=Download) by selecting **Primary** Download Site with the **AdamApax.Net Utility V2.05.11 B19.msi**.
**Note**\ : System from which io_module is configured and IO module both should be in same subnet.
During the next step, if password prompt is asked then the password is "00000000"
#.
Install and open the downloaded app and follow the below instructions:\ :raw-html-m2r:`
`
a. On the left-hand side pannel, right click on ``Ethernet`` and select ``Search Device``\ :raw-html-m2r:`
`
b. io_module will be detected (ADAM-6050) under Ethernet, click on it and go to ``Network`` tab and set the ```` to the io_module.\ :raw-html-m2r:`
`
``Service bring up``
------------------------
*
Update "io_module_ip" key with IO Module IP address in the config(\ ``[WORK_DIR]/IEdgeInsights/FactoryControlApp/config.json``\ ) file.
*
Please go through the below sections to have visualizer service built
and launch it:
* `../README.md#generate-deployment-and-configuration-files 3.0.1/IEdgeInsights/README.html#generate-deployment-and-configuration-files>`_
* `../README.md#provision 3.0.1/IEdgeInsights/README.html#provision>`_
* `../README.md#build-and-run-eii-videotimeseries-use-cases 3.0.1/IEdgeInsights/README.html#build-and-run-eii-videotimeseries-use-cases>`_