欢迎图片

2 End-user mode

Last modified by Mora Zhou on 2023/12/22 10:16

Description:

The end-user account is a secondary account(Sub account), From the cloud business account(Parent account)Create and manage

Function overview

Personal information page

Edit user personal information.

Gateway Management Page

  • Set Management Gateway Group.
  • The interface displays information about the gateway.
  • Support the replacement of gateway configuration, the following is the gateway project configuration, networking configuration, etc. to cover the original gateway running configuration.
  • End users can customize the configuration of gateway parameters, which are created by the parent account of the end user and used by the end user.
  • Support gateway operations, such as name editing, switching groups, adding favorites and other basic functions.
    • ou can add favorites to commonly used gateways or key focus gateways, which is convenient for users to find.
  • Support some function buttons of the gateway, such as closing V-NET, restarting the gateway, debugging, firmware upgrade, feedback information, etc.
    • After closing V-NET, the gateway will disconnect all external network connections.
    • Debug the gateway that is running normally and is executing the script. The platform will see the script running print information reported by the gateway. The debugging function can be used with the feedback information button.
    • The feedback function button can check whether the gateway executes the script normally or reports an error, etc.
  • You can view the last gateway project configuration, network configuration and other information sent to the gateway through the platform.

Gateway project configuration page

The configuration is sent to the gateway, and the configuration information of the gateway operation.

The creation of the gateway project configuration must be associated with the access configuration assigned to the cloud provider account (parent account).

The vwmt compressed package can be used to import the configuration, but the imported configuration must also be associated with the access configuration assigned to the cloud provider account (parent account).

Gateway project configuration details page (five modules: communication port configuration, collection point configuration, MQTT configuration, script configuration, custom information).

  • Communication port configuration: refer to the related operations of VNET communication port.
  • Collection point configuration: refer to related operations of VNET monitoring point.
    • When adding a collection point, you can define to set custom information for the collection point. The custom information is provided by the parent account of the current account (cloud business account) and used by the end user.
    • After the custom information of the gateway project configuration collection point is sent to the gateway through the gateway project configuration, the gateway uses the relevant interface function when executing the script, such as bns_get_config('user') to retrieve and use it,
  • MQTT configuration:
    • Configure the path and parameters of the gateway to access the MQTT server, use the related interface function MQTT.setup_cfg() in the "Hui Box Interface Document" in the script configuration module script to obtain and use MQTT information (see "Hui Box Interface Document" for details 》-MQTT operating instructions).
    • If the parent account (cloud merchant account) of the current end-user has closed the relevant permissions, the current user will not be able to see and set the MQTT information. And when the gateway project configuration is delivered to the gateway, the gateway will only use the MQTT information in the access configuration associated with the current gateway project configuration by default. The current user can configure MQTT information only after the parent account has enabled relevant permissions, and when the gateway project configuration is sent to the gateway, the gateway will use the MQTT configuration in the gateway project configuration instead of using the current gateway project configuration to associate access to the MQTT information in the configuration.
  • Script configuration:
    • Configure the running script of the gateway.
    • If the parent account of the current end-user (cloud merchant account) has disabled related permissions, the current user will not be able to see and set the script. And when the gateway project configuration is delivered to the gateway, the gateway will only use the script in the access configuration associated with the current gateway project configuration by default. The current user can configure the script after the parent account has enabled the relevant permissions. After the gateway project configuration is sent to the gateway, the gateway will use the script in the gateway project configuration to associate with the current gateway project configuration to access the script in the configuration.
  • Custom information:
    • Customized information can be set for the current gateway project configuration. The customized information is provided by the parent account (cloud business account) of the current account and used by the end user.
    • After the gateway project configuration custom information is sent to the gateway through the gateway project configuration, the gateway uses related interface functions such as bns_get_config('user') to retrieve and use when executing the script.

Debug page

The current user can turn on the debugging function through the online and normally running gateway bound to the account. After the debugging function is turned on, the gateway will report the information printed in the running script to the platform, and the user can see it on the debugging page Related script running information.

The debugging function can be used in conjunction with the feedback information button on the gateway management page. After the user sends the gateway project configuration to the gateway, the gateway will execute the script that exists in the gateway project configuration. Whether the configuration is delivered successfully and whether the script is running abnormally can be checked through the feedback information function button. If the script is running normally, you can see the corresponding print information on the debugging page after the debugging is turned on.

Networking configuration page

Users can customize, edit and set the networking mode of different gateway models

After the user sends the networking configuration to the corresponding model gateway, the gateway will cover the original device networking mode

End-user account management page

The user can only display and operate the module after being set as a group administrator by the parent account (cloud business account)

The group administrator manages the end users in a group and group on behalf of the cloud parent account

Simple description of the script

Functional modules

End-user account login

  1. User login needs to select the radio button shown in ② as shown in the figure.
  2. User login can choose the current display language, as shown in Figure ①, currently only Chinese and English are supported.
  3. User login can choose whether to display the password through the figure ③.
  4. Users can log in through an account or a bound mailbox.
  5. User login needs to enter the name of the parent account of the account.

Terminal operation help document_html_b00b974062aca7ce.png

Personal information page

The user can edit some personal information marked in red as shown in the figure below.

Terminal operation help document_html_1baf3d69b94a672a.png

Gateway Management Page

  1. The gateway is bound to the user account, and a series of operations of the gateway are completed on this page.
  2. Support users to set different groups and manage the gateway in groups.
  3. Support users to add frequently used gateways or focus gateways to their favorites(Right-click the gateway to operate), Optimize management.
  4. When the user binds the gateway, he can configure the custom gateway parameter information corresponding to the gateway. After binding, he can also modify the gateway parameter information by editing the gateway parameter information. The gateway parameter field is provided by the parent account and used by the end user. After the gateway parameter field information is sent to the gateway through the gateway project configuration, it is the gateway through the relevant interface function when executing the script, such asbns_get_config('bind)Retrieve and use in the script.
  5. Support users to drag and drop sorting in front of the gateway on this page.
  6. Users can operate the gateway to restart, unbind and other operations(Right-click the gateway to operate).
  7. The user can operate the gateway to close V-NET(Right-click the gateway to operate),shut down V-NET The gateway will disconnect all external network connections.
  8. The user can issue the gateway project configuration to the online and normally operating gateway. After the configuration is issued, the original operating configuration of the gateway will be overwritten. Whether the configuration is successfully issued can be checked through the feedback information function button.
  9. The user can issue the networking configuration to the online and normally operating gateway. After the networking configuration is issued to the corresponding model gateway, the gateway will cover the original device networking mode. Whether the configuration has been successfully issued can be checked through the feedback information function button.
  10. For gateways with lower firmware versions, they can also be upgraded through the platform.
  11. If you need to view the running information of the gateway script, you can use the debugging function button to debug, view the script running log information, and cooperate with the feedback information button to check whether the script is running normally.

Terminal operation help document_html_bf0a5d7f7934d527.png

Terminal operation help document_html_7486c719d3639d14.png

Terminal operation help document_html_97812056d6e20106.png

Terminal operation help document_html_9694afc7943dd34.png

Terminal operation help document_html_7845fb7ec2c6a2da.png

Terminal operation help document_html_406f732c70d74bd7.png

Gateway project configuration page

The gateway project configuration is the configuration information issued to the gateway to run.

Gateway project configurations of different gateway models can be created, but all must be associated with the access configuration assigned to the cloud provider account (parent account).

The gateway project configuration can be created by one-click on the distribution project assigned by the parent account (cloud business account) (the communication port, collection point, script and other information in the distribution project will be copied).

  • You can use the vwmt compressed package to import the configuration, but the imported configuration must also be associated with the access configuration assigned to the cloud provider account (parent account).
  • For the gateway engineering configuration between different models, the system will filter the configuration information that does not meet the requirements.
  • Such as:Import a V-BOX S-4G gateway engineering configuration compressed package into the configuration of the V-BOX S-00 model, and the system will directly filter the communication port and the relevant data under the communication port that do not conform to the V-BOX S-00 model .

Gateway project configuration details page (Five modules: communication port configuration, collection point configuration, MQTT configuration, script configuration, custom information, four function points: send to gateway, export configuration, import Excel, export Excel)

  • Communication port configuration: Configurable gateway serial port connection type, please refer to the related operations of VNET communication port for details.
  • Collection point configuration: refer to related operations of VNET monitoring points
    • Users can add collection point groups of different trigger types. Collection points can be added to the group. The upper limit of the number of collection points that can be added is controlled by the model of the current gateway project configuration (for example: the current gateway project configuration model is V-BOX S-4G, the current account number The parent account of is set the number of trigger type collection points added for this model, and the collection points within this model added by the end user will be restricted).
    • The upper limit of the number of collection points that can be added in a group under each trigger type refers to the total number of collection points that can be added under all groups of the trigger type.
    • When adding a collection point, you can define custom information for the collection point. The custom information is provided by the parent account of the current account (cloud business account) and used by the end user.
    • After the gateway project configuration collection point custom information is sent to the gateway through the gateway project configuration, the gateway uses related interface functions such as bns_get_config('user') to retrieve and use when executing the script.

MQTT configuration:

  • Configure the path and parameters of the gateway to access the MQTT server, use the related interface function MQTT.setup_cfg() in the "Hui Box Interface Document" in the script configuration module script to obtain and use MQTT information (see "Hui Box Interface Document" for details 》-MQTT operating instructions).
  • If the parent account (cloud merchant account) of the current end-user has closed related permissions, the current user will not be able to see the MQTT module and set the MQTT information. And when the gateway project configuration is delivered to the gateway, the gateway will only use the MQTT information in the access configuration associated with the current gateway project configuration by default. After the parent account has enabled relevant permissions, the current user can configure MQTT information, and when the gateway project configuration is sent to the gateway, the gateway will use the MQTT configuration in the gateway project configuration instead of using the current gateway project configuration to associate access to the MQTT information in the configuration .

Script configuration:

  • Configure the gateway to run the script.
  • If the parent account of the current end-user (cloud business account) has closed related permissions, the current user will not be able to see the script module and set the script. And when the gateway project configuration is delivered to the gateway, the gateway will only use the script in the access configuration associated with the current gateway project configuration by default. The current user can configure the script after the parent account has enabled the relevant permissions. After the gateway project configuration is sent to the gateway, the gateway will use the script in the gateway project configuration to associate with the current gateway project configuration to access the script in the configuration

Custom information:

  • Customized information can be set for the current gateway project configuration. The customized information is provided by the parent account (cloud merchant account) of the current account, and the end-user edits the field content information.
  • After the gateway project configuration custom information is sent to the gateway through the gateway project configuration, it is called and used by the gateway through related interface functions such as bns_get_config('user') when executing the script.

Delivered to the gateway:

  • The user can open the gateway pop-up interface, the system will automatically filter out the gateways that match the current configuration model, and are online and operating normally. The user can directly issue the configuration by selecting the gateway.

Export configuration:

  • Click the export configuration function button, the user will export a vwmt compressed package, which covers all the information in the gateway project configuration (such as: communication port, free label, collection point grouping, collection point related information, MQTT configuration information, script).
  • The exported vwmt compressed package can be imported as a new configuration on the platform gateway project configuration page.
  • Or use the maintenance control configuration tool to directly issue to the gateway, covering the original operating information of the gateway.
  • When the export configuration is imported as the import configuration, the model type selected for import is inconsistent with the export model, the system will automatically pass the relevant data that does not meet the requirements (such as: export as the configuration of V-BOX S-4G, but used to import the cloud When the platform is a new configuration, the V-BOX E-4G model is selected, and the system will automatically filter out other information such as communication ports that do not meet the requirements).

Import Excel

  • Support users to import related data into the gateway project configuration through Excel tables, custom editing of communication ports, collection points, free labels, etc.
  • After the import is successful, the original communication port, free label, collection point grouping, and collection point data in the configuration will be deleted.
  • Excel table supports the independent import of unrelated table cells, or import all relevant information.
  • Please check the Excel template for import content related information (click the Excel template function button to export the relevant template).

For example:

  • The user needs to import the communication port and the free label under the communication port, and only the communication port table unit and the free label table unit need to exist in the Excel table.
  • The user needs to import the collection point grouping associated with the internal address, and the Excel table only needs to have the collection point grouping table unit.
  • If the user needs to import collection points, there must be collection point grouping, and the Excel table must have collection point grouping and collection point table units.
  • If the user needs to import the collection point, and the collection point needs to have related information in the communication port and free label, then the communication port, free label, collection point grouping and collection belt and table unit must be imported.

Export Excel

  • Support the user to directly export the data in Excel form of the gateway project configuration communication port, free label, collection point grouping and collection point.

Terminal operation help document_html_7147bbb183e1abd3.png

Terminal operation help document_html_3b5500ba8626d084.png

Terminal operation help document_html_95fa50b87cc3507f.png

Terminal operation help document_html_32347eac3cb33016.png

Terminal operation help document_html_77a9d243dcdfef0e.png

Terminal operation help document_html_13cbe58d56232cac.png

Terminal operation help document_html_2d6b1b94fc002a0.png

Terminal operation help document_html_70cea56a8e86e0c7.png

Terminal operation help document_html_225f464c86acc8a2.png

Terminal operation help document_html_543de719a584102e.png

Debug page

For the user binding, online, normal operation, script execution, and there is a gateway printing information in the script, after the user opens the debugging, the gateway will report the script printing information, and the user can view the script running status on the platform.

The debugging function can be used in conjunction with the feedback information button on the gateway management page (for example, after the gateway project configuration is delivered to the gateway, you can view the configuration delivery status and the script running status in the feedback information. If the configuration delivery fails or If the script runs abnormally, the debugging function will not be able to view any feedback information).

Terminal operation help document_html_6baba730ca7961c7.png

Terminal operation help document_html_61ccb5a04a14a4d0.png

Networking configuration page

The user can customize, edit and set the networking mode of different gateway models.

After the user sends the networking configuration to the corresponding model gateway, the gateway will cover the original device networking mode.

Terminal operation help document_html_f5293750667826c.png

Terminal operation help document_html_7ed43b87f91eb1d7.png

End-user account management page

The end-user acts as the group administrator to manage the end-users in a certain group under the parent account.

The rights that can be exercised are:

  • Add, delete and reorganize members.
  • Enable and disable members.
  • Check the gateways bound to the members of the group, and debug the gateways or issue configurations to replace the original gateway running configurations.
  • Check the configuration and configuration details of the gateway project configured by the group members.

Terminal operation help document_html_5e4599f49c2a9fd7.png

Terminal operation help document_html_9106b788f90538ba.png

Terminal operation help document_html_c1fe72e65724108b.png

Terminal operation help document_html_459659ed86d00dfd.png

Simple description of the script

For the basic functions of the script, please refer to the tutorial in the URL

https://www.runoob.com/lua/lua-tutorial.html

For the interface functions such as reading and writing of platform data and internal address operations that need to be used in the script, please refer to the description of the interface functions in the "Hui Box Interface Document".

There must be a main running function in the definition script, the format is: function xxx.main() end, where xxx is the script name.

When used in the script to obtain platform custom gateway parameters, configure custom parameters, or configure custom parameters for collection points, use the interface function bns_get_config() in the "Smart Box Interface Document".

Please contact the technical staff for other related operations