CN111683412A - Device code scanning networking method, computer readable storage medium and electronic device - Google Patents

Device code scanning networking method, computer readable storage medium and electronic device Download PDF

Info

Publication number
CN111683412A
CN111683412A CN202010476795.9A CN202010476795A CN111683412A CN 111683412 A CN111683412 A CN 111683412A CN 202010476795 A CN202010476795 A CN 202010476795A CN 111683412 A CN111683412 A CN 111683412A
Authority
CN
China
Prior art keywords
code
cloud server
image
address information
equipment
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.)
Pending
Application number
CN202010476795.9A
Other languages
Chinese (zh)
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.)
Guangzhou Micro Body Technology Co ltd
Original Assignee
Guangzhou Micro Body 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 Guangzhou Micro Body Technology Co ltd filed Critical Guangzhou Micro Body Technology Co ltd
Priority to CN202010476795.9A priority Critical patent/CN111683412A/en
Publication of CN111683412A publication Critical patent/CN111683412A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a device code scanning networking method, a computer readable storage medium and electronic equipment, wherein the method comprises the following steps: s1, converting cloud server address information into a code pattern image by using code pattern generation software; s2, controlling the equipment to scan the code shape image and acquiring cloud server address information from the code shape image; and S3, controlling the equipment to establish wireless connection with the cloud server pointed by the cloud server address information. The method has the advantages that the additional cost of hardware is only one code scanning component, the cost is saved compared with other setting modes, in the aspect of user operation, only the address of the cloud server needs to be input to generate the code image, the equipment can complete connection by scanning the code, the operation is simple and convenient, and the networking is rapid and convenient.

Description

Device code scanning networking method, computer readable storage medium and electronic device
Technical Field
The invention relates to a communication network distribution mode, in particular to a device code scanning networking method, a computer readable storage medium and electronic equipment.
Background
The existing intelligent equipment of the internet of things is connected to a server platform, and can be operated only by carrying out protocol butt joint according to a tcp application layer communication interface provided by a supplier.
Different users need different cloud server addresses to be accessed by the equipment, and in order to enable the equipment to have better universality, a supplier does not write a fixed server address into an operation code of the equipment, but provides a certain mode to enable the user to modify the cloud server address of the equipment by himself.
Currently, a common method for setting a server address for a device includes:
1. the device provides a liquid crystal screen and a touch panel, and a user can input and set the server address on the liquid crystal screen and the touch panel, and the method has the defect of increasing the hardware cost of the device;
2. the device provides a wireless interface (such as Bluetooth and wifi) or a wired interface (such as COM interface), and communicates with an upper computer application (app, pc software and a browser) through the interface, and then a user operates the upper computer application to issue an instruction for modifying and setting the address of the server.
Therefore, a method for connecting the equipment with the cloud server through code scanning is provided.
Disclosure of Invention
The invention solves or partially solves the defects in the prior art and provides a device code scanning networking method, a computer readable storage medium and an electronic device.
Therefore, the device code scanning networking method comprises the following steps:
s1, converting cloud server address information into a code pattern image by using code pattern generation software;
s2, controlling the equipment to scan the code shape image and acquiring cloud server address information from the code shape image;
and S3, controlling the equipment to establish wireless connection with the cloud server pointed by the cloud server address information.
Preferably, the code-shaped image is a QR code.
As a preferred scheme, the code pattern generation software is specifically QR code generation software on a portable mobile terminal.
Preferably, the step S1 further includes: inputting cloud server address information into QR code generation software of the portable mobile terminal, and generating a QR code for display on the portable mobile terminal;
in step S2, the device specifically scans the QR code displayed on the portable mobile terminal.
Preferably, the step S2 further includes:
performing the scanning using a cmos sensor and converting the QR code into a QR code grayscale map;
and decoding the QR code gray image to acquire the address information of the cloud server.
Preferably, the step S3 further includes: and establishing socket connection with the cloud server pointed by the cloud server address information through a TCP/IP protocol.
As a preferred scheme, the convenient mobile terminal is a mobile phone.
Preferably, the QR code generation software originates from a mobile phone application store.
There is also provided a computer readable storage medium storing one or more programs, wherein the one or more programs, when executed by a controller, implement the method described above.
There is also provided an electronic device comprising a display device,
the equipment embeds there is the controller to and integrate in same equipment and the function module of controller control, the function module includes:
the image acquisition module is used for acquiring QR code image information by converting the optical signal into an electric signal;
the QR code decoding module is used for analyzing the QR code image information into text information;
the TCP/IP communication module is used for establishing communication with the cloud server;
the apparatus is also provided with a memory arranged to store computer executable instructions which, when executed, cause the controller to carry out the method described above.
Has the advantages that:
the method has the advantages that the additional cost of hardware is only one code scanning component, the cost is saved compared with other setting modes, in the aspect of user operation, only the address of the cloud server needs to be input to generate the code image, the equipment can complete connection by scanning the code, the operation is simple and convenient, and the networking is rapid and convenient.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like elements throughout the drawings. In the drawings:
FIG. 1 illustrates an implementation flow of the device code-scanning networking method of the present invention;
FIG. 2 is a schematic structural diagram of an electronic device according to the present invention;
fig. 3 is a schematic structural diagram of a computer-readable storage medium according to the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The thing networking smart machine of this embodiment embeds there is the controller to and integrated in same equipment and the function module shown in fig. 1 that is controlled by the controller, wherein function module specifically includes:
the image acquisition module is specifically composed of a Cmos sensor, and the Cmos sensor acquires QR code image information by converting an optical signal into an electrical signal;
the QR code decoding module is composed of the existing QR code decoding program and is written into the memory of the controller, and is used for analyzing the QR code image information into text information;
and the TCP/IP communication module is composed of an existing TCP/IP protocol communication program and is written into the memory of the controller for establishing communication with the cloud server.
Based on the system architecture of the internet of things intelligent device, the method for realizing device networking through the implementation process shown in fig. 1 comprises the following implementation steps:
s1, converting cloud server address information into a code pattern image by using code pattern generation software;
s2, controlling the equipment to scan the code shape image and acquiring cloud server address information from the code shape image;
and S3, controlling the equipment to establish wireless connection with the cloud server pointed by the cloud server address information.
The method of the embodiment has the advantages that the extra cost of hardware is only one cmos sensor, the cost is saved compared with other setting modes, in the aspect of user operation, only the address of the cloud server needs to be input to generate the code image, the equipment can be connected through the cmos sensor, the operation is simple and convenient, and the networking is fast and convenient.
Further, in step S1, the code image is specifically a QR code, the QR code has characteristics of high-density encoding, large information capacity, strong fault-tolerant error-correcting capability, and high decoding reliability, and a 0/1 bitstream concept is used for encoding, a black color indicates 1, a white color indicates 0, and a geometric shape corresponding to a binary system indicates literal numerical information, and an error correction algorithm of Reed solomon is used for error correction, so that cloud server address transmission with a wide byte length range can be realized, and error correction can be performed.
Based on the QR code, the code shape generation software can be selected as QR code generation software on the mobile phone, can be downloaded and used in various large application stores, does not need to develop special upper computer software, and can save software development cost.
Based on the QR code, step S1 is to input the cloud server address information to the QR code generation software of the mobile phone by the user, and generate the QR code image for display on the mobile phone.
After the QR code image is generated, the user aligns the QR code image with the Cmos sensor of the device, and the device senses the QR code and automatically starts step S2.
In step S2, the cmos sensor of the device converts the QR code image into a QR code grayscale image, and transmits the QR code grayscale image to the QR code decoding module, and the QR code decoding module decodes the QR code grayscale image by using a QR code decoding technique to obtain text information of the cloud server address.
After decoding is completed, the equipment acquires the address of the cloud server and establishes socket connection with the corresponding cloud server through a tcp/ip protocol, and equipment networking is achieved.
In the improved scheme, through a QR code generation technology, a QR code decoding technology, a cmos sensing technology and a tcp/ip communication technology, the equipment quickly and conveniently acquires the address of the cloud server to be accessed in a QR code scanning mode, the networking is practiced, and the software development cost can be further saved because special upper computer software does not need to be developed.
It should be noted that:
the method of this embodiment can be implemented by a program step and a device that can be stored in a computer-readable storage medium and executed by a controller.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
For example, fig. 2 shows a schematic structural diagram of an electronic device according to an embodiment of the invention. The electronic device conventionally comprises a processor 21 and a memory 22 arranged to store computer-executable instructions (program code). The memory 22 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 22 has a storage space 23 storing program code 24 for performing any of the method steps in the embodiments. For example, the storage space 23 for the program code may comprise respective program codes 24 for implementing respective steps in the above method. The program code can be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is typically a computer readable storage medium such as described in fig. 3. The computer readable storage medium may have memory segments, memory spaces, etc. arranged similarly to the memory 22 in the electronic device of fig. 2. The program code may be compressed, for example, in a suitable form. In general, the memory unit stores program code 31 for performing the steps of the method according to the invention, i.e. program code readable by a processor such as 21, which when run by an electronic device causes the electronic device to perform the individual steps of the method described above.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (10)

1. The method for networking the code scanning devices is characterized by comprising the following steps:
s1, converting cloud server address information into a code pattern image by using code pattern generation software;
s2, controlling the equipment to scan the code shape image and acquiring cloud server address information from the code shape image;
and S3, controlling the equipment to establish wireless connection with the cloud server pointed by the cloud server address information.
2. The method of claim 1, wherein: the code-shaped image is a QR code.
3. The method of claim 2, wherein: the code pattern generation software is specifically QR code generation software on the portable mobile terminal.
4. The method of claim 3,
the step S1 further includes: inputting cloud server address information into QR code generation software of the portable mobile terminal, and generating a QR code for display on the portable mobile terminal;
in step S2, the device specifically scans the QR code displayed on the portable mobile terminal.
5. The method according to claim 2, wherein the step S2 further comprises:
performing the scanning using a cmos sensor and converting the QR code into a QR code grayscale map;
and decoding the QR code gray image to acquire the address information of the cloud server.
6. The method according to claim 1, wherein the step S3 further comprises: and establishing socket connection with the cloud server pointed by the cloud server address information through a TCP/IP protocol.
7. The method according to claim 3 or 4, characterized in that: the convenient mobile terminal is specifically a mobile phone.
8. The method of claim 7, wherein: the QR code generation software is sourced from a mobile phone application store.
9. Computer readable storage medium storing one or more programs, wherein the one or more programs, when executed by a controller, implement the method of any of claims 1-6.
10. An electronic device is provided with a plurality of electronic devices,
the equipment embeds there is the controller to and integrate in same equipment and the function module of controller control, the function module includes:
the image acquisition module is used for acquiring QR code image information by converting the optical signal into an electric signal;
the QR code decoding module is used for analyzing the QR code image information into text information;
the TCP/IP communication module is used for establishing communication with the cloud server;
the device is further provided with a memory arranged to store computer executable instructions which, when executed, cause the controller to implement the method of any one of claims 1-6.
CN202010476795.9A 2020-05-29 2020-05-29 Device code scanning networking method, computer readable storage medium and electronic device Pending CN111683412A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010476795.9A CN111683412A (en) 2020-05-29 2020-05-29 Device code scanning networking method, computer readable storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010476795.9A CN111683412A (en) 2020-05-29 2020-05-29 Device code scanning networking method, computer readable storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN111683412A true CN111683412A (en) 2020-09-18

Family

ID=72452729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010476795.9A Pending CN111683412A (en) 2020-05-29 2020-05-29 Device code scanning networking method, computer readable storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111683412A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180122151A1 (en) * 2016-10-27 2018-05-03 Inventec (Pudong) Technology Corporation Place management method and place management system
CN110426977A (en) * 2019-08-09 2019-11-08 中国科学院武汉岩土力学研究所 A kind of engineering monitoring data-acquisition system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180122151A1 (en) * 2016-10-27 2018-05-03 Inventec (Pudong) Technology Corporation Place management method and place management system
CN110426977A (en) * 2019-08-09 2019-11-08 中国科学院武汉岩土力学研究所 A kind of engineering monitoring data-acquisition system and method

Similar Documents

Publication Publication Date Title
CN107888978B (en) KEY code burning method and device and computer readable storage medium
CN104144470B (en) A kind of Bluetooth connecting method and client
US11893767B2 (en) Text recognition method and apparatus
CN103823841B (en) Improve the method and its device of mobile terminal client terminal surfing
CN111339228B (en) Map updating method, device, cloud server and storage medium
CN106648685B (en) Intelligent terminal system application processing method and device and intelligent terminal
CN111506318A (en) Circuit board chip burning method, device, terminal and computer readable storage medium
CN110750664B (en) Picture display method and device
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN103501463A (en) Data acquisition method and electronic equipment
US20110093943A1 (en) Automatic access system, host computer, device, response device, remote code reader system, barcode reader, automatic access method, authentication method, computer program, and recording medium
CN111127034A (en) Commodity tracing method and device, client and storage medium
CN106294413A (en) The loading method of picture and device
CN104991847A (en) Memory leakage automatic testing method and apparatus and mobile terminal
CN104463296A (en) Two-dimension code structured information generation, obtaining and processing method and system
CN104519105A (en) Method and device for acquiring applications matched with terminals
CN107798078B (en) Billboard data display method and device, computer equipment and storage medium
CN112950738A (en) Rendering engine processing method and device, storage medium and electronic equipment
CN110276027B (en) Method and equipment for information push based on two-dimension code recognition
CN105491129A (en) Page loading progress display method and device and mobile terminal
CN108874495B (en) Theme resource conversion method and device and electronic equipment
CN105303143A (en) Information scanning method, system and terminal
CN111683412A (en) Device code scanning networking method, computer readable storage medium and electronic device
CN115053516A (en) Electronic device and method for storing image
CN105373557A (en) Content synchronization method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200918