CN113535132B - Equipment access method, device, terminal equipment and storage medium - Google Patents

Equipment access method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN113535132B
CN113535132B CN202110847126.2A CN202110847126A CN113535132B CN 113535132 B CN113535132 B CN 113535132B CN 202110847126 A CN202110847126 A CN 202110847126A CN 113535132 B CN113535132 B CN 113535132B
Authority
CN
China
Prior art keywords
access
component
preset
page
components
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
CN202110847126.2A
Other languages
Chinese (zh)
Other versions
CN113535132A (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.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information 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 China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110847126.2A priority Critical patent/CN113535132B/en
Publication of CN113535132A publication Critical patent/CN113535132A/en
Application granted granted Critical
Publication of CN113535132B publication Critical patent/CN113535132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a device access method, which comprises the following steps: acquiring an access type of equipment to be accessed and equipment information of the equipment to be accessed; determining selected components corresponding to the access types in a preset component set, wherein the preset component set comprises components corresponding to different access types; constructing an access program by using the selected component and the equipment information; and performing access operation on the equipment to be accessed by using the access program. The invention also discloses a device access device, terminal equipment and a computer readable storage medium. The method does not need to re-develop a new app or develop a new access scheme in the existing app, thereby reducing the development and maintenance costs of the access scheme and greatly reducing the maintenance costs of the equipment to be accessed.

Description

Equipment access method, device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of device control technologies, and in particular, to a device access method, a device, a terminal device, and a computer readable storage medium.
Background
With the continuous development of information technology, smart home is a trend in the current age, and more manufacturers are put into the development of smart devices, and smart devices such as smart sockets, smart door locks, air conditioners, televisions, refrigerators and the like are layered endlessly. People access the equipment through the software app, and then the purpose of remote control equipment is achieved.
In the related art, a device access method is disclosed, an app is developed or an access scheme of a device to be accessed is added to a public access app, so that a user accesses the device to be accessed through the app.
But with the existing access method, the maintenance cost of the equipment to be accessed is high.
Disclosure of Invention
The invention mainly aims to provide a device access method, a device, a terminal device and a computer readable storage medium, and aims to solve the technical problem that the maintenance cost of a device to be accessed is high by adopting the existing access method in the prior art.
In order to achieve the above object, the present invention proposes a device access method, the method comprising the steps of:
Acquiring an access type of equipment to be accessed and equipment information of the equipment to be accessed;
Determining selected components corresponding to the access types in a preset component set, wherein the preset component set comprises components corresponding to different access types;
Constructing an access program by using the selected component and the equipment information;
And performing access operation on the equipment to be accessed by using the access program.
Optionally, before the step of determining the selected component corresponding to the access type in the preset component set, the method further includes:
acquiring a preset access type and a preset access scheme corresponding to the preset access type;
creating a preset component by utilizing the preset access type and the preset access scheme;
creating a mapping relation between the preset access component and the preset access type;
And obtaining the preset assembly set based on the preset assembly and the mapping relation.
Optionally, the selected component comprises a plurality of; the step of constructing an access procedure using the selected component and the device information, comprises:
Configuring the plurality of selected components with the device information to generate a plurality of current components;
constructing a component switching sequence of the plurality of current components;
determining a first-choice component with the forefront loading sequence from the plurality of current components;
and obtaining the access program based on the component switching sequence, the preferred component and the plurality of current components.
Optionally, before the obtaining the access procedure based on the component switching sequence, the preferred component and the plurality of current components, the method further includes:
Constructing an access page set by using the equipment information;
The step of obtaining the access procedure based on the switching sequence, the preferred component and the plurality of current components includes:
Obtaining an access component set based on the switching sequence, the preferred component and the plurality of current components;
And obtaining the access program based on the access page set and the access component set.
Optionally, the step of constructing an access page set by using the device information includes:
Determining a plurality of selected pages corresponding to the plurality of selected components in a preset page set, wherein the preset page set comprises pages corresponding to different components in the preset component set;
Configuring the plurality of selected pages by using the equipment information to generate a plurality of current pages;
determining the page switching sequence of the plurality of current pages based on the component switching sequence;
determining a preferred page from the plurality of current pages based on the preferred component;
And obtaining an access page set based on a preset switching animation, the page switching sequence, the preferred page and the plurality of current pages.
Optionally, the step of obtaining the access component set based on the switching sequence, the preferred component and the plurality of current components includes:
in the control layer, obtaining an access component set based on the switching sequence, the preferred component and the plurality of current components;
The step of obtaining an access page set based on a preset switching animation, the page switching sequence, the preferred page and the plurality of current pages comprises the following steps:
in the display layer, an access page set is obtained based on a preset switching animation, the page switching sequence, the preferred page and the plurality of current pages;
the step of obtaining the access program based on the access page set and the access component set includes:
and obtaining the access program based on the access page set, the access component set and preset interlayer logic, wherein the preset interlayer logic is control logic between the control layer and the display layer.
Optionally, the preset assembly set includes a user guiding assembly, a code scanning assembly, an equipment model input assembly, a wifi input assembly, a connection waiting assembly, a two-dimensional code generating assembly, a wifi switching assembly and an equipment scanning assembly.
In addition, to achieve the above object, the present invention also proposes an apparatus access device, the device comprising:
The device comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring the access type of equipment to be accessed and the equipment information of the equipment to be accessed;
the determining module is used for determining selected components corresponding to the access types in a preset component set, wherein the preset component set comprises components corresponding to different access types;
A building module for building an access procedure using the selected component and the device information;
And the access module is used for performing access operation on the equipment to be accessed by utilizing the access program.
In addition, to achieve the above object, the present invention also proposes a terminal device including: a memory, a processor and a device access program stored on the memory and running on the processor, which when executed by the processor performs the steps of the device access method as claimed in any one of the preceding claims.
In addition, to achieve the above object, the present invention also proposes a computer-readable storage medium having stored thereon a device access program which, when executed by a processor, implements the steps of the device access method as set forth in any one of the above.
The technical scheme of the invention provides a device access method, which comprises the following steps: acquiring an access type of equipment to be accessed and equipment information of the equipment to be accessed; determining selected components corresponding to the access types in a preset component set, wherein the preset component set comprises components corresponding to different access types; constructing an access program by using the selected component and the equipment information; and performing access operation on the equipment to be accessed by using the access program.
In the existing access method, when a new device is accessed, a new app needs to be developed, or a new access scheme needs to be developed in the existing public access app, and more time is required to be consumed for developing the app, so that the development and maintenance cost of the access scheme are higher, and the maintenance cost of the device to be accessed is higher. By utilizing the method of the invention, the access program is directly constructed based on the selected components corresponding to the access types in the preset component set and the equipment information of the equipment to be accessed, and a new app is not required to be restarted, and a new access scheme is not required to be developed in the existing app, thereby reducing the development and maintenance cost of the access scheme and greatly reducing the maintenance cost of the equipment to be accessed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a terminal device structure of a hardware running environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of the device access method of the present invention;
Fig. 3 is a schematic diagram of an access procedure obtaining procedure of AP access according to the present invention;
fig. 4 is a block diagram of a first embodiment of the device access apparatus of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a terminal device structure of a hardware running environment according to an embodiment of the present invention.
In general, a terminal device includes: at least one processor 301, a memory 302 and a device access program stored on said memory and executable on said processor, said device access program being configured to implement the steps of the device access method as described before.
Processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 301 may be implemented in at least one hardware form of DSP (DIGITAL SIGNAL Processing), FPGA (Field-Programmable gate array), PLA (Programmable Logic Array ). Processor 301 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central ProcessingUnit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 301 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. The processor 301 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for handling relevant device access method operations so that the device access method model may be self-training learned, improving efficiency and accuracy.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 302 is used to store at least one instruction for execution by processor 301 to implement the device access method provided by the method embodiments of the present application.
In some embodiments, the terminal may further optionally include: a communication interface 303, and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by a bus or signal lines. The respective peripheral devices may be connected to the communication interface 303 through a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, a display screen 305, and a power supply 306.
The communication interface 303 may be used to connect at least one peripheral device associated with an I/O (Input/Output) to the processor 301 and the memory 302. In some embodiments, processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 301, the memory 302, and the communication interface 303 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 304 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuitry 304 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 304 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (WIRELESS FIDELITY ) networks. In some embodiments, the radio frequency circuit 304 may further include NFC (NEAR FIELD Communication) related circuits, which is not limited by the present application.
The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 305 is a touch screen, the display 305 also has the ability to collect touch signals at or above the surface of the display 305. The touch signal may be input as a control signal to the processor 301 for processing. At this point, the display 305 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 305 may be one, the front panel of an electronic device; in other embodiments, the display screen 305 may be at least two, respectively disposed on different surfaces of the electronic device or in a folded design; in still other embodiments, the display 305 may be a flexible display disposed on a curved surface or a folded surface of the electronic device. Even more, the display screen 305 may be arranged in an irregular pattern other than rectangular, i.e., a shaped screen. The display 305 may be made of LCD (LiquidCrystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The power supply 306 is used to power the various components in the electronic device. The power source 306 may be alternating current, direct current, disposable or rechargeable. When the power source 306 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 does not constitute a limitation of the terminal device, and may include more or less components than illustrated, or may combine certain components, or may be arranged in different components.
Furthermore, the embodiment of the application also provides a computer readable storage medium, wherein a device access program is stored on the computer readable storage medium, and the device access program realizes the steps of the device access method when being executed by a processor. Therefore, a detailed description will not be given here. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments of the present application. As an example, the program instructions may be deployed to be executed on one terminal device or on multiple terminal devices located at one site or on multiple terminal devices distributed across multiple sites and interconnected by a communication network.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of computer programs, which may be stored on a computer-readable storage medium, and which, when executed, may comprise the steps of the embodiments of the methods described above. The computer readable storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random access Memory (Random AccessMemory, RAM), or the like.
Based on the above hardware structure, an embodiment of the device access method of the present invention is provided.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a device access method according to the present invention, where the method is used for a terminal device, and the method includes the following steps:
Step S11: and acquiring the access type of the equipment to be accessed and the equipment information of the equipment to be accessed.
It should be noted that, the execution body of the present invention is a terminal device, the terminal device is installed with a device access program, and when the terminal device executes the device access program, the steps of the device access method of the present invention are implemented.
In general, the device to be accessed is an internet of things device to be accessed, such as an intelligent socket, an intelligent door lock, an air conditioner, a television, a refrigerator, and the like, and the invention is not particularly limited. The Access types of different devices to be accessed are different, and the Access types can be AP (Access Point), zigbee protocol Access, andlink protocol Access, bluetooth protocol Access and the like; one device to be accessed may include multiple access types, and the access type of the present invention refers to a preferred access type of the device to be accessed, and when the access failure occurs by using the method and the preferred access type of the present invention, the access is performed by using the method and other access types of the present invention.
For example, an internet of things device, the access type comprises an AP access and a Bluetooth protocol access, wherein the AP access is a preferred access type, and the access type is determined to be the AP access when the method is operated for the first time; if the AP fails to access, continuing to take the Bluetooth protocol access as the access type, and executing the method again.
In addition, the device information of the device to be accessed may include information of a device number, a device model number, a device name, a device brand, and the like of the device to be accessed.
Step S12: and determining selected components corresponding to the access types in a preset component set, wherein the preset component set comprises components corresponding to different access types.
Step S13: and constructing an access program by using the selected component and the equipment information.
It should be noted that, in the present invention, a preset component set needs to be constructed first, then, in performing step S12, a component corresponding to the access type (i.e., the selected component) is directly determined in the preset component set, and an access program is obtained based on the device information of the selected component and the device to be accessed, so that a new app is not required to be developed to obtain the access program, and a new access scheme is not required to be developed in the existing public access app to obtain the access program, thereby greatly saving the obtaining time of the access program and reducing the maintenance cost of the access program.
Specifically, before the step of determining the selected component corresponding to the access type in the preset component set, the method further includes: acquiring a preset access type and a preset access scheme corresponding to the preset access type; creating a preset component by utilizing the preset access type and the preset access scheme; creating a mapping relation between the preset access component and the preset access type; and obtaining the preset assembly set based on the preset assembly and the mapping relation.
It should be noted that, the preset access types may refer to all access types related to the existing internet of things device, including, but not limited to, the AP access, zigbee protocol access, andlink protocol access, bluetooth protocol access, and the like described above. Meanwhile, different preset access types may have different access schemes, and all possible access schemes corresponding to the preset access types need to be acquired, namely the preset access schemes.
In the invention, the following 8 preset components are created specifically based on the existing preset access type and the preset access scheme corresponding to the preset access type: user guidance component, sweep a yard subassembly, equipment model input component, wifi input component, connect wait component, two-dimensional code generation component, wifi switch module and equipment scanning subassembly, then preset the subassembly in this 8 based on, obtain above-mentioned preset subassembly collection.
Specifically, the selected component includes a plurality of; the step of constructing an access procedure using the selected component and the device information, comprises: configuring the plurality of selected components with the device information to generate a plurality of current components; constructing a component switching sequence of the plurality of current components; determining a first-choice component with the forefront loading sequence from the plurality of current components; and obtaining the access program based on the component switching sequence, the preferred component and the plurality of current components.
It should be noted that, for a device to be accessed, the corresponding selected components include a plurality of components, in other words, the plurality of selected components need to be determined in the preset component set, and the plurality of selected components are "combined" so that the plurality of selected components act together, and the functions of the plurality of selected components support each other, so that the access of the device to be accessed can be achieved.
It can be appreciated that the information configuration needs to be performed on a plurality of selected components by using the device information of the device to be accessed, and the plurality of selected components can only become a plurality of current components specific to the device to be accessed. The multiple current components need to operate according to a certain sequence to realize the access of the device to be accessed, so that the component switching sequence needs to be constructed based on the sequence, and the multiple current components operate according to the component switching sequence (or are called to load according to the component switching sequence) to realize the access of the device to be accessed, namely: the switching order (also known as the run order or load order) of the plurality of current components is fixed and not random. The first current component for operation is the preferred component, and the preferred component is one component. When the component switching sequence is constructed, the component switching sequence may be constructed by using a preset sequence of each component in the preset component set, that is, when the preset component set is constructed, the preset sequence of each component may also be constructed, and the preset sequence may be set by a user, so that the invention is not particularly limited.
For example, the selected components corresponding to the B device to be accessed include an a component, a B component, a c component and a d component, firstly, the selected components need to be configured by using the device information of the device to be accessed to obtain an a1 component, a B1 component, a 1c component and a d1 component, then, a component switching sequence B1-c1-a1-d1 is constructed, and a preferred component is determined to be B1, and finally, based on the a1 component, the B1 component, the 1c component and the d1 component, the component switching sequence B1-c1-a1-d1 and the preferred component B1, an access program is obtained.
Further, before the obtaining the access procedure based on the component switching sequence, the preferred component, and the plurality of current components, the method further includes: constructing an access page set by using the equipment information; the step of obtaining the access procedure based on the switching sequence, the preferred component and the plurality of current components includes: obtaining an access component set based on the switching sequence, the preferred component and the plurality of current components; and obtaining the access program based on the access page set and the access component set.
It should be noted that, in the present invention, the access component set may refer to a bottom logic portion that runs inside the terminal device, where the access page set is used to show a surface layer running logic of the access component set, and is used to show a simple running process of the access component set to a user.
For example, according to the above example, based on the a1 component, the b1 component, the 1c component and the d1 component, the component switching sequence b1-c1-a1-d1 and the preferred component b1, an access component set is obtained, and at the same time, an access page set is also constructed to display the access component set, the loading sequence b1-c1-a1-d1 and the first loading sequence b1.
Specifically, the step of constructing an access page set by using the device information includes: determining a plurality of selected pages corresponding to the plurality of selected components in a preset page set, wherein the preset page set comprises pages corresponding to different components in the preset component set; configuring the plurality of selected pages by using the equipment information to generate a plurality of current pages; determining the page switching sequence of the plurality of current pages based on the component switching sequence; determining a preferred page from the plurality of current pages based on the preferred component; and obtaining an access page set based on a preset switching animation, the page switching sequence, the preferred page and the plurality of current pages.
It should be noted that, for the components in the preset component set, pages are corresponding to the preset page set, and one page is used for displaying the running process of the component corresponding to the page in an image. It can be understood that when the preset assembly set is constructed, the preset page set is correspondingly constructed: creating a page corresponding to the components in the preset component set, and constructing a mapping relation between the page and the components in the preset component set to obtain a final preset page set.
In the preset page set, the selected page is corresponding to the selected component, and one selected component corresponds to one selected page. And similar to the step of configuring the plurality of selected components by using the device information to generate a plurality of current components, configuring the plurality of selected pages by using the device information to generate a plurality of current pages, namely generating a plurality of current pages specific to the device to be accessed. The default page set also includes pages in 8: the device comprises a user guide page, a code scanning page, a device model input page, a wifi input page, a connection waiting page, a two-dimensional code generation page, a wifi switching page and a device scanning page.
For example, based on the example above, based on the a1 component, the b1 component, the 1c component, and the d1 component, the component switching order b1-c1-a1-d1, and the preferred component being b1, an access component set is obtained; the selected pages corresponding to the a component, the b component, the c component and the d component are as follows: after a2 page, b2 page, c2 page and d2 page are configured by using equipment information, the obtained current pages are a3 page, b3 page, c3 page and d3 page, the obtained page switching sequence is b3-c3-a3-d3, and the preferred page is a b3 page corresponding to the b1 component.
It can be understood that, in order to make the switching process between pages smoother, the user experience is better, and the preset switching animation can be added, so that the obtained pages in the access page set can have good visual effect when being switched. The preset switching animation can be set by a user based on requirements, the invention is not limited in particular, and the preset switching animation can be linear animation or nonlinear animation.
Further, the step of obtaining an access component set based on the switching sequence, the preferred component and the plurality of current components includes: in the control layer, obtaining an access component set based on the switching sequence, the preferred component and the plurality of current components; correspondingly, the step of obtaining the access page set based on the preset switching animation, the page switching sequence, the preferred page and the plurality of current pages comprises the following steps: in the display layer, an access page set is obtained based on a preset switching animation, the page switching sequence, the preferred page and the plurality of current pages; correspondingly, the step of obtaining the access program based on the access page set and the access component set includes: and obtaining the access program based on the access page set, the access component set and preset interlayer logic, wherein the preset interlayer logic is control logic between the control layer and the display layer.
In some embodiments, the access procedure may be an MVP architecture (Model-View-PRESENTER, model-View-renderer) when the terminal device is running. When the access program based on the MVP architecture is constructed, an access page set is obtained by using a display layer (View), an access component set is obtained by using a control layer (PRESENTER), and then the access program is obtained by using preset interlayer logic of the display layer and the control layer in the MVP architecture.
Step S14: and performing access operation on the equipment to be accessed by using the access program.
After the access program is obtained, the constructed access program can be utilized to carry out access operation on the equipment to be accessed. In the present invention, the access program is built based on the selected components determined in the preset component set, and it is not necessary to develop a new app, or to develop a new access scheme in the existing public access app.
In some embodiments, the access component and access page may be an integral page fragment (fragment), i.e., a fragment set in which the preset page set and the preset component set are integral, including the preset page fragment in 8: the user guidance page fragment, the scan page fragment, the device model input page fragment, wifi input page fragment, the connection wait page fragment, the two-dimensional code generation page fragment, wifi switch page fragments and the device scan page fragment. The step S11-S14 of the present invention may be performed according to the step of obtaining an access component set of the present invention (the fragments in the fragment set are used as the preset component set, and the fragments in the fragment set are used as components in the preset component set), to obtain an access procedure.
Referring to fig. 3, fig. 3 is a schematic diagram of an access procedure obtaining procedure of AP access according to the present invention. In fig. 3, the access type of the device to be accessed is AP access; the binding (display layer) may refer to a binding (BaseActivity) for representing a process of obtaining a set of access pages, and the binding (control layer) may refer to a binding (BasePresenter) for representing a process of obtaining a set of access components. In fig. 3, the AP accesses the corresponding selected page fragment as: the user directs page fragments, sweeps the code page fragment, wifi to input page fragments and connect waiting page fragments. Obtaining the four selected page fragments, creating a base class AddProgressBaseActivity by using the four selected page fragments, and completing the acquisition of an access page set of a display layer, namely realizing AP binding (display layer), wherein the method can comprise initializing equipment personalized information, switching animation, returning to a public function and the like; meanwhile, by using the four selected page fragments, a base class AddProgressBase Presenter is created, and the acquisition of an access component set of a control layer is completed, namely, AP binding (control layer) is realized, which can comprise common capabilities such as page switching, clicking event, initial page setting, binding result processing, dotting and the like.
For example, in the access procedure obtaining process corresponding to the AP access, PRESENTER of the AP access needs to implement the following functions: the interaction to be loaded with AP access involves pages, specifically user guidance page fragment, code scanning page fragment, wifi input page fragment and connection waiting page fragment; the personalized binding function is realized, which is different from the binding functions of other binding templates; determining a first loading interaction page fragment; a fragment switching order of the interaction page fragments is determined.
In some embodiments, if there are new components, pages or fragments, only the components in the preset component set, the pages in the preset page set or fragments in the fragments set need to be correspondingly created, and there is no need to re-develop the APP or re-add a new access scheme to the APP.
The technical scheme of the invention provides a device access method, which comprises the following steps: acquiring an access type of equipment to be accessed; determining selected components corresponding to the access types in a preset component set, wherein the preset component set comprises components corresponding to different access types; constructing an access program by using the selected component and the equipment information of the equipment to be accessed; and performing access operation on the equipment to be accessed by using the access program.
The technical scheme of the invention provides a device access method, which comprises the following steps: acquiring an access type of equipment to be accessed and equipment information of the equipment to be accessed; determining selected components corresponding to the access types in a preset component set, wherein the preset component set comprises components corresponding to different access types; constructing an access program by using the selected component and the equipment information; and performing access operation on the equipment to be accessed by using the access program.
In the existing access method, when a new device is accessed, a new app needs to be developed, or a new access scheme needs to be developed in the existing public access app, and more time is required to be consumed for developing the app, so that the development and maintenance cost of the access scheme are higher, and the maintenance cost of the device to be accessed is higher. By utilizing the method of the invention, the access program is directly constructed based on the selected components corresponding to the access types in the preset component set and the equipment information of the equipment to be accessed, and a new app is not required to be restarted, and a new access scheme is not required to be developed in the existing app, thereby reducing the development and maintenance cost of the access scheme and greatly reducing the maintenance cost of the equipment to be accessed.
Referring to fig. 4, fig. 4 is a block diagram showing a first embodiment of an apparatus for accessing a terminal device according to the present invention, based on the same inventive concept as the previous embodiment, the apparatus includes:
An obtaining module 10, configured to obtain an access type of a device to be accessed and device information of the device to be accessed;
A determining module 20, configured to determine a selected component corresponding to the access type from a preset component set, where the preset component set includes components corresponding to different access types;
A building module 30 for building an access procedure using the selected component and the device information;
And the access module 40 is configured to perform an access operation on the device to be accessed by using the access procedure.
It should be noted that, since the steps executed by the apparatus of this embodiment are the same as those of the foregoing method embodiment, specific implementation manners and technical effects that can be achieved of the apparatus of this embodiment may refer to the foregoing embodiment, and will not be repeated herein.
The foregoing description is only of the optional embodiments of the present invention, and is not intended to limit the scope of the invention, and all the equivalent structural changes made by the description of the present invention and the accompanying drawings or the direct/indirect application in other related technical fields are included in the scope of the invention.

Claims (5)

1. A method of device access, the method comprising the steps of:
Acquiring an access type of equipment to be accessed and equipment information of the equipment to be accessed;
determining selected components corresponding to the access types in a preset component set, wherein the preset component set comprises components corresponding to different access types; the preset component set is a fragment set;
Constructing an access program by using the selected component and the equipment information; the access program operation architecture is a model-view-presenter architecture;
performing access operation on the equipment to be accessed by using the access program;
Before the step of determining the selected component corresponding to the access type in the preset component set, the method further includes:
acquiring a preset access type and a preset access scheme corresponding to the preset access type;
creating a preset component by utilizing the preset access type and the preset access scheme;
Creating a mapping relation between a preset access component and the preset access type;
acquiring the preset assembly set based on the preset assembly and the mapping relation;
The selected component includes a plurality; the step of constructing an access procedure using the selected component and the device information, comprises:
Configuring the plurality of selected components with the device information to generate a plurality of current components;
constructing a component switching sequence of the plurality of current components;
determining a first-choice component with the forefront loading sequence from the plurality of current components;
Determining a plurality of selected pages corresponding to the plurality of selected components in a preset page set, wherein the preset page set comprises pages corresponding to different components in the preset component set; the preset page set is a fragment set;
Configuring the plurality of selected pages by using the equipment information to generate a plurality of current pages;
determining the page switching sequence of the plurality of current pages based on the component switching sequence;
determining a preferred page from the plurality of current pages based on the preferred component;
In the display layer, an access page set is obtained based on a preset switching animation, the page switching sequence, the preferred page and the plurality of current pages; the access page set is a base class AddProgressBaseActivity;
In a control layer, obtaining an access component set based on the switching sequence, the preferred component and the plurality of current components; the access component set is a base class AddProgressBasePresenter;
and obtaining the access program based on the access page set, the access component set and preset interlayer logic, wherein the preset interlayer logic is control logic between the control layer and the display layer.
2. The method of claim 1, wherein the set of preset components includes a user guidance component, a code scanning component, a device model input component, a wifi input component, a connection waiting component, a two-dimensional code generation component, a wifi switching component, and a device scanning component.
3. A device access apparatus, the apparatus comprising:
The device comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring the access type of equipment to be accessed and the equipment information of the equipment to be accessed;
the determining module is used for determining selected components corresponding to the access types in a preset component set, wherein the preset component set comprises components corresponding to different access types; the preset component set is a fragment set;
A building module for building an access procedure using the selected component and the device information; the access program operation architecture is a model-view-presenter architecture;
the access module is used for performing access operation on the equipment to be accessed by utilizing the access program;
The device is specifically configured to configure a plurality of selected components by using the equipment information to generate a plurality of current components; constructing a component switching sequence of the plurality of current components; determining a first-choice component with the forefront loading sequence from the plurality of current components; determining a plurality of selected pages corresponding to the plurality of selected components in a preset page set, wherein the preset page set comprises pages corresponding to different components in the preset component set; the preset page set is a fragment set; configuring the plurality of selected pages by using the equipment information to generate a plurality of current pages; determining the page switching sequence of the plurality of current pages based on the component switching sequence; determining a preferred page from the plurality of current pages based on the preferred component; in the display layer, an access page set is obtained based on a preset switching animation, the page switching sequence, the preferred page and the plurality of current pages; the access page set is a base class AddProgressBaseActivity; in a control layer, obtaining an access component set based on the switching sequence, the preferred component and the plurality of current components; the access component set is a base class AddProgressBasePresenter; and obtaining the access program based on the access page set, the access component set and preset interlayer logic, wherein the preset interlayer logic is control logic between the control layer and the display layer.
4. A terminal device, characterized in that the terminal device comprises: memory, a processor and a device access program stored on the memory and running on the processor, which device access program when executed by the processor implements the steps of the device access method according to claim 1 or 2.
5. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a device access program, which when executed by a processor, implements the steps of the device access method according to claim 1 or 2.
CN202110847126.2A 2021-07-26 2021-07-26 Equipment access method, device, terminal equipment and storage medium Active CN113535132B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110847126.2A CN113535132B (en) 2021-07-26 2021-07-26 Equipment access method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110847126.2A CN113535132B (en) 2021-07-26 2021-07-26 Equipment access method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113535132A CN113535132A (en) 2021-10-22
CN113535132B true CN113535132B (en) 2024-05-07

Family

ID=78120948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110847126.2A Active CN113535132B (en) 2021-07-26 2021-07-26 Equipment access method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113535132B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699692A (en) * 2014-01-11 2014-04-02 樊建 Internet-of-things access platform data management method
CN107526579A (en) * 2016-06-22 2017-12-29 中兴通讯股份有限公司 A kind of application program page development management method and device
CN108156058A (en) * 2018-01-09 2018-06-12 深圳绿米联创科技有限公司 Access method and device, the readable storage medium storing program for executing of intelligent gateway device
CN108804081A (en) * 2018-05-04 2018-11-13 武汉极意网络科技有限公司 Control recognition methods and system in a kind of Fragment
CN109885311A (en) * 2019-01-28 2019-06-14 平安科技(深圳)有限公司 A kind of generation method and equipment of application program
CN110489193A (en) * 2019-08-14 2019-11-22 北京猎户星空科技有限公司 Interface control method, device and the storage medium of smart machine
CN111200545A (en) * 2018-11-16 2020-05-26 中移(杭州)信息技术有限公司 Intelligent device access method and device
CN111224797A (en) * 2018-11-23 2020-06-02 杭州海康威视系统技术有限公司 Equipment access method and device and electronic equipment
CN111435338A (en) * 2019-01-14 2020-07-21 中国移动通信集团终端有限公司 Multi-intelligent hardware unified management and control method, platform, system, equipment and storage medium
CN111654498A (en) * 2020-06-03 2020-09-11 深圳市信锐网科技术有限公司 Equipment adding method and Internet of things platform
CN111813393A (en) * 2020-03-20 2020-10-23 北京四维智联科技有限公司 Application program development method and device
CN112153088A (en) * 2019-06-27 2020-12-29 北京微云智联科技有限公司 Control system for Internet of things equipment
CN112202758A (en) * 2020-09-27 2021-01-08 北京金山云网络技术有限公司 Internet of things equipment access method and device, electronic equipment and storage medium
CN112199078A (en) * 2020-11-10 2021-01-08 平安普惠企业管理有限公司 Toast message pushing method and device based on android fragment component and computer equipment
WO2021036652A1 (en) * 2019-08-30 2021-03-04 深圳壹账通智能科技有限公司 Multi-role page jump method, apparatus, computer device, and readable storage medium
WO2021042991A1 (en) * 2019-09-05 2021-03-11 华为技术有限公司 Non-intrusive interaction method and electronic device
WO2021057925A1 (en) * 2019-09-27 2021-04-01 北京猎户星空科技有限公司 Intelligent device control method and apparatus, intelligent device and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532751B (en) * 2013-10-09 2016-10-19 北京奇虎科技有限公司 Network access equipment management method and device
AU2016299874C1 (en) * 2015-07-30 2021-10-14 Wix.Com Ltd. System integrating a mobile device application creation, editing and distribution system with a website design system
CN108173874B (en) * 2018-01-29 2021-07-16 海尔优家智能科技(北京)有限公司 Intelligent device management method, platform, system, medium and device
CN111431900B (en) * 2020-03-23 2022-06-14 厦门立林科技有限公司 Dynamically-expandable intelligent home protocol docking system and method

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699692A (en) * 2014-01-11 2014-04-02 樊建 Internet-of-things access platform data management method
CN107526579A (en) * 2016-06-22 2017-12-29 中兴通讯股份有限公司 A kind of application program page development management method and device
CN108156058A (en) * 2018-01-09 2018-06-12 深圳绿米联创科技有限公司 Access method and device, the readable storage medium storing program for executing of intelligent gateway device
CN108804081A (en) * 2018-05-04 2018-11-13 武汉极意网络科技有限公司 Control recognition methods and system in a kind of Fragment
CN111200545A (en) * 2018-11-16 2020-05-26 中移(杭州)信息技术有限公司 Intelligent device access method and device
CN111224797A (en) * 2018-11-23 2020-06-02 杭州海康威视系统技术有限公司 Equipment access method and device and electronic equipment
CN111435338A (en) * 2019-01-14 2020-07-21 中国移动通信集团终端有限公司 Multi-intelligent hardware unified management and control method, platform, system, equipment and storage medium
CN109885311A (en) * 2019-01-28 2019-06-14 平安科技(深圳)有限公司 A kind of generation method and equipment of application program
CN112153088A (en) * 2019-06-27 2020-12-29 北京微云智联科技有限公司 Control system for Internet of things equipment
CN110489193A (en) * 2019-08-14 2019-11-22 北京猎户星空科技有限公司 Interface control method, device and the storage medium of smart machine
WO2021036652A1 (en) * 2019-08-30 2021-03-04 深圳壹账通智能科技有限公司 Multi-role page jump method, apparatus, computer device, and readable storage medium
WO2021042991A1 (en) * 2019-09-05 2021-03-11 华为技术有限公司 Non-intrusive interaction method and electronic device
WO2021057925A1 (en) * 2019-09-27 2021-04-01 北京猎户星空科技有限公司 Intelligent device control method and apparatus, intelligent device and storage medium
CN111813393A (en) * 2020-03-20 2020-10-23 北京四维智联科技有限公司 Application program development method and device
CN111654498A (en) * 2020-06-03 2020-09-11 深圳市信锐网科技术有限公司 Equipment adding method and Internet of things platform
CN112202758A (en) * 2020-09-27 2021-01-08 北京金山云网络技术有限公司 Internet of things equipment access method and device, electronic equipment and storage medium
CN112199078A (en) * 2020-11-10 2021-01-08 平安普惠企业管理有限公司 Toast message pushing method and device based on android fragment component and computer equipment

Also Published As

Publication number Publication date
CN113535132A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN108540965B (en) Internet of things communication method and device based on LoRa technology and storage medium
KR102219861B1 (en) Method for sharing screen and electronic device thereof
US20180213077A1 (en) Method and apparatus for controlling smart device, and computer storage medium
US11050968B2 (en) Method for driving display including curved display area, display driving circuit supporting the same, and electronic device including the same
CN112257135A (en) Model loading method and device based on multithreading, storage medium and terminal
CN112883036B (en) Index creation method, device, storage server and storage medium
KR20170033335A (en) Method for sharing application program and electronic device therefor
CN112689172B (en) Program playing method and device, set top box and storage medium
CN102253690B (en) Computer integration device, system and method
CN112566244B (en) Equipment positioning method, device, terminal equipment and storage medium
CN113535132B (en) Equipment access method, device, terminal equipment and storage medium
CN110309462B (en) Data display method and system
CN105721015A (en) Dual-channel mobile terminal capable of multiplexing Flash ROM
CN112612526A (en) Application program control method and device, terminal device and storage medium
CN110231922B (en) Mobile terminal display control method and mobile terminal
US10303351B2 (en) Method and apparatus for notifying of content change
CN113543104B (en) Bluetooth communication method, multimedia device and storage medium
CN113225234B (en) Asset detection method, device, terminal equipment and computer readable storage medium
CN113703689B (en) Data storage method and device for intelligent electric meter, intelligent electric meter and storage medium
CN112069015B (en) Instruction execution method and device for instruction simulator, terminal equipment and storage medium
CN113888669A (en) Winding layout drawing method, device, equipment and storage medium
WO2022183667A1 (en) Method and apparatus for modifying refurbishment package, and terminal device and storage medium
CN112612593A (en) Bluetooth control method, device, terminal equipment and computer readable storage medium
CN105682252A (en) Dual-channel mobile terminal
CN114495859B (en) Picture display method, device, display terminal and storage medium

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