CN106888263B - Method for automatically reading equipment parameters and Android industrial control system - Google Patents

Method for automatically reading equipment parameters and Android industrial control system Download PDF

Info

Publication number
CN106888263B
CN106888263B CN201710115735.2A CN201710115735A CN106888263B CN 106888263 B CN106888263 B CN 106888263B CN 201710115735 A CN201710115735 A CN 201710115735A CN 106888263 B CN106888263 B CN 106888263B
Authority
CN
China
Prior art keywords
mobile phone
ios mobile
control system
industrial control
authorization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710115735.2A
Other languages
Chinese (zh)
Other versions
CN106888263A (en
Inventor
廖志升
柳泽涛
黄明民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN DOZZON INNOVATION TECHNOLOGIES Co.,Ltd.
Original Assignee
Shenzhen Youjiji Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Youjiji Technology Co ltd filed Critical Shenzhen Youjiji Technology Co ltd
Priority to CN201710115735.2A priority Critical patent/CN106888263B/en
Publication of CN106888263A publication Critical patent/CN106888263A/en
Application granted granted Critical
Publication of CN106888263B publication Critical patent/CN106888263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method for automatically reading equipment parameters and an Android industrial control system, wherein the method for automatically reading the equipment parameters comprises the following steps: sending a connection trust request to an ios mobile phone; when a first confirmation instruction based on a connection trust request of the ios mobile phone is detected, establishing data connection between the ios mobile phone and the Android industrial control system; sending a parameter query request to an ios mobile phone based on data connection; and when a second confirmation instruction of the ios mobile phone based on the parameter query request is detected, reading the equipment parameters of the ios mobile phone. According to the method and the device, the Android industrial control system is used for reading the equipment parameters in the ios mobile phone corresponding to the ios system, so that data intercommunication between the Android system and the ios system is realized, a user can conveniently inquire the equipment parameters of the ios mobile phone, and the working efficiency of the Android industrial control system for reading the equipment parameters is improved.

Description

Method for automatically reading equipment parameters and Android industrial control system
Technical Field
The invention relates to the technical field of automatic reading of equipment parameters, in particular to a method for automatically reading equipment parameters and an Android industrial control system.
Background
With the development of mobile terminal technology, smart phones are popularized among thousands of households. Today, the smart phones in the market are classified into two types, ios phones and Android phones. The ios mobile phone is different from the Android mobile phone in the difference of mobile phone operating systems carried by the ios mobile phone and the Android mobile phone. The ios system of the ios mobile phone has a closed and complete ecological chain system, and no unofficial developers are allowed to add, delete, modify and check data; due to the characteristic of open source codes, the Android mobile phone allows any developer to add, delete, modify and check the Android mobile phone, and has relatively strong compatibility and flexibility. Data between the ios system and the Android system are not intercommunicated, and independence and integrity of the respective systems are guaranteed.
However, in some specific scenarios, if a user needs to perform data reading on the device parameters of the ios system, and only the Android system reading device is nearby, the user cannot obtain desired data. The user can not span the isolation between different operating systems, and the data intercommunication between the ios system and the Android system is realized, so that the user has to use the ios system official reading equipment to acquire the desired data, and the use experience of the user is greatly reduced.
Disclosure of Invention
The invention mainly aims to provide a method for automatically reading equipment parameters and an Android industrial control system, and aims to solve the technical problem that the equipment parameters of an ios mobile phone cannot be read when users lack official equipment of an ios system due to the fact that the ios system and the Android system do not communicate data.
In order to achieve the above object, an embodiment of the present invention provides a method for automatically reading device parameters, where the method for automatically reading device parameters includes:
sending a connection trust request to an ios mobile phone;
when a first confirmation instruction based on a connection trust request of the ios mobile phone is detected, establishing data connection between the ios mobile phone and the Android industrial control system;
sending a parameter query request to an ios mobile phone based on data connection;
and when a second confirmation instruction of the ios mobile phone based on the parameter query request is detected, reading the equipment parameters of the ios mobile phone.
Optionally, the step of sending a parameter query request to the ios handset based on the data connection further includes:
when the fact that the ios mobile phone rejects the parameter query request sent by the Android industrial control system is detected, sending a first authorization request to the ios mobile phone to obtain a first authorization instruction of the ios mobile phone based on the first authorization request;
and when detecting a first authorization instruction of the ios mobile phone based on the first authorization request, reading the device parameters of the ios mobile phone.
Optionally, the first authorization request includes a verification code, and the verification code is used as a verification source for implementing authorization verification by the ios mobile phone and the Android industrial control system, so as to obtain a first authorization instruction of the ios mobile phone based on the first authorization request.
Optionally, when it is detected that the ios mobile phone rejects the parameter query request sent by the Android industrial control system, the step of sending the first authorization request to the ios mobile phone further includes:
when the ios mobile phone is detected to fail in authorization verification of the verification code in the first authorization request, updating the verification code, and sending a second authorization request to the ios mobile phone, wherein the second authorization request comprises the updated new verification code;
and when detecting a second authorization instruction of the ios mobile phone based on the verification code in the second authorization request, reading the device parameters of the ios mobile phone.
Optionally, the step of updating the verification code and sending the second authorization request to the ios mobile phone when it is detected that the verification code fails to authorize the verification further includes:
and when the fact that the ios mobile phone rejects the second authorization request sent by the Android industrial control system is detected, establishing data connection between the ios mobile phone and the Android industrial control system again.
In addition, in order to achieve the above object, the present invention further provides an Android industrial control system, where the Android industrial control system includes:
the first sending module is used for sending a connection trust request to the ios mobile phone;
the first connection module is used for establishing data connection between the ios mobile phone and the Android industrial control system when detecting a first confirmation instruction of the ios mobile phone based on the connection trust request;
the second sending module is used for sending a parameter query request to the ios mobile phone based on the data connection;
and the reading module is used for reading the equipment parameters of the ios mobile phone when detecting a second confirmation instruction of the ios mobile phone based on the parameter query request.
Optionally, the Android industrial control system further includes:
the third sending module is used for sending the first authorization request to the ios mobile phone to obtain a first authorization instruction of the ios mobile phone based on the first authorization request when the fact that the ios mobile phone rejects the parameter query request sent by the Android industrial control system is detected;
the reading module is further used for reading the device parameters of the ios mobile phone when detecting a first authorization instruction of the ios mobile phone based on the first authorization request.
Optionally, the first authorization request includes a verification code, and the verification code is used as a verification source for implementing authorization verification by the ios mobile phone and the Android industrial control system, so as to obtain a first authorization instruction of the ios mobile phone based on the first authorization request.
Optionally, the Android industrial control system further includes:
the fourth sending module is used for updating the verification code and sending a second authorization request to the ios mobile phone when the ios mobile phone is detected to fail in authorization verification of the verification code in the first authorization request, wherein the second authorization request comprises the updated new verification code;
the reading module is further used for reading the device parameters of the ios mobile phone when detecting a second authorization instruction of the ios mobile phone based on the verification code in the second authorization request.
Optionally, the Android industrial control system further includes:
and the second connection module is used for reestablishing data connection between the ios mobile phone and the Android industrial control system when detecting that the ios mobile phone refuses the second authorization request sent by the Android industrial control system.
Firstly, sending a connection trust request to an ios mobile phone; then when a first confirmation instruction based on the connection trust request of the ios mobile phone is detected, establishing data connection between the ios mobile phone and the Android industrial control system; then sending a parameter query request to the ios mobile phone based on the data connection; and finally, when a second confirmation instruction of the ios mobile phone based on the parameter query request is detected, reading the equipment parameters of the ios mobile phone, wherein the second confirmation instruction is used for authorizing a product Android industrial control system to serve as a medium by a third party, and data intercommunication between the Android system and the ios system is realized on the premise that a user adds trust, so that the equipment parameters in the ios mobile phone corresponding to the ios system are read by the Android industrial control system, the query of the user on the equipment parameters of the ios mobile phone is facilitated, the system compatibility of the Android industrial control system is improved, and the working efficiency of the Android industrial control system for reading the equipment parameters is improved.
Drawings
FIG. 1 is a schematic flow chart illustrating a first embodiment of a method for automatically reading device parameters according to the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of a method for automatically reading device parameters according to the present invention;
FIG. 3 is a flowchart illustrating a fourth embodiment of a method for automatically reading device parameters according to the present invention;
FIG. 4 is a flow chart illustrating a fifth embodiment of a method for automatically reading device parameters according to the present invention;
FIG. 5 is a schematic block diagram of a first embodiment of an Android industrial control system according to the present invention;
FIG. 6 is a schematic block diagram of a second embodiment of an Android industrial control system according to the present invention;
FIG. 7 is a schematic block diagram of a fourth embodiment of an Android industrial control system according to the present invention;
fig. 8 is a schematic block diagram of a fifth embodiment of an Android industrial control system according to the present invention;
FIG. 9 is an interaction timing diagram of the method for automatically reading device parameters according to the present invention.
The objects, features, and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
An Android industrial control system implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The Android industrial control system is an industrial control system based on Android development integration, and refers to an automatic control system for controlling engineering services by using industrial control technologies such as computer technology, microelectronic technology, electrical technology and the like, so that the corresponding technical services can be more automated, efficient and accurate, and controllability and visibility are achieved. The Android industrial control system can be implemented in various forms. For example, the Android industrial control system described in the present invention may be equipped with various terminals of the Android industrial control system, including Android industrial control systems such as a PC computer, an intelligent printer, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a cell phone recycling terminal, and the like, and fixed terminals such as a digital TV, a desktop computer, and the like. It will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Referring to fig. 1 and 9, the present invention provides a method for automatically reading device parameters, which is mainly applied to an Android industrial control system, and in a first embodiment of the method for automatically reading device parameters, the method for automatically reading device parameters includes:
step S10, sending a connection trust request to the ios mobile phone;
generally, the connection between the Android industrial control system and the ios mobile phone requires that a connection interface of the ios mobile phone is connected to a connection interface of the Android industrial control system through a user. Since the operating systems carried by the ios mobile phone and the Android industrial control system belong to different camps, natural system isolation exists, data of the ios mobile phone and the Android industrial control system are not communicated by default unless the ios mobile phone and the Android industrial control system have related access rights, and connection verification of equipment at two ends is still required after the ios mobile phone and the Android industrial control system are connected. The Android industrial control system is used as a request party for reading the parameters of the ios mobile phone, so that a connection trust request needs to be sent to the ios mobile phone, and if the ios mobile phone passes the request, the Android industrial control system can acquire the related permission for accessing the parameters of the ios mobile phone.
Step S20, when detecting that the ios mobile phone is based on the first confirmation instruction of the connection trust request, establishing data connection between the ios mobile phone and the Android industrial control system;
the connection trust request is used for acquiring a data connection established between the Android industrial control system and the ios mobile phone so as to carry out data transmission permission, and the permission is from whether the ios mobile phone allows the connection trust request, namely whether the ios mobile phone generates a first confirmation instruction allowing the connection trust request. The first confirmation instruction represents that the ios mobile phone approves the connection trust request of the Android industrial control system, and allows the Android industrial control system to connect the device data of the Android industrial control system. Generally speaking, the generation of the first confirmation instruction is from the bottom layer protocol of the Android industrial control system to be authenticated by the ios mobile phone; or the user acknowledges the connection trust request; or the Android industrial control system is connected with the ios mobile phone once, and the Android industrial control system belongs to the trusted device of the ios mobile phone, and the like. Based on the first confirmation instruction, the Android industrial control system establishes a connection channel between the ios mobile phone and the Android industrial control system, so that data transmission can be carried out between the ios mobile phone and the Android industrial control system.
Step S30, sending a parameter query request to the ios mobile phone based on the data connection;
after the Android industrial control system establishes data connection with the ios mobile phone, inquiring the equipment parameters of the ios mobile phone requires a request to the ios mobile phone, so that the Android industrial control system sends a parameter inquiry request to the ios mobile phone through the established data connection channel.
Step S40, when detecting a second confirmation instruction of the ios handset based on the parameter query request, reading the device parameter of the ios handset.
The device parameters refer to configuration parameters stored inside the ios mobile phone and some setting information set by the mobile phone, such as the system version, memory capacity, screen resolution, IMEI code, account ID, or user nickname and other data of the mobile phone.
The ios system corresponding to the ios mobile phone has corresponding security daemon processes for data of the ios mobile phone, and the security daemon processes are mainly used for carrying out data encapsulation on the corresponding data, preventing external equipment from being randomly accessed, and protecting data privacy and security. The parameter query request is mainly to obtain the access right of the security daemon, and if the security daemon passes the parameter query request, the ios mobile phone generates a second confirmation instruction of the parameter query request according to the access right. And the Android industrial control system can monitor a second confirmation instruction in real time through the data connection channel, so that the corresponding equipment parameters in the ios mobile phone can be found according to the second confirmation instruction and read. It should be noted that, while giving the corresponding parameter query permission to the Android industrial control system, the second confirmation instruction also specifies a storage path of the device parameter for which the Android industrial control system can perform parameter query, that is, the Android industrial control system can only query and read the device parameter on the storage path, because the device parameter corresponds to a corresponding security daemon, the security daemon allows the Android industrial control system to access the device data guarded by the security daemon, but not access other device data, and therefore only provides the storage path of the corresponding device data.
The invention sends a connection trust request to an ios mobile phone; then when a first confirmation instruction based on the connection trust request of the ios mobile phone is detected, establishing data connection between the ios mobile phone and the Android industrial control system; then sending a parameter query request to the ios mobile phone based on the data connection; and finally, when a second confirmation instruction based on the parameter query request of the ios mobile phone is detected, reading the equipment parameters of the ios mobile phone. According to the invention, the Android industrial control system of the third-party authorized product is used as a medium, and data intercommunication between the Android system and the ios system is realized on the premise that a user adds trust, so that the equipment parameters in the ios mobile phone corresponding to the ios system are read through the Android industrial control system, the inquiry of the equipment parameters of the ios mobile phone by the user is facilitated, the system compatibility of the Android industrial control system is improved, and the working efficiency of the Android industrial control system for reading the equipment parameters is improved.
Further, on the basis of the first embodiment of the method for automatically reading device parameters, a second embodiment of the method for automatically reading device parameters is provided, and referring to fig. 2 and fig. 9, the difference between the second embodiment and the first embodiment is that the step of sending a parameter query request to an ios handset based on a data connection further includes:
step S50, when detecting that the ios mobile phone refuses the parameter query request sent by the Android industrial control system, sending a first authorization request to the ios mobile phone to obtain a first authorization instruction of the ios mobile phone based on the first authorization request;
when detecting a second confirmation instruction of the ios mobile phone based on the parameter query request, the step of reading the device parameters of the ios mobile phone further includes:
and when detecting a first authorization instruction of the ios mobile phone based on the first authorization request, reading the device parameters of the ios mobile phone.
Assuming that the ios mobile phone does not pass through the parameter query request sent by the Android industrial control system, it is proved that the Android industrial control system cannot obtain the permission for reading the equipment parameters for accessing the ios mobile phone under the current condition.
The difference between the parameter query request and the first authorization request is that the permission provided by the second confirmation instruction of the parameter query request to the Android industrial control system can read all configuration information and setting data which are not protected in a locking mode in the ios mobile phone equipment information, such as the version of a local system, the memory capacity, the screen resolution, the IMEI code, the account ID, or the nickname of a user; the permission provided by the first authorization instruction of the first authorization request to the Android industrial control system is limited to reading exposed hardware configuration information or setting data such as a local system version, a memory capacity, a screen resolution, an IMEI code and the like, but cannot read relatively private configuration information and setting data in ios mobile phone equipment information, such as parameter information such as an account ID or a user nickname. Private configuration information and setting data are editable and are less important than public configuration information or setting data. Obviously, on the premise that the complete equipment parameters of the ios mobile phone cannot be obtained, the purpose of the invention can be met by only obtaining the main equipment parameters of the ios mobile phone by neglecting the private accessory equipment parameters in the ios mobile phone. The instruction right requested by the first authorization request is lower than that of the parameter query request, and the range of the device parameters which can be read by the first authorization request is relatively narrow.
Correspondingly, when a first authorization instruction of the ios mobile phone based on the first authorization request is detected, the device parameters of the ios mobile phone are read.
Further, on the basis of the second embodiment of the method for automatically reading the device parameters, a third embodiment of the method for automatically reading the device parameters is provided, and the difference between the third embodiment and the second embodiment is that the first authorization request includes a verification code, and the verification code is used as a verification source for realizing authorization verification by the ios mobile phone and the Android industrial control system, so as to obtain a first authorization instruction of the ios mobile phone based on the first authorization request.
In this embodiment, a verification code is provided in the first authorization request, and the verification code can be provided as a verification reference source for identity authentication of the ios mobile phone by the Android industrial control system in the first authorization request.
Specifically, a first authorization request sent by the Android industrial control system includes a verification code, the verification code can be displayed on a display interface of the Android industrial control system, if a user inputs specific content of the verification code in an ios mobile phone, from the perspective of the ios mobile phone, the ios mobile phone judges whether the verification code is matched through a data connection channel, if the verification code is matched, the fact that the user allows the first authorization request is proved, and then the local machine can provide the right corresponding to the first authorization request of the Android industrial control system. The ios mobile phone generates a first authorization instruction corresponding to the first authorization request according to the first authorization instruction. The Android industrial control system can monitor the first authorization instruction in real time through the data connection channel, so that the corresponding reading permission is obtained.
Further, on the basis of the third embodiment of the method for automatically reading device parameters, referring to fig. 3 and fig. 9, a fourth embodiment of the method for automatically reading device parameters is provided, where a difference between the fourth embodiment and the third embodiment is that, when it is detected that the ios mobile phone rejects the parameter query request sent by the Android industrial control system, the step of sending the first authorization request to the ios mobile phone further includes:
step S60, when the verification code authorization verification failure is detected, the verification code is updated, and a second authorization request is sent to the ios mobile phone, wherein the second authorization request comprises the updated new verification code;
when detecting a second confirmation instruction of the ios mobile phone based on the parameter query request, the step of reading the device parameters of the ios mobile phone further includes:
and when detecting a second authorization instruction of the ios mobile phone based on the second authorization request, reading the device parameters of the ios mobile phone.
The input of the verification code on the ios mobile phone may be wrong, which may cause that the verification code authorization verification fails, and further cause that the first authorization request is rejected, so that the Android industrial control system cannot obtain the first authorization instruction corresponding to the first authorization request. In order to prevent the first authorization request from being refused due to input error, the first authorization request is retransmitted, and system resources are wasted. And when the verification code authorization verification failure is detected, the Android industrial control system updates the verification code, sends the verification code and the second authorization request to the ios mobile phone, and performs a new round of authorization verification to obtain a second authorization instruction of the second authorization request. If the second authorization instruction is obtained, the Android industrial control system is proved to obtain the permission of the ios mobile phone based on the second authorization request.
And if the Android industrial control system detects the second authorization instruction, reading the equipment parameters of the ios mobile phone.
Further, on the basis of the fourth embodiment of the method for automatically reading device parameters according to the present invention, a fifth embodiment of the method for automatically reading device parameters is provided, and referring to fig. 4 and fig. 9, the difference between the fifth embodiment and the fourth embodiment is that the step of updating the authentication code and sending the second authorization request to the ios handset when the authentication failure of the authentication code is detected further includes:
and step S70, when the fact that the ios mobile phone rejects the second authorization request sent by the Android industrial control system is detected, reestablishing data connection between the ios mobile phone and the Android industrial control system.
If the fact that the ios mobile phone rejects the first authorization request of the Android industrial control system is detected, it is proved that the request that the Android industrial control system acquires the device parameter authority of the ios mobile phone for multiple times does not pass through the request, that is, the ios mobile phone does not pass through the parameter query request, the first authorization request and the second authorization request of the Android industrial control system, but is in a data connection state at present, and then the state is likely to be invalid, or the data connection between the Android industrial control system and the ios mobile phone is in an abnormal state. In order to correct the possible fault problem, the current data connection state needs to be initialized to the unconnected state, and connection verification is performed again, that is, data connection is established again between the ios mobile phone and the Android industrial control system.
Referring to fig. 5 and 9, the present invention further provides an Android industrial control system, in a first embodiment of the Android industrial control system, the Android industrial control system includes:
a first sending module 10, configured to send a connection trust request to an ios mobile phone;
generally, the connection between the Android industrial control system and the ios mobile phone requires that a connection interface of the ios mobile phone is connected to a connection interface of the Android industrial control system through a user. Since the operating systems carried by the ios mobile phone and the Android industrial control system belong to different camps, natural system isolation exists, data of the ios mobile phone and the Android industrial control system are not communicated by default unless the ios mobile phone and the Android industrial control system have related access rights, and connection verification of equipment at two ends is still required after the ios mobile phone and the Android industrial control system are connected. The Android industrial control system is used as a request party for reading the parameters of the ios mobile phone, so that the first sending module 10 needs to send a connection trust request to the ios mobile phone, and if the ios mobile phone passes the request, the Android industrial control system can acquire the related permission for accessing the parameters of the ios mobile phone.
The first connection module 20 is configured to establish a data connection between the ios mobile phone and the Android industrial control system when detecting a first confirmation instruction of the ios mobile phone based on the connection trust request;
the connection trust request is used for acquiring a data connection established between the Android industrial control system and the ios mobile phone so as to carry out data transmission permission, and the permission is from whether the ios mobile phone allows the connection trust request, namely whether the ios mobile phone generates a first confirmation instruction allowing the connection trust request. The first confirmation instruction represents that the ios mobile phone approves the connection trust request of the Android industrial control system, and allows the Android industrial control system to connect the device data of the Android industrial control system. Generally speaking, the generation of the first confirmation instruction is from the bottom layer protocol of the Android industrial control system to be authenticated by the ios mobile phone; or the user acknowledges the connection trust request; or the Android industrial control system is connected with the ios mobile phone once, and the Android industrial control system belongs to the trusted device of the ios mobile phone, and the like. Based on the first confirmation instruction, the first connection module 20 establishes a connection channel between the ios mobile phone and the Android industrial control system, so that data transmission can be performed between the ios mobile phone and the Android industrial control system.
The second sending module 30 is configured to send a parameter query request to the ios mobile phone based on the data connection;
after the Android industrial control system establishes data connection with the ios mobile phone, the parameter query of the ios mobile phone needs to be requested to the ios mobile phone, so that the second sending module 30 sends a parameter query request to the ios mobile phone through the established data connection channel.
The reading module 40 is configured to, when a second confirmation instruction based on the parameter query request is detected, read the device parameter of the ios mobile phone.
The device parameters refer to configuration parameters stored inside the ios mobile phone and some setting information set by the mobile phone, such as the system version, memory capacity, screen resolution, IMEI code, account ID, or user nickname and other data of the mobile phone.
The ios system corresponding to the ios mobile phone has corresponding security daemon processes for data of the ios mobile phone, and the security daemon processes are mainly used for carrying out data encapsulation on the corresponding data, preventing external equipment from being randomly accessed, and protecting data privacy and security. The parameter query request is mainly to obtain the access right of the security daemon, and if the security daemon passes the parameter query request, the ios mobile phone generates a second confirmation instruction of the parameter query request according to the access right. And the Android industrial control system can monitor a second confirmation instruction in real time through the data connection channel, so that the corresponding equipment parameters in the ios mobile phone can be found according to the second confirmation instruction and read. It should be noted that, while giving the corresponding parameter query permission to the Android industrial control system, the second confirmation instruction also specifies a storage path of the device parameter for which the Android industrial control system can perform parameter query, that is, the Android industrial control system can only query and read the device parameter on the storage path, because the device parameter corresponds to a corresponding security daemon, the security daemon allows the Android industrial control system to access the device data guarded by the security daemon, but not access other device data, and therefore only provides the storage path of the corresponding device data.
Firstly, a first sending module 10 sends a connection trust request to an ios mobile phone; then, when the first connection module 20 detects that the ios mobile phone is based on a first confirmation instruction of the connection trust request, establishing data connection between the ios mobile phone and the Android industrial control system; then the second sending module 30 sends a parameter query request to the ios mobile phone based on the data connection; finally, when detecting a second confirmation instruction of the ios mobile phone based on the parameter query request, the reading module 40 reads the equipment parameters of the ios mobile phone, and the data intercommunication between the Android system and the ios system is realized on the premise that the user adds trust by using a third party authorization product Android industrial control system as a medium, so that the equipment parameters in the ios mobile phone corresponding to the ios system are read through the Android industrial control system, the query of the user on the equipment parameters of the ios mobile phone is facilitated, the system compatibility of the Android industrial control system is improved, and the working efficiency of the Android industrial control system for reading the equipment parameters is improved.
Further, on the basis of the first embodiment of the Android industrial control system of the present invention, a second embodiment of the Android industrial control system is provided, and referring to fig. 6 and fig. 9, a difference between the second embodiment and the first embodiment is that the Android industrial control system further includes:
the third sending module 50 is configured to send the first authorization request to the ios mobile phone when it is detected that the ios mobile phone rejects the parameter query request sent by the Android industrial control system, so as to obtain a first authorization instruction of the ios mobile phone based on the first authorization request;
the reading module 40 is further configured to read the device parameters of the ios mobile phone when detecting a first authorization instruction of the ios mobile phone based on the first authorization request.
Assuming that the ios mobile phone does not pass through the parameter query request sent by the Android industrial control system, it is proved that the Android industrial control system cannot obtain the permission for reading the equipment parameters for accessing the ios mobile phone under the current condition.
The difference between the parameter query request and the first authorization request is that the permission provided by the second confirmation instruction of the parameter query request to the Android industrial control system can read all configuration information and setting data which are not protected in a locking mode in the ios mobile phone equipment information, such as the version of a local system, the memory capacity, the screen resolution, the IMEI code, the account ID, or the nickname of a user; the permission provided by the first authorization instruction of the first authorization request to the Android industrial control system is limited to reading exposed hardware configuration information or setting data such as a local system version, a memory capacity, a screen resolution, an IMEI code and the like, but cannot read relatively private configuration information and setting data in ios mobile phone equipment information, such as parameter information such as an account ID or a user nickname. Private configuration information and setting data are editable and are less important than public configuration information or setting data. Obviously, on the premise that the complete equipment parameters of the ios mobile phone cannot be obtained, the purpose of the invention can be met by only obtaining the main equipment parameters of the ios mobile phone by neglecting the private accessory equipment parameters in the ios mobile phone. The instruction right requested by the first authorization request is lower than that of the parameter query request, and the range of the device parameters which can be read by the first authorization request is relatively narrow.
Correspondingly, the reading module 40 is further configured to read the device parameters of the ios handset when detecting the first authorization instruction of the ios handset based on the first authorization request.
Further, on the basis of the second embodiment of the Android industrial control system, a third embodiment of the Android industrial control system is provided, and the difference between the third embodiment and the second embodiment is that the first authorization request includes a verification code, and the verification code is used as a verification source for realizing authorization verification between the ios mobile phone and the Android industrial control system, so as to obtain a first authorization instruction of the ios mobile phone based on the first authorization request.
The first authorization request can be obtained only when the ios mobile phone passes the verification, and the verification mode can be user fingerprint verification confirmation, or the user inputs an authority password to the ios mobile phone, or verification code verification confirmation, and the like to open the authority requested by the Android industrial control system.
The embodiment provides a verification code, which can be used as a verification reference source provided by an Android industrial control system to an ios mobile phone for identity authentication in a first authorization request.
Specifically, a first authorization request sent by the Android industrial control system includes a verification code, the verification code can be displayed on a display interface of the Android industrial control system, if a user inputs specific content of the verification code in an ios mobile phone, from the perspective of the ios mobile phone, the ios mobile phone judges whether the verification code is matched through a data connection channel, if the verification code is matched, the fact that the user allows the first authorization request is proved, and then the local machine can provide the right corresponding to the first authorization request of the Android industrial control system. The ios mobile phone generates a first authorization instruction corresponding to the first authorization request according to the first authorization instruction. The Android industrial control system can monitor the first authorization instruction in real time through the data connection channel, so that the corresponding reading permission is obtained.
Further, on the basis of the third embodiment of the Android industrial control system, a fourth embodiment of the Android industrial control system is provided, and with reference to fig. 7 and fig. 9, the difference between the fourth embodiment and the third embodiment is that the Android industrial control system further includes:
a fourth sending module 60, configured to update the verification code when it is detected that the ios mobile phone fails to verify the verification code in the first authorization request, and send a second authorization request to the ios mobile phone, where the second authorization request includes the updated new verification code;
the reading module 40 is further configured to read the device parameters of the ios handset when detecting a second authorization instruction of the ios handset based on the verification code in the second authorization request.
The input of the verification code on the ios mobile phone may be wrong, which may cause that the verification code authorization verification fails, and further cause that the first authorization request is rejected, so that the Android industrial control system cannot obtain the first authorization instruction corresponding to the first authorization request. In order to prevent the first authorization request from being refused due to input error, the first authorization request is retransmitted, and system resources are wasted. When the verification code authorization verification failure is detected, the fourth sending module 60 updates the verification code, sends the verification code and the second authorization request to the ios mobile phone, and performs a new round of authorization verification to obtain a second authorization instruction of the second authorization request. If the second authorization instruction is obtained, the Android industrial control system is proved to obtain the permission of the ios mobile phone based on the second authorization request.
And if the Android industrial control system detects the second authorization instruction in the reading module 40, reading the device parameters of the ios mobile phone.
Further, on the basis of the fourth embodiment of the Android industrial control system, a fifth embodiment of the Android industrial control system is provided, and referring to fig. 8 and fig. 9, a difference between the fifth embodiment and the fourth embodiment is that the Android industrial control system further includes:
and the second connection module 70 is configured to reestablish data connection between the ios mobile phone and the Android industrial control system when it is detected that the ios mobile phone rejects the second authorization request sent by the Android industrial control system.
If the fact that the ios mobile phone rejects the first authorization request of the Android industrial control system is detected, it is proved that the request that the Android industrial control system acquires the device parameter authority of the ios mobile phone for multiple times does not pass through the request, that is, the ios mobile phone does not pass through the parameter query request, the first authorization request and the second authorization request of the Android industrial control system, but is in a data connection state at present, and then the state is likely to be invalid, or the data connection between the Android industrial control system and the ios mobile phone is in an abnormal state. In order to correct the possible fault problem, the current data connection state needs to be initialized to the unconnected state, and connection verification is performed again, that is, data connection is established again between the ios mobile phone and the Android industrial control system.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method for automatically reading device parameters, the method comprising:
sending a connection trust request to an ios mobile phone;
when a first confirmation instruction based on a connection trust request of the ios mobile phone is detected, establishing data connection between the ios mobile phone and the Android industrial control system;
sending a parameter query request to an ios mobile phone based on data connection;
when a second confirmation instruction based on the parameter query request of the ios mobile phone is detected, reading the equipment parameters of the ios mobile phone;
after the step of sending the parameter query request to the ios mobile phone based on the data connection, the method further comprises the following steps:
when the fact that the ios mobile phone rejects the parameter query request sent by the Android industrial control system is detected, sending a first authorization request to the ios mobile phone to obtain a first authorization instruction of the ios mobile phone based on the first authorization request;
when a first authorization instruction of the ios mobile phone based on a first authorization request is detected, reading the device parameters of the ios mobile phone, wherein the instruction authority requested by the first authorization request is lower than the instruction authority of the parameter query request.
2. The method for automatically reading the device parameters according to claim 1, wherein the first authorization request includes a verification code, and the verification code is used as a verification source for implementing authorization verification between the ios mobile phone and the Android industrial control system, so as to obtain a first authorization instruction of the ios mobile phone based on the first authorization request.
3. The method for automatically reading the device parameters according to claim 2, wherein the step of sending the first authorization request to the ios mobile phone when the ios mobile phone is detected to reject the parameter query request sent by the Android industrial control system further includes:
when the ios mobile phone is detected to fail in authorization verification of the verification code in the first authorization request, updating the verification code, and sending a second authorization request to the ios mobile phone, wherein the second authorization request comprises the updated new verification code;
and when detecting a second authorization instruction of the ios mobile phone based on the verification code in the second authorization request, reading the device parameters of the ios mobile phone.
4. A method for automatically reading device parameters according to claim 3, wherein the step of updating the authentication code upon detection of a failed authentication of the authentication code authorization and sending a second authorization request to the ios handset is followed by further steps of:
and when the fact that the ios mobile phone rejects the second authorization request sent by the Android industrial control system is detected, establishing data connection between the ios mobile phone and the Android industrial control system again.
5. The Android industrial control system is characterized by comprising:
the first sending module is used for sending a connection trust request to the ios mobile phone;
the first connection module is used for establishing data connection between the ios mobile phone and the Android industrial control system when detecting a first confirmation instruction of the ios mobile phone based on the connection trust request;
the second sending module is used for sending a parameter query request to the ios mobile phone based on the data connection;
the reading module is used for reading the equipment parameters of the ios mobile phone when detecting a second confirmation instruction of the ios mobile phone based on the parameter query request;
the Android industrial control system further comprises:
the third sending module is used for sending the first authorization request to the ios mobile phone to obtain a first authorization instruction of the ios mobile phone based on the first authorization request when the fact that the ios mobile phone rejects the parameter query request sent by the Android industrial control system is detected;
the reading module is further configured to read a device parameter of the ios mobile phone when detecting a first authorization instruction of the ios mobile phone based on a first authorization request, where an instruction permission requested by the first authorization request is lower than an instruction permission of the parameter query request.
6. The Android industrial control system of claim 5, wherein the first authorization request includes a verification code, and the verification code is used as a verification source for enabling the ios mobile phone and the Android industrial control system to realize authorization verification, so as to obtain a first authorization instruction of the ios mobile phone based on the first authorization request.
7. The Android industrial control system of claim 6, further comprising:
the fourth sending module is used for updating the verification code and sending a second authorization request to the ios mobile phone when the ios mobile phone is detected to fail in authorization verification of the verification code in the first authorization request, wherein the second authorization request comprises the updated new verification code;
the reading module is further used for reading the device parameters of the ios mobile phone when detecting a second authorization instruction of the ios mobile phone based on the verification code in the second authorization request.
8. The Android industrial control system of claim 7, further comprising:
and the second connection module is used for reestablishing data connection between the ios mobile phone and the Android industrial control system when detecting that the ios mobile phone refuses the second authorization request sent by the Android industrial control system.
CN201710115735.2A 2017-02-28 2017-02-28 Method for automatically reading equipment parameters and Android industrial control system Active CN106888263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710115735.2A CN106888263B (en) 2017-02-28 2017-02-28 Method for automatically reading equipment parameters and Android industrial control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710115735.2A CN106888263B (en) 2017-02-28 2017-02-28 Method for automatically reading equipment parameters and Android industrial control system

Publications (2)

Publication Number Publication Date
CN106888263A CN106888263A (en) 2017-06-23
CN106888263B true CN106888263B (en) 2020-11-13

Family

ID=59180069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710115735.2A Active CN106888263B (en) 2017-02-28 2017-02-28 Method for automatically reading equipment parameters and Android industrial control system

Country Status (1)

Country Link
CN (1) CN106888263B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104467923A (en) * 2013-09-16 2015-03-25 北京三星通信技术研究有限公司 Apparatus interacting method, apparatus and system
US9448776B1 (en) * 2015-01-08 2016-09-20 AppNotch LLC Method and apparatus for converting a website into a native mobile application
CN106341811A (en) * 2016-09-14 2017-01-18 广东欧珀移动通信有限公司 Data migration method and server

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024025A (en) * 2012-12-07 2013-04-03 康佳集团股份有限公司 Method and system of managing and sharing application information of intelligent device
CN103246708A (en) * 2013-04-16 2013-08-14 康佳集团股份有限公司 Multi-screen interactive search method and system based on intelligent terminals
CN106059635A (en) * 2016-07-15 2016-10-26 北京海誉动想科技股份有限公司 Bluetooth setting method and device for electronic equipment and Bluetooth connection method
CN106357607A (en) * 2016-07-20 2017-01-25 北京海誉动想科技股份有限公司 Method and device for connection, security verification, communication, communication monitoring of electronic equipment
CN106375942B (en) * 2016-09-20 2021-02-23 杭州联络互动信息科技股份有限公司 Method and device for transmitting data information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104467923A (en) * 2013-09-16 2015-03-25 北京三星通信技术研究有限公司 Apparatus interacting method, apparatus and system
US9448776B1 (en) * 2015-01-08 2016-09-20 AppNotch LLC Method and apparatus for converting a website into a native mobile application
CN106341811A (en) * 2016-09-14 2017-01-18 广东欧珀移动通信有限公司 Data migration method and server

Also Published As

Publication number Publication date
CN106888263A (en) 2017-06-23

Similar Documents

Publication Publication Date Title
US6591095B1 (en) Method and apparatus for designating administrative responsibilities in a mobile communications device
US20180091978A1 (en) Universal Integrated Circuit Card Having A Virtual Subscriber Identity Module Functionality
RU2391796C2 (en) Limited access to functional sets of mobile terminal
US7860525B2 (en) System, method, and computer program product for service and application configuration in a network device
KR102406757B1 (en) A method of provisioning a subscriber profile for a secure module
US8925042B2 (en) Connecting devices to an existing secure wireless network
US9025769B2 (en) Method of registering smart phone when accessing security authentication device and method of granting access permission to registered smart phone
JP6652767B2 (en) Methods for managing the status of connected devices
CN107241339B (en) Identity authentication method, identity authentication device and storage medium
US9380038B2 (en) Bootstrap authentication framework
CN108696868B (en) Processing method and device of credential information for network connection
US20070049265A1 (en) Apparatus and method for local device management
KR20160114620A (en) Methods, devices and systems for dynamic network access administration
WO2017076216A1 (en) Server, mobile terminal, and internet real name authentication system and method
KR20070120157A (en) Apparatus and methods for service programming of a wireless device on a wireless communications network
CN105721450A (en) Method, device and system for logging in network game
CN114760112B (en) Wireless local area network-oriented intelligent home equipment networking method, system, equipment and storage medium
CN112512048A (en) Mobile network access system, method, storage medium and electronic device
JP4987006B2 (en) Method and apparatus for deferring access to a service
CN105516054A (en) User authentication method and user authentication device
JP2006514763A (en) Distributed authentication system and method for permitting connection to communication device
CN106888263B (en) Method for automatically reading equipment parameters and Android industrial control system
CN111093196A (en) Method for 5G user terminal to access 5G network, user terminal equipment and medium
US20150180848A1 (en) Push-Based Trust Model For Public Cloud Applications
CN104021076A (en) Application testing method and router

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211008

Address after: 518000 5-d1, D2, Huake building, 520-1-1, Shenyun Road, Gaofa community, Shahe street, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: SHENZHEN DOZZON INNOVATION TECHNOLOGIES Co.,Ltd.

Address before: 518000 Room 606, 6 / F, Songri Dingsheng building, No. 9996, Shennan Avenue, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee before: SHENZHEN YOUJIJI TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right