CN104574887B - Data transmission method and device and electronic equipment - Google Patents

Data transmission method and device and electronic equipment Download PDF

Info

Publication number
CN104574887B
CN104574887B CN201310520827.0A CN201310520827A CN104574887B CN 104574887 B CN104574887 B CN 104574887B CN 201310520827 A CN201310520827 A CN 201310520827A CN 104574887 B CN104574887 B CN 104574887B
Authority
CN
China
Prior art keywords
wireless communication
control instruction
instruction
scanner
electronic device
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
CN201310520827.0A
Other languages
Chinese (zh)
Other versions
CN104574887A (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.)
Northwest Instrument Shanghai Co ltd
Original Assignee
Northwest Instrument Shanghai 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 Northwest Instrument Shanghai Co ltd filed Critical Northwest Instrument Shanghai Co ltd
Priority to CN201310520827.0A priority Critical patent/CN104574887B/en
Priority to PCT/CN2013/088574 priority patent/WO2015062139A1/en
Publication of CN104574887A publication Critical patent/CN104574887A/en
Application granted granted Critical
Publication of CN104574887B publication Critical patent/CN104574887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C15/00Surveying instruments or accessories not provided for in groups G01C1/00 - G01C13/00
    • G01C15/002Active optical surveying means
    • G01C15/004Reference lines, planes or sectors

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the invention provides a data transmission method, a data transmission device and electronic equipment, wherein the data transmission method comprises the following steps: searching for a swinger with a wireless communication function in an open state within a preset range; controlling a display unit to display the identifier of the swinger; when receiving an instruction that a user selects a first identifier of the first scanner from the identifiers of the first scanners displayed by the display unit, establishing a wireless communication channel between the electronic equipment and the first scanner; when an instruction of a user for carrying out preset operation on the electronic equipment is received, obtaining a control instruction corresponding to the preset operation according to a preset corresponding relation between the preset operation and the control instruction; and sending the control instruction to a first level scanner through the wireless communication channel so that the first level scanner performs an operation corresponding to the control instruction according to the control instruction. By adopting the data transmission method, the data transmission device and the electronic equipment provided by the embodiment of the invention, the cost of the special remote controller can be saved.

Description

Data transmission method and device and electronic equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a data transmission method and apparatus, and an electronic device.
Background
A swinger is an instrument that provides a planar or linear reference. The device is matched with a detector, can control the horizontal height of any measuring point within a certain radius range, can combine measurement and construction together, realizes the automation of construction, and is widely applied to various construction occasions. The existing sweeping level instrument is controlled by a special remote controller, a hardware circuit is required to be arranged in the special remote controller, and the structure of the hardware circuit determines the function of the sweeping level instrument.
In the prior art, different functions of the swinger are often needed, and at this time, the structure of a hardware circuit of a dedicated remote controller needs to be modified, or a plurality of dedicated remote controllers with different hardware circuit structures are configured for the same swinger, so that the cost of the dedicated remote controller is increased.
Disclosure of Invention
In view of this, the present invention provides a data transmission method, an apparatus and an electronic device, so as to overcome the problem in the prior art that the cost of a dedicated remote controller is increased due to the need to modify the structure of a hardware circuit of the dedicated remote controller when different functions of a swinger are needed, or to configure a plurality of dedicated remote controllers with different hardware circuit structures for the same swinger.
In order to achieve the purpose, the invention provides the following technical scheme:
a data transmission method is applied to an electronic device with an IOS operating system, the electronic device comprises a display unit, and the data transmission method comprises the following steps:
searching for a swinger with a wireless communication function in an open state within a preset range;
controlling the display unit to display the identifier of the swinger;
when receiving an instruction that a user selects a first identifier of a first scanner from the identifiers of the scanners displayed by the display unit, establishing a wireless communication channel between the electronic equipment and the first scanner;
when an instruction of a user for carrying out preset operation on the electronic equipment is received, obtaining a control instruction corresponding to the preset operation according to a preset corresponding relation between the preset operation and the control instruction;
and sending the control instruction to the first level scanner through the wireless communication channel so that the first level scanner performs an operation corresponding to the control instruction according to the control instruction.
Preferably, after the sending the control instruction to the first swinger through the wireless communication channel, the method further comprises:
receiving a response indication fed back by the first level through the wireless communication channel, wherein the response indication comprises information that the operation corresponding to the control instruction is completed.
Preferably, after the receiving of the response indication fed back by the first scanner, the method further includes:
and controlling the display unit to display the response indication.
Preferably, sending the control instruction to the first level scanner by the electronic device is called a first record, receiving an acknowledgement indication of the feedback of the first level scanner by the electronic device is called a second record, and after sending the control instruction to the first level scanner through the wireless communication channel, the method further includes:
storing the first record and the second record in a server.
A data transmission device is applied to an electronic device with an IOS operating system, the electronic device comprises a display unit, and the data transmission device comprises:
the searching module is used for searching the swinger with the wireless communication function in the starting state within the preset range;
the first control module is used for controlling the display unit to display the identifier of the swinger;
the channel establishing module is used for establishing a wireless communication channel between the electronic equipment and the first leveling instrument when receiving an instruction that a user selects the first identifier of the first leveling instrument from the identifiers of the leveling instruments displayed by the display unit;
the obtaining instruction module is used for obtaining a control instruction corresponding to a preset operation according to a preset corresponding relation between the preset operation and the control instruction when receiving an instruction of the user for carrying out the preset operation on the electronic equipment;
and the sending module is used for sending the control instruction to the first leveling instrument through the wireless communication channel so that the first leveling instrument carries out operation corresponding to the control instruction according to the control instruction.
Preferably, the method further comprises the following steps:
and the receiving module is used for receiving a response instruction fed back by the first level meter through the wireless communication channel, wherein the response instruction comprises information that the operation corresponding to the control instruction is completed.
Preferably, the method further comprises the following steps:
and the second control module is used for controlling the display unit to display the response instruction.
Preferably, the sending of the control command by the electronic device to the first level scanner is called a first record, and the receiving of the response instruction by the electronic device from the first level scanner is called a second record, and the data transmission device further includes:
and the storage module is used for storing the first record and the second record into a server.
An electronic device having an IOS operating system, the electronic device comprising: display element, first wireless communication interface and processor, wherein:
the method comprises the steps that after a sweep level instrument with a wireless communication function in an on state within a preset range is searched by a processor, a display unit is controlled to display an identification of the sweep level instrument, when an indication that a user selects a first identification of the first sweep level instrument from the identification of the sweep level instrument displayed by the display unit is received, a first wireless communication interface is controlled to establish a wireless communication channel with the first sweep level instrument, when an indication that the user conducts preset operation on the electronic equipment is received, a control instruction corresponding to the preset operation is obtained according to a preset corresponding relation between the preset operation and the control instruction, and the first wireless communication interface is controlled to send the control instruction to the first sweep level instrument through the wireless communication channel, so that the first sweep level instrument conducts operation corresponding to the control instruction according to the control instruction.
Preferably, sending the control instruction to the first swinger by the electronic device is called as a first record, the electronic device further includes a second wireless communication interface, and the processor is further configured to: controlling the second wireless communication interface to store the first record in a server.
As can be seen from the foregoing technical solutions, in the data transmission method provided in the embodiments of the present invention, compared with the prior art, an electronic device may control one or more leveling apparatuses, the electronic device may display the searched identifiers of the leveling apparatuses in a display unit, a user may select a first identifier of a first leveling apparatus from the identifiers of the leveling apparatuses displayed in the display unit according to a need of the user, when receiving an instruction that the user selects the first identifier of the first leveling apparatus, the electronic device may establish a wireless communication channel with the first leveling apparatus, the user may perform a corresponding preset operation on the electronic device according to the need, and then the electronic device may obtain a control instruction corresponding to the preset operation according to a preset correspondence between the preset operation and the control instruction, so that the electronic device may send the control instruction to the first leveling apparatus through the wireless communication channel, if the user needs to perform other control on the swinger, only the corresponding relation between the preset operation and the control instruction needs to be changed, or the corresponding relation between the other preset operation and the control instruction needs to be increased, so that the electronic equipment can control different functions of the swinger, and a hardware circuit of the electronic equipment does not need to be improved, and the cost of a special remote controller is saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data transmission method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device with an IOS operating system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention.
Detailed Description
For the sake of reference and clarity, the descriptions, abbreviations or abbreviations of the technical terms used hereinafter are summarized as follows:
NFC: near Field Communication, short-range wireless Communication technology;
Wi-Fi: wireless fidelity, wireless broadband;
RF: radio Frequency, Radio Frequency;
WLAN: wireless Local Area Networks, Wireless Local Area Networks;
IOS: iphone Operation System, iphone operating System.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic flow chart of a data transmission method according to an embodiment of the present invention is shown, where the method is applied to an electronic device with an IOS operating system, the electronic device includes a display unit, and the data transmission method includes:
step S101: and searching for the swinger with the wireless communication function in the starting state within the preset range.
The above-mentioned wireless communication function being in the on state may be that the wireless communication interface is in the on state or that the wireless communication switch is in the on state. The wireless communication function in the embodiment of the present invention may be in other forms, which is not limited in the embodiment of the present invention specifically, for example, the wireless communication function in the open state may be that the RF module is in the open state.
The electronic equipment can be provided with a wireless communication interface, and when the wireless communication interface is started, the sweep level instrument with the wireless communication interface in the starting state in the preset range can be searched.
The wireless communication interface may be a bluetooth interface, a WiFi interface, or an NFC interface, and the embodiment of the present invention does not specifically limit the type of the wireless communication interface.
When the wireless communication interface of the electronic equipment is a Bluetooth interface, the sweep instrument with the Bluetooth interface in the on state in the preset range can be scanned, when the wireless communication interface of the electronic equipment is a WiFi interface, the sweep instrument with the WiFi interface in the on state in the preset range can be scanned, and when the wireless communication interface of the electronic equipment is an NFC interface, the sweep instrument with the NFC interface in the on state in the preset range can be scanned.
The IOS operating system in the electronic equipment can be provided with a wireless communication switch, and when the wireless communication switch is turned on, the electronic equipment can search for the swinger with the wireless communication switch in the preset range in the on state.
The wireless communication switch may be a bluetooth switch, a WiFi switch, or an NFC switch, and the embodiment of the present invention does not specifically limit the type of the wireless communication switch.
When the wireless communication interface of electronic equipment is the bluetooth switch, can scan and predetermine the sweeping flat appearance that within range bluetooth switch is in the on-state, when the wireless communication interface of electronic equipment is the wiFi switch, can scan and predetermine the sweeping flat appearance that within range wiFi switch is in the on-state, when the wireless communication interface of electronic equipment is the NFC switch, can scan and predetermine the sweeping flat appearance that within range NFC switch is in the on-state.
The preset range may be determined according to a specific type of the wireless communication interface or the wireless communication switch, for example, when the wireless communication interface is an NFC interface, the preset range may be 10 cm.
Step S102: and controlling a display unit to display the identifier of the swinger.
Step S103: and when receiving an instruction that a user selects the first identifier of the first scanner from the identifiers of the first scanners displayed by the display unit, establishing a wireless communication channel between the electronic equipment and the first scanner.
If the user desires to control the first scanner using the electronic device, the identification of the first scanner may be selected among the identifications of the scanners displayed on the display unit.
To distinguish from a user-unselected swinger, the user-selected swinger is referred to as the first swinger.
Step S104: and when an instruction of a user for carrying out preset operation on the electronic equipment is received, obtaining a control instruction corresponding to the preset operation according to the preset corresponding relation between the preset operation and the control instruction.
The preset operation may be that the user presses a certain key or certain keys. For example, one or more keys may be provided in the electronic device, and each key or each combination of several keys corresponds to a control command.
If the electronic device is an electronic device with a touch screen, the preset operation may also be a track where a user touches the touch screen.
The track of the user touching the touch screen may be "-" "√" here, "" △, "" ◇, "" four, "or" ○, "and the like, and the specific shape of the track of the user touching the touch screen does not affect the specific implementation of the embodiment of the present invention, and therefore is not limited in detail.
The track of each user touching the touch screen may correspond to a control command, for example, "√" may correspond to a control command- "switch the scanning angle by 30 °.
If the electronic equipment is the electronic equipment with the camera, the preset operation can also be used for collecting the gestures of the user for the camera.
The gesture of the user may be "check mark" or "x", etc., and the specific form of the gesture of the user does not affect the specific implementation of the embodiment of the present invention, so the gesture of the user is not limited in detail here.
Each user's gesture may correspond to a control instruction.
Step S105: and sending a control instruction to the first scanner through the wireless communication channel so that the first scanner performs an operation corresponding to the control instruction according to the control instruction.
In the data transmission method provided by the embodiment of the invention, the electronic device can control one or more scanners, the electronic device can display the searched identifiers of the scanners in the display unit, a user can select the first identifier of the first scanner from the identifiers of the scanners displayed in the display unit according to the needs of the user, when receiving an instruction that the user selects the first identifier of the first scanner, the electronic device can establish a wireless communication channel with the first scanner, the user can perform corresponding preset operation on the electronic device according to the needs, then the electronic device can obtain a control instruction corresponding to the preset operation according to the corresponding relationship between the preset operation and the control instruction, so that the electronic device can send the control instruction to the first scanner through the wireless communication channel, and if the user needs to perform other control on the scanners, only the corresponding relation between the preset operation and the control instruction needs to be changed or the corresponding relation between other preset operations and the control instruction needs to be added, so that the electronic equipment can control different functions of the swinger, and a hardware circuit of the electronic equipment does not need to be improved, so that the cost of a special remote controller is saved.
It can be understood that, after the electronic device sends the control instruction to the first scanner, the first scanner may perform corresponding operation according to the control instruction, and after the first scanner performs corresponding operation, the operation result (whether the operation is successful or failed) may be fed back to the electronic device, so the data transmission method provided in the embodiment of the present invention further includes, after sending the control instruction to the first scanner through the wireless communication channel: and receiving a response indication fed back by the first level instrument through the wireless communication channel, wherein the response indication comprises information that the operation corresponding to the control instruction is completed.
Therefore, the user can directly know whether the first swinger is successfully operated from the electronic equipment, and the user experience is improved.
Preferably, after receiving the response indication fed back by the first level through the wireless communication channel, the method further comprises controlling the display unit to display the response indication.
The response indication displayed in the display unit may be "operation success" when the first swinger is operated successfully according to the control instruction, the response indication displayed in the display unit may be "operation failure" when the first swinger is operated unsuccessfully according to the control instruction, or the response indication may be "switched scan angle 30 °" when the first swinger is operated successfully according to "switched scan angle 30 °", and the response indication may be "unsuccessfully switched scan angle 30 °" whenthe first swinger is operated unsuccessfully according to "switched scan angle 30 °".
It can be understood that, in order to enable a user to check which operations are performed on the scanner by the electronic device and also to backup the operations performed on the scanner by the electronic device, sending a control instruction to the first scanner by the electronic device is called a first record, and receiving a response instruction fed back by the first scanner by the electronic device is called a second record, in the data transmission method provided in the embodiment of the present invention, after sending the control instruction to the first scanner through the wireless communication channel, the method further includes: and storing the first record and the second record in a server.
The server may also provide advertisements for the electronic device.
The first record and the second record may be stored by the electronic device in a fixed format to a server. When the user needs to see what operations have been performed on the swinger, the records stored in the server may be called.
The server and the electronic device may be connected through a WLAN link, or may be connected through the above-mentioned wireless communication interface or wireless communication switch.
The method is described in detail in the embodiments disclosed above, and the method of the present invention can be implemented by various types of apparatuses, so that the present invention also discloses an apparatus, and the following detailed description will be given of specific embodiments.
Referring to fig. 2, a schematic structural diagram of a data transmission device according to an embodiment of the present invention is shown, where the data transmission device is applied to an electronic device with an IOS operating system, the electronic device includes a display unit, and the data transmission device may include: the system comprises a searching module 201, a first control module 202, a channel establishing module 203, an instruction obtaining module 204 and a sending module 205, wherein:
the searching module 201 is configured to search for a plane scanner with a wireless communication function in an on state within a preset range.
The above-mentioned wireless communication function being in the on state may be that the wireless communication interface is in the on state or that the wireless communication switch is in the on state. The wireless communication function in the embodiment of the present invention may be in other forms, which is not limited in the embodiment of the present invention specifically, for example, the wireless communication function in the open state may be that the RF module is in the open state.
The electronic equipment can be provided with a wireless communication interface, and when the wireless communication interface is started, the sweep level instrument with the wireless communication interface in the starting state in the preset range can be searched.
The wireless communication interface may be a bluetooth interface, a WiFi interface, or an NFC interface, and the embodiment of the present invention does not specifically limit the type of the wireless communication interface.
When the wireless communication interface of the electronic equipment is a Bluetooth interface, the sweep instrument with the Bluetooth interface in the on state in the preset range can be scanned, when the wireless communication interface of the electronic equipment is a WiFi interface, the sweep instrument with the WiFi interface in the on state in the preset range can be scanned, and when the wireless communication interface of the electronic equipment is an NFC interface, the sweep instrument with the NFC interface in the on state in the preset range can be scanned.
The IOS operating system in the electronic equipment can be provided with a wireless communication switch, and when the wireless communication switch is turned on, the electronic equipment can search for the swinger with the wireless communication switch in the preset range in the on state.
The wireless communication switch may be a bluetooth switch, a WiFi switch, or an NFC switch, and the embodiment of the present invention does not specifically limit the type of the wireless communication switch.
When the wireless communication interface of electronic equipment is the bluetooth switch, can scan and predetermine the sweeping flat appearance that within range bluetooth switch is in the on-state, when the wireless communication interface of electronic equipment is the wiFi switch, can scan and predetermine the sweeping flat appearance that within range wiFi switch is in the on-state, when the wireless communication interface of electronic equipment is the NFC switch, can scan and predetermine the sweeping flat appearance that within range NFC switch is in the on-state.
The preset range may be determined according to a specific type of the wireless communication interface or the wireless communication switch, for example, when the wireless communication interface is an NFC interface, the preset range may be 10 cm.
The first control module 202 is configured to control the display unit to display the identifier of the above-mentioned swinger.
And the channel establishing module 203 is used for establishing a wireless communication channel between the electronic equipment and the first scanner when receiving an indication that the user selects the first identifier of the first scanner from the identifiers of the first scanners displayed by the display unit.
If the user desires to control the first scanner using the electronic device, the identification of the first scanner may be selected among the identifications of the scanners displayed on the display unit.
To distinguish from a user-unselected swinger, the user-selected swinger is referred to as the first swinger.
The instruction obtaining module 204 is configured to, when receiving an instruction of a user to perform a preset operation on the electronic device, obtain a control instruction corresponding to the preset operation according to a preset correspondence between the preset operation and the control instruction.
The preset operation may be that the user presses a certain key or certain keys. For example, one or more keys may be provided in the electronic device, and each key or each combination of several keys corresponds to a control command.
If the electronic device is an electronic device with a touch screen, the preset operation may also be a track where a user touches the touch screen.
The track of the user touching the touch screen may be "-" "√" here, "" △, "" ◇, "" four, "or" ○, "and the like, and the specific shape of the track of the user touching the touch screen does not affect the specific implementation of the embodiment of the present invention, and therefore is not limited in detail.
The track of each user touching the touch screen may correspond to a control command, for example, "√" may correspond to a control command-switching the scan angle by 30 °.
If the electronic equipment is the electronic equipment with the camera, the preset operation can also be used for collecting the gestures of the user for the camera.
The gesture of the user may be "check mark" or "x", etc., and the specific form of the gesture of the user does not affect the specific implementation of the embodiment of the present invention, so the gesture of the user is not limited in detail here.
Each user's gesture may correspond to a control instruction.
A sending module 205, configured to send a control instruction to the first scanner through the wireless communication channel, so that the first scanner performs an operation corresponding to the control instruction according to the control instruction.
In a data transmission apparatus provided in an embodiment of the present invention, an electronic device may control one or more scanners, a first control module 202 may display identifiers of the scanners searched by a search module 201 in a display unit, a user may select a first identifier of a first scanner from the identifiers of the respective scanners displayed in the display unit according to a need of the user, when an instruction for selecting the first identifier of the first scanner is received by a channel establishment module 203, the electronic device may establish a wireless communication channel with the first scanner, the user may perform a corresponding preset operation on the electronic device according to the need, then an instruction obtaining module 204 may obtain a control instruction corresponding to the preset operation according to a correspondence between the preset operation and the control instruction, so that a sending module 205 may send the control instruction to the first scanner through the wireless communication channel, if the user needs to perform other control on the swinger, only the corresponding relation between the preset operation and the control instruction needs to be changed, or the corresponding relation between the other preset operation and the control instruction needs to be increased, so that the electronic equipment can control different functions of the swinger, and a hardware circuit of the electronic equipment does not need to be improved, and the cost of a special remote controller is saved.
It can be understood that, after the electronic device sends the control instruction to the first scanner, the first scanner may perform corresponding operation according to the control instruction, and after the first scanner performs corresponding operation, the operation result (whether the operation is successful or failed) may be fed back to the electronic device, so the data transmission apparatus provided in the embodiment of the present invention may further include: and the receiving module is used for receiving a response instruction fed back by the first level instrument through the wireless communication channel, and the response instruction comprises information that the operation corresponding to the control instruction is completed.
Therefore, the user can directly know whether the first swinger is successfully operated from the electronic equipment, and the user experience is improved.
Preferably, the data transmission device provided in the embodiment of the present invention may further include a second control module, configured to control the display unit to display the response indication.
The response indication displayed in the display unit may be "operation success" when the first swinger is operated successfully according to the control instruction, the response indication displayed in the display unit may be "operation failure" when the first swinger is operated unsuccessfully according to the control instruction, or the response indication may be "switched scan angle 30 °" when the first swinger is operated successfully according to "switched scan angle 30 °", and the response indication may be "unsuccessfully switched scan angle 30 °" whenthe first swinger is operated unsuccessfully according to "switched scan angle 30 °".
It can be understood that, in order to enable a user to check which operations are performed on the leveling instrument by the electronic device and to backup the operations performed on the leveling instrument by the electronic device, sending a control instruction to the first leveling instrument by the electronic device is called a first record, and receiving a response instruction fed back by the first leveling instrument by the electronic device is called a second record, the data transmission apparatus provided in the embodiment of the present invention may further include: and the storage module is used for storing the first record and the second record into the server.
The server may also provide advertisements for the electronic device.
The first record and the second record may be stored in a fixed format by a storage module into a server. When the user needs to see what operations have been performed on the swinger, the records stored in the server may be called.
The server and the storage module may be connected through a WLAN link, or may be connected through the above-mentioned wireless communication interface or wireless communication switch.
Referring to fig. 3, a schematic structural diagram of an electronic device with an IOS operating system according to an embodiment of the present invention is shown, the electronic device includes a display unit 301, a first wireless communication interface 302, and a processor 303, where:
after the processor 303 searches for the plane scanner with the wireless communication function in the on state within the preset range, the display unit 301 is controlled to display the identifier of the plane scanner, when the processor 303 receives an instruction that a user selects a first identifier of the first plane scanner from the identifiers of the plane scanners displayed by the display unit 301, the first wireless communication interface 302 is controlled to establish a wireless communication channel with the first plane scanner, when the processor 303 receives an instruction that the user performs a preset operation on the electronic device, a control instruction corresponding to the preset operation is obtained according to a preset corresponding relationship between the preset operation and the control instruction, and the first wireless communication interface 302 is controlled to transmit the control instruction to the first plane scanner through the wireless communication channel, so that the first plane scanner performs an operation corresponding to the control instruction according to the control instruction.
For the description of the preset operation and the preset range, refer to the corresponding description in the embodiment of the data transmission apparatus, which is not described herein again.
The processor 303 in the electronic device with the IOS operating system may further be configured to: and after the control instruction is sent to the first level scanner through the wireless communication channel, receiving a response instruction fed back by the first level scanner through the wireless communication channel, wherein the response instruction comprises information that the operation corresponding to the control instruction is completed.
The processor 303 in the electronic device with the IOS operating system may further be configured to: and controlling the display unit to display the response instruction.
It can be understood that, in order to enable a user to view what operations are performed on the plane scanner by the electronic device and to backup the operations performed on the plane scanner by the electronic device, sending a control instruction to the first plane scanner by the electronic device is called a first record, and receiving a response instruction fed back by the first plane scanner by the electronic device is called a second record, the electronic device with the IOS operating system according to the embodiment of the present invention may further include: a second wireless communication interface, the processor 303 is further configured to: and controlling the second wireless communication interface to store the first record in the server. The processor 303 may also be configured to: and controlling the second wireless communication interface to store the first record and the second record in the server.
The second wireless communication interface may be a WLAN interface, the wireless communication interface described above, or the wireless communication switch described above.
The data transmission device and the electronic equipment with the IOS operating system provided by the embodiment of the invention can also perform complex control logic functions such as intelligent operation, operation sequence recording and/or common operation instruction collection.
The intelligent operation may be: and calculating the angle of the swinger to be switched according to the preset conditions and the parameters of the construction site input by the user in the electronic equipment.
More than one control command may be sent by the electronic device to the sweep, and the sequence of operations may be the number of each control command sent by the electronic device to the sweep, for example, 11: 10, the electronic equipment sends a first control instruction to the plane scanner, 11:11 the electronic equipment sends a second control instruction to the plane scanner, and 11:20 the electronic equipment sends the second control instruction to the plane scanner, then the operation sequence of the first control instruction may be 1, the operation sequence of the second control instruction may be 2, the operation sequence of the third control operation instruction may be 3, and certainly, the time sequence may not be in accordance, that is, the operation sequence of the first control instruction may be 2 or 3. The recording operation sequence may be: and respectively allocating serial numbers to the control instructions according to the time information of the control instructions sent to the swinger by the electronic equipment.
The step of collecting the common operation instruction refers to recording the number of times that the electronic device sends each control instruction to the swinger, for example, if the number of times that the electronic device sends a first control instruction to the swinger is 15, and the number of times that the electronic device sends a second control instruction to the swinger is 2, the first control instruction can be used as the common operation instruction.
The electronic device with the IOS operating system provided by the above embodiment may be a mobile phone, an IPAD, a PAD, a tablet notebook, a notebook, etc.
In order that those skilled in the art will better understand the embodiments of the present invention, the above embodiments are described below with reference to a specific example.
Referring to fig. 4, a schematic structural diagram of a data transmission system according to an embodiment of the present invention is shown, where the system may include an electronic device 401 having an IOS operating system and a server 402, where: the electronic apparatus 401 includes a first wireless communication interface 4011, a second wireless communication interface 4012, an IOS operating system 4013, application software 4014 having the functions shown in fig. 1, and a display unit 4015.
Also shown in fig. 4 is a scanner 403, which may have a wireless communication channel 404 between the scanner 403 and the electronic device 401, and a WLAN communication link 405 between the electronic device 401 and the server 402 (assuming that the second wireless communication interface 4012 is a WLAN interface).
The IOS operating system 4013 and the application software 4014 having the functions shown in fig. 1 may be modules in a processor in the electronic device 401.
After a user starts a wireless communication function between the electronic device 401 and the swinger 403, the application software 4014 in the electronic device 401 starts to search for swingers within a preset range, the display unit 4015 may display each swinger searched by the application software 4014, when the user selects one swinger 403 from the display unit 4015, the electronic device and the swinger 403 establish a wireless communication channel 404, the first wireless communication interface 4011 may send a control instruction to the swinger 403 through the wireless communication channel 404 in the form of a data interaction package, the swinger 403 may also feed a response instruction back to the electronic device 401 through the wireless communication channel 404 in the form of a data interaction package, and the first record and the second record may also be sent to the server 402 in the form of a data interaction package.
Sending a control instruction from the electronic device to the first scanner is referred to herein as a first record, and receiving an acknowledgement from the electronic device that the first scanner is feeding back is referred to herein as a second record.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device or system type embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. A data transmission method is applied to electronic equipment with an IOS operating system, and is characterized in that the electronic equipment comprises a display unit, and the data transmission method comprises the following steps:
searching for a swinger with a wireless communication function in an open state within a preset range;
controlling the display unit to display the identifier of the swinger;
when receiving an instruction that a user selects a first identifier of a first scanner from the identifiers of the scanners displayed by the display unit, establishing a wireless communication channel between the electronic equipment and the first scanner;
when an instruction of a user for carrying out preset operation on the electronic equipment is received, obtaining a control instruction corresponding to the preset operation according to a preset corresponding relation between the preset operation and the control instruction;
sending the control instruction to the first level scanner through the wireless communication channel so that the first level scanner performs an operation corresponding to the control instruction according to the control instruction;
and receiving a response instruction fed back by the first level through the wireless communication channel, and controlling the display unit to display the response instruction, wherein the response instruction comprises information that the operation corresponding to the control instruction is completed.
2. The data transmission method according to claim 1, wherein sending the control command to the first level scanner by the electronic device is called a first record, receiving an acknowledgement indication of the feedback of the first level scanner by the electronic device is called a second record, and after sending the control command to the first level scanner through the wireless communication channel, the method further comprises:
storing the first record and the second record in a server.
3. A data transmission device is applied to an electronic device with an IOS operating system, and is characterized in that the electronic device comprises a display unit, and the data transmission device comprises:
the searching module is used for searching the swinger with the wireless communication function in the starting state within the preset range;
the first control module is used for controlling the display unit to display the identifier of the swinger;
the channel establishing module is used for establishing a wireless communication channel between the electronic equipment and the first leveling instrument when receiving an instruction that a user selects the first identifier of the first leveling instrument from the identifiers of the leveling instruments displayed by the display unit;
the obtaining instruction module is used for obtaining a control instruction corresponding to a preset operation according to a preset corresponding relation between the preset operation and the control instruction when receiving an instruction of the user for carrying out the preset operation on the electronic equipment;
the sending module is used for sending the control instruction to the first leveling instrument through the wireless communication channel so that the first leveling instrument carries out operation corresponding to the control instruction according to the control instruction;
a receiving module, configured to receive, through the wireless communication channel, a response instruction fed back by the first level, where the response instruction includes information that an operation corresponding to the control instruction has been completed;
and the second control module is used for controlling the display unit to display the response instruction.
4. The data transmission apparatus according to claim 3, wherein sending the control command to the first level scanner by the electronic device is called a first record, and receiving the response indication fed back by the first level scanner by the electronic device is called a second record, the data transmission apparatus further comprising:
and the storage module is used for storing the first record and the second record into a server.
5. An electronic device having an IOS operating system, the electronic device comprising: display element, first wireless communication interface and processor, wherein:
after the processor searches for the plane scanner with the wireless communication function in the starting state within the preset range, the display unit is controlled to display the identifier of the plane scanner, when an instruction that a user selects a first identifier of a first plane scanner from the identifiers of the plane scanners displayed by the display unit is received, the first wireless communication interface is controlled to establish a wireless communication channel with the first plane scanner, when an instruction that the user performs preset operation on the electronic equipment is received, a control instruction corresponding to the preset operation is obtained according to the preset corresponding relation between the preset operation and the control instruction, the first wireless communication interface is controlled to send the control instruction to the first plane scanner through the wireless communication channel, so that the first plane scanner performs operation corresponding to the control instruction according to the control instruction, and a response instruction fed back by the first plane scanner is received through the wireless communication channel, and controlling the display unit to display the response indication, wherein the response indication comprises information that the operation corresponding to the control instruction has been completed.
6. The electronic device of claim 5, wherein sending the control command to the first swinger by the electronic device is referred to as a first record, the electronic device further comprising a second wireless communication interface, and wherein the processor is further configured to: controlling the second wireless communication interface to store the first record in a server.
CN201310520827.0A 2013-10-29 2013-10-29 Data transmission method and device and electronic equipment Active CN104574887B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310520827.0A CN104574887B (en) 2013-10-29 2013-10-29 Data transmission method and device and electronic equipment
PCT/CN2013/088574 WO2015062139A1 (en) 2013-10-29 2013-12-05 Data transmission method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310520827.0A CN104574887B (en) 2013-10-29 2013-10-29 Data transmission method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN104574887A CN104574887A (en) 2015-04-29
CN104574887B true CN104574887B (en) 2020-04-07

Family

ID=53003214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310520827.0A Active CN104574887B (en) 2013-10-29 2013-10-29 Data transmission method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN104574887B (en)
WO (1) WO2015062139A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4256273A1 (en) 2020-12-01 2023-10-11 Milwaukee Electric Tool Corporation Laser level interface and control
WO2022119818A1 (en) * 2020-12-01 2022-06-09 Milwaukee Electric Tool Corporation Laser level interface and control

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201328115Y (en) * 2008-12-10 2009-10-14 昆明理工大学 Wireless data transmission system for total station
CN102135426B (en) * 2010-01-22 2014-07-30 南京德朔实业有限公司 Remote control method of laser swinger based on bidirectional remote control mode
CN101950475B (en) * 2010-08-31 2012-05-09 浙江大学 Remote controller based on mobile equipment touch screen stroke recognition and method for remotely controlling electrical appliance
CN201993089U (en) * 2011-03-28 2011-09-28 中国科学院西安光学精密机械研究所 CCD laser displacement detection device based on large-size linear array
CN102494632B (en) * 2011-11-29 2014-01-08 中国科学院电工研究所 Device and method for detecting heliostat face shape error
US8826553B2 (en) * 2012-04-20 2014-09-09 Trimble Navigation Limited Layout equipment and layout method
CN202688979U (en) * 2012-06-26 2013-01-23 南京工业大学 Integrated monitoring system for foundation pit under construction
CN102739485A (en) * 2012-07-06 2012-10-17 浙江工业大学 Intelligent home furnishing system capable of supporting two access modes
CN202748025U (en) * 2012-08-31 2013-02-20 深圳华盛昌机械实业有限公司 Device for generating engineering blueprint through remote-control range finding
AU2012101492A4 (en) * 2012-09-28 2012-11-08 Geo Laser (Australia) Pty Ltd. Laser combo

Also Published As

Publication number Publication date
WO2015062139A1 (en) 2015-05-07
CN104574887A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
US9510163B2 (en) Method and apparatus for managing a group profile in a Wi-Fi direct communication system
KR101964077B1 (en) Apparatus and method for connecting bluetooth device in portable terminal
US9900773B2 (en) Electronic apparatus and control method thereof
US9331749B2 (en) Communication system, communication apparatus, communication method, communication program and electric device
EP3169135A1 (en) Radio communication apparatus and radio communication method
JP5879780B2 (en) Information processing program, information processing apparatus, and information processing method
EP3893595B1 (en) Establishment by a second terminal device of a wlan hotspot connection to a first terminal device for connecting to the internet
CN103425062B (en) Control system
CN105228147A (en) Method for connecting network, Apparatus and system
CN105163372A (en) Network access method and network access device of intelligent household appliance
JP2017083526A (en) Communication device
CN107423099B (en) Key code programming method, server, terminal, key code programming system and storage medium
US20150063168A1 (en) Method and apparatus for scanning channel
CN103607713A (en) Method, apparatus, device and system for network access
CN115134881A (en) Wi-Fi hotspot connection method and terminal
EP3291509A1 (en) Information processing device and non-transitory recording medium
EP3629143B1 (en) Apparatus and method for informing of available devices in contents sharing network
KR20160113226A (en) Method for establishing communication connection and medium device
JP6361188B2 (en) Wireless communication apparatus, wireless communication method, program, wireless communication system, and peripheral
CN104574887B (en) Data transmission method and device and electronic equipment
CN105556866A (en) Method to set up a wireless communication connection and electronic device utilizing the same
KR20130138534A (en) Method for testing connection state of wireless network and apparatus thereof
JP2013219559A (en) Communication system and communication method
CN107205284B (en) Electronic device and connection control method thereof
US11102829B2 (en) Charge-based peripheral device selection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant