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"?>
<terminal
<!--系统语言-->  <!--系统时区-->
language = "CHINA"
<terminal language = "CHINA" timezone = "Asia/Shanghai">
timezone = "GMT+08:00">
    <!--msr类型-->
<apns defaultapn="unicom">
    <msr type="MMD1100.SPI"/>
<!--optional parameter mcc, mnc, proxy, port, MMSProxy, MMSPort, userName, server, password, MMSC, authType, protocol, roamingProtocol, type, bearer, MVNOType, MVNOMatchData
    <!--pinpad类型-->
<apn name="unicom" value="unim2m.njm2mapn" mcc="" mnc="" proxy="" port="" MMSProxy="" MMSPort="" userName="" server="" password="" MMSC="" authType="" protocol="" roamingProtocol="" type="" bearer="" MVNOType="" MVNOMatchData=""/>
    <pinpad type="newland.pp70"/>
<apn name="unicom2" value="unim2m.njm2mapn" />
 
</apns>
    <!--默认wifi和下面network‘ssid’一致--><!--强制打开-->
<vpns defaultvpn=="">
    <wifi defaultssid="enetwork1" forceopen="false"/>
<!-- optional parameter:dnsdemains dnsservers routes -->
    <!--wifi自定义参数-->
<!-- type :PPTP,L2TP/IPSec Psk, ... -->
    <networklist>
<apn name="" type="" address="127.0.0.1" pppencryption="true" dnsdemains="" dnsservers="" dnsroutes=""/>
<apn name="" type="" address="127.0.0.1" ppep="true" />
<vpns>
<accessibility>
<!-- font size -->
<largetext value="true">
<!-- screen -->
<autorotate value="true">
</accessibility>
<time&date>
<automatictime&date value="true"/>
<automatictimezone value="true"/>
<use24format value="true"/>
<timezone = "GMT+08:00"/>
</time&date> 
  <wifi forceopen="true" defaultssid="HuiYin" >
         <network ssid="HuiYin" security="WPA/WPA2_PSK" password="wizarpossystem"/>
         <network ssid="HuiYin" security="WPA/WPA2_PSK" password="wizarpossystem"/>
         <network ssid="HuiYin1" security="WPA/WPA2_PSK" password="wizarpossystem"/>
         <network ssid="HuiYin1" security="WPA/WPA2_PSK" password="wizarpossystem"/>
Line 35: Line 19:
         <network ssid="HuiYin3" security="WPA/WPA2_PSK" password="wizarpossystem"/>
         <network ssid="HuiYin3" security="WPA/WPA2_PSK" password="wizarpossystem"/>
         <network ssid="test" security="NONE" password="wizarpossystem"/>
         <network ssid="test" security="NONE" password="wizarpossystem"/>
  </wifi>
    </networklist>
 
    <!--默认apn,和下面的apn‘name’一致-->
    <defaultapn defaultapn="apn111name"/>
    <!--apn自定义参数-->
    <apnlist>
        <!--name,apn。-->  <!--mcc,mnc必须设置正确-->
        <apn name="apn111name" apn="apn222apn" mcc="mcc" mnc="mnc"/>
        <apn name="apn222name" apn="apn111apn" mcc="mcc" mnc="mnc"/>
    </apnlist>
 
    <!--自动时间-->      <!--自动时区-->      <!--24小时制-->
    <datetime autodatetime="true" autotimezone="true" use24format="true"/>
    <!--自动旋转-->  <!--字体大小-->
    <display autorotate="true" fontsize="huge"/>
    <!--默认输入法-->
    <inputmethod inputmethodname="shurufa"/>
    <!--位置开关-->
    <location state="true"/>
    <!--清除客户序列号-->
    <removecustomsn removesn="true"/>
 
    <version>0.0.0</version>
    <versioncode>111</versioncode>
</terminal>
</terminal>
</syntaxhighlight >
</syntaxhighlight >
== update process ==
== update process ==
Create the folder:
Create the folder:

Revision as of 05:36, 14 November 2019

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

possystemsettings.xml file description

<?xml version="1.0" encoding="utf-8"?>
<!--系统语言-->  <!--系统时区-->
<terminal language = "CHINA" timezone = "Asia/Shanghai">
    <!--msr类型-->
    <msr type="MMD1100.SPI"/>
    <!--pinpad类型-->
    <pinpad type="newland.pp70"/>

    <!--默认wifi和下面networkssid一致--><!--强制打开-->
    <wifi defaultssid="enetwork1" forceopen="false"/>
    <!--wifi自定义参数-->
    <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>

    <!--默认apn,和下面的apnname一致-->
    <defaultapn defaultapn="apn111name"/>
    <!--apn自定义参数-->
    <apnlist>
        <!--nameapn-->  <!--mccmnc必须设置正确-->
        <apn name="apn111name" apn="apn222apn" mcc="mcc" mnc="mnc"/>
        <apn name="apn222name" apn="apn111apn" mcc="mcc" mnc="mnc"/>
    </apnlist>

    <!--自动时间-->      <!--自动时区-->      <!--24小时制-->
    <datetime autodatetime="true" autotimezone="true" use24format="true"/>
    <!--自动旋转-->  <!--字体大小-->
    <display autorotate="true" fontsize="huge"/>
    <!--默认输入法-->
    <inputmethod inputmethodname="shurufa"/>
    <!--位置开关-->
    <location state="true"/>
    <!--清除客户序列号-->
    <removecustomsn removesn="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.