How to Configure System Settings in possystemsettings.xml: Difference between revisions

From wizarPOS
Line 3: Line 3:
<syntaxhighlight lang="java">
<syntaxhighlight lang="java">
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!--系统语言-->  <!--系统时区-->
<!--system language-->  <!--time zone-->
<terminal language = "CHINA" timezone = "Asia/Shanghai">
<terminal language = "CHINA" timezone = "Asia/Shanghai">
     <!--msr类型-->
     <!--msr type-->
     <msr type="MMD1100.SPI"/>
     <msr type="MMD1100.SPI"/>
     <!--pinpad类型-->
     <!--pinpad type-->
     <pinpad type="newland.pp70"/>
     <pinpad type="newland.pp70"/>


     <!--默认wifi和下面network‘ssid’一致--><!--强制打开-->
     <!-- set the default wifi ssid to HuiYin, this ssid should be included in networklist--><--forceopen means enable wifi immediatly-->
     <wifi defaultssid="enetwork1" forceopen="false"/>
     <wifi defaultssid="HuiYin" forceopen="false"/>
     <!--wifi自定义参数-->
     <!-- The pre-defined wifi ssid list-->
     <networklist>
     <networklist>
         <network ssid="HuiYin" security="WPA/WPA2_PSK" password="wizarpossystem"/>
         <network ssid="HuiYin" security="WPA/WPA2_PSK" password="wizarpossystem"/>
Line 21: Line 21:
     </networklist>
     </networklist>


     <!--默认apn,和下面的apn‘name’一致-->
     <!-- the default apn name, this apn should be included in the apnlist-->
     <defaultapn defaultapn="apn111name"/>
     <defaultapn defaultapn="apn111name"/>
     <!--apn自定义参数-->
     <!--the pre-defined apn list-->
     <apnlist>
     <apnlist>
         <!--name,apn。--> <!--mcc,mnc必须设置正确-->
         <!--name is the name of the apn item--> <!-- apn, mcc and mnc should be the correct value of local processor-->
         <apn name="apn111name" apn="apn222apn" mcc="mcc" mnc="mnc"/>
         <apn name="apnName1" apn="apn1" mcc="mcc1" mnc="mnc1"/>
         <apn name="apn222name" apn="apn111apn" mcc="mcc" mnc="mnc"/>
         <apn name="apnName2" apn="apn2" mcc="mcc2" mnc="mnc2"/>
     </apnlist>
     </apnlist>


     <!--自动时间-->      <!--自动时区-->      <!--24小时制-->
     <!--set the autodatetime, autotimezone and 24hour format-->
     <datetime autodatetime="true" autotimezone="true" use24format="true"/>
     <datetime autodatetime="true" autotimezone="true" use24format="true"/>
     <!--自动旋转-->  <!--字体大小-->
     <!--set the auto rotate-->  <!--set fone size-->
     <display autorotate="true" fontsize="huge"/>
     <display autorotate="true" fontsize="huge"/>
     <!--默认输入法-->
     <!--set the default input method-->
     <inputmethod inputmethodname="shurufa"/>
     <inputmethod inputmethodname="shurufa"/>
     <!--位置开关-->
     <!--enable the locate function-->
     <location state="true"/>
     <location state="true"/>
    <!--清除客户序列号-->
    <removecustomsn removesn="true"/>


     <version>0.0.0</version>
     <version>0.0.0</version>

Revision as of 09:13, 14 November 2019

You can config some system settings by using possystemsettings.xml.

possystemsettings.xml file description

<?xml version="1.0" encoding="utf-8"?>
<!--system language-->  <!--time zone-->
<terminal language = "CHINA" timezone = "Asia/Shanghai">
    <!--msr type-->
    <msr type="MMD1100.SPI"/>
    <!--pinpad type-->
    <pinpad type="newland.pp70"/>

    <!-- set the default wifi ssid to HuiYin, this ssid should be included in networklist--><--forceopen means enable wifi immediatly-->
    <wifi defaultssid="HuiYin" forceopen="false"/>
    <!-- The pre-defined wifi ssid list-->
    <networklist>
        <network ssid="HuiYin" security="WPA/WPA2_PSK" password="wizarpossystem"/>
        <network ssid="HuiYin1" security="WPA/WPA2_PSK" password="wizarpossystem"/>
        <network ssid="HuiYin2" security="WPA/WPA2_PSK" password="wizarpossystem"/>
        <network ssid="HuiYin3" security="WPA/WPA2_PSK" password="wizarpossystem"/>
        <network ssid="test" security="NONE" password="wizarpossystem"/>
    </networklist>

    <!-- the default apn name, this apn should be included in the apnlist-->
    <defaultapn defaultapn="apn111name"/>
    <!--the pre-defined apn list-->
    <apnlist>
        <!--name is the name of the apn item--> <!-- apn, mcc and mnc should be the correct value of local processor-->
        <apn name="apnName1" apn="apn1" mcc="mcc1" mnc="mnc1"/>
        <apn name="apnName2" apn="apn2" mcc="mcc2" mnc="mnc2"/>
    </apnlist>

    <!--set the autodatetime, autotimezone and 24hour format-->
    <datetime autodatetime="true" autotimezone="true" use24format="true"/>
    <!--set the auto rotate-->  <!--set fone size-->
    <display autorotate="true" fontsize="huge"/>
    <!--set the default input method-->
    <inputmethod inputmethodname="shurufa"/>
    <!--enable the locate function-->
    <location state="true"/>

    <version>0.0.0</version>
    <versioncode>111</versioncode>
</terminal>

update process

Create the folder:

1) \wizarpos\homesettings\homesettings_XXX\, XXX default is wizarpos, please check the kernel version, it includes splash=XXX, this values is same with the splash value.

2) Or \cloudpos\, this requires PosSysAssistant app version > 2.11.8.

Copy the possystemsettings.xml to this folder, then update, the process is like install APK or update firmware.