Skip to content
Snippets Groups Projects
Commit a0f25abb authored by BRONES Romain's avatar BRONES Romain
Browse files

fix(opcua):Fix BAR, server config

* Patch the .mapt file to set BAR to 0
* Add timers to xml config
* fix the device name
parent 1842fef9
No related branches found
No related tags found
No related merge requests found
CNUIO (uio:axiapp?map=/opt/fofb-opcua-server/app.mapt) APPUIO (uio:axiapp?map=/opt/fofb-opcua-server/app.mapt)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration> <configuration>
<variable name="devices" type="string">
<value i="0" v="APP"/> <!-- Declare devices, aliases from .dmap file -->
</variable> <variable name="devices" type="string">
<module name="APP"> <value i="0" v="APPUIO"/>
<variable name="triggerPath" type="string" value="/manual/trigger" /> </variable>
<variable name="pathInDevice" type="string" value="" />
<variable name="initScript" type="string" value="" /> <!-- Declare timers for auto refresh -->
</module> <variable name="periodicTimers" type="string">
<value i="0" v="secTimer"/>
</variable>
<!-- msTimer tick every second -->
<module name="secTimer">
<variable name="period" type="uint32" value="1000" />
</module>
<!-- Configure device -->
<module name="APPUIO">
<variable name="triggerPath" type="string" value="/manual/trigger" />
<variable name="pathInDevice" type="string" value="" />
<variable name="initScript" type="string" value="" />
</module>
</configuration> </configuration>
...@@ -12,9 +12,14 @@ RDEPENDS_${PN}=" genericdeviceserver-opcua" ...@@ -12,9 +12,14 @@ RDEPENDS_${PN}=" genericdeviceserver-opcua"
FILES_${PN}+="/opt/fofb-opcua-server/*" FILES_${PN}+="/opt/fofb-opcua-server/*"
do_compile() {
# Replace BAR by 0
awk 'FNR>1 {$5=0} {print}' ${WORKDIR}/app.mapt > ${WORKDIR}/app_bar0.mapt
}
do_install() { do_install() {
install -d ${D}/opt/fofb-opcua-server/ install -d ${D}/opt/fofb-opcua-server/
install -m 0644 ${WORKDIR}/app.mapt ${D}/opt/fofb-opcua-server/app.mapt install -m 0644 ${WORKDIR}/app_bar0.mapt ${D}/opt/fofb-opcua-server/app.mapt
install -m 0644 ${WORKDIR}/devices.dmap ${D}/opt/fofb-opcua-server/devices.dmap install -m 0644 ${WORKDIR}/devices.dmap ${D}/opt/fofb-opcua-server/devices.dmap
install -m 0644 ${WORKDIR}/generic_chimeratk_server_configuration.xml ${D}/opt/fofb-opcua-server/generic_chimeratk_server_configuration.xml install -m 0644 ${WORKDIR}/generic_chimeratk_server_configuration.xml ${D}/opt/fofb-opcua-server/generic_chimeratk_server_configuration.xml
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment