CN111899495A - Wireless master-slave device control method based on android system - Google Patents

Wireless master-slave device control method based on android system Download PDF

Info

Publication number
CN111899495A
CN111899495A CN202010681592.3A CN202010681592A CN111899495A CN 111899495 A CN111899495 A CN 111899495A CN 202010681592 A CN202010681592 A CN 202010681592A CN 111899495 A CN111899495 A CN 111899495A
Authority
CN
China
Prior art keywords
application program
slave device
master
slave
application
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
CN202010681592.3A
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.)
Emdoor Digital Technology Co ltd
Original Assignee
Emdoor Digital 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 Emdoor Digital Technology Co ltd filed Critical Emdoor Digital Technology Co ltd
Priority to CN202010681592.3A priority Critical patent/CN111899495A/en
Publication of CN111899495A publication Critical patent/CN111899495A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

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

Abstract

The invention provides a wireless master-slave device control method based on an android system, and belongs to the technical field of terminal application. The method comprises the following steps: the master device and the slave device are respectively provided with a first application program and a second application program, and the first application program and the second application program are operated; the first application program judges whether the main equipment opens the wireless hotspot; the second application program judges whether the slave device is connected to the wireless hotspot; when the slave device is connected to the wireless hotspot, the network channel is successfully established, the first application program displays the information of the local device and the slave device, and the second application program displays the information of the main device and the local device; selecting a slave device number in the first application program, and establishing remote communication with the slave device; the function keys of the first and second applications are displayed in an available state, and the master device can control the slave device through the function keys of the first application. The invention has the beneficial effects that: through the remote communication of the master device and the slave device, the master device can control and acquire the relevant information and state of the slave device in a complex environment.

Description

Wireless master-slave device control method based on android system
Technical Field
The invention relates to the technical field of terminal application, in particular to a method for controlling wireless master and slave equipment based on an android system.
Background
The master-slave control on the Android device means that a master station device and a plurality of slave station devices form a control network, the current master-slave network control communication is basically based on the communication control of a switch network cable connection or a large server, a route and the like, the master-slave hardware devices are basically not equal, and the master device generally only controls the slave devices in a one-way mode. The slave device needs to perform a confirmation operation with the master device after manual operation. If a manufacturer in the market uses a cloud server to upgrade the system, the Android slave device needs to be confirmed and then installed and upgraded through downloading data, and certain manual interaction is needed.
In the long-term research and development, debugging and verification work, various external conditions are often restricted, no relevant external switch and routing equipment are provided, a plurality of devices are subjected to temperature experiments, vibration experiments, humidity experiments and the like, and workers cannot directly hold the devices for operation but need to periodically acquire some key information and control relevant hardware behaviors and the like. There is therefore a need for a method that can enable a master device to control a slave device and to obtain slave device related information.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a method for controlling a master device and a slave device in a wireless manner based on an android system.
The invention provides a method for controlling a wireless master slave device based on an android system, which comprises the following steps:
step 1: the master device is provided with a first application program, the slave device is provided with a second application program, and the first application program and the second application program are respectively operated;
step 2: the first application program judges whether the main equipment opens the wireless hotspot;
and step 3: the second application program judging whether a slave device is connected to the wireless hotspot;
and 4, step 4: when the second application program detects that the slave device is connected to the wireless hotspot, the network channel is successfully established, the first application program displays local device information and slave device information on the master device, and the second application program displays the master device information and the local device information on the slave device;
and 5: selecting a slave device number to be controlled in the first application program, and establishing remote communication with a second application program of the slave device;
step 6: when the remote communication is successfully established, the function keys of the first application program and the second application program are displayed in an available state, and the master device can control the slave device through the function keys of the first application program.
In step 6, when the function key of the first application program for controlling the slave device is clicked on the master device, the method further includes the following steps:
step 801: the first application program analyzes the clicked function key information;
step 802: the first application program sends the function key information to a second application program of the appointed slave equipment;
step 803: the second application program analyzes the received function key information and converts the function key information into an operation instruction of the slave equipment;
step 804: the second application program controls the slave equipment to execute the operation instruction;
step 805: and the second application program sends the processing result executed by the slave equipment to the first application program of the master equipment.
In step 1, the first application program and the second application program are both master-slave device control programs which are developed based on an android platform and applied to an android device.
The invention is further improved, in the step 1, the number of the slave devices is 1 or more.
In step 2, when the first application detects that the host device does not open the wireless hotspot, the first application opens the wireless hotspot interface of the host device and opens the wireless hotspot.
In step 3, when the second application detects that the slave device is not connected to the wireless hotspot, the second application opens a wireless hotspot interface of the slave device, and sets the wireless hotspot connected to the master device.
In step 4, after the network channel is successfully established, the first application program and the second application program continuously monitor whether the network channel is normal.
In step 5, when the network channel is failed to be established, step 2 is restarted.
The invention is further improved, in step 6, the first application program and the second application program are provided with exit application keys, and the master device and the slave device can cut off the remote communication connection by clicking the exit application keys.
In step 6, the first application program and the second application program are further provided with reserved control function keys, and the reserved control function keys are application interfaces with functions to be added.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a method for controlling a wireless master device and a wireless slave device based on an android system, wherein the master device can control and acquire the relevant information and state of the slave device in a complex environment through the remote communication of the master device and the slave device under the android system without adding external auxiliary devices, and particularly, the method is convenient for the device control in the complex environment and has wide application in debugging/testing inside some research and development enterprises.
Drawings
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is an interface diagram of a first application of the present invention;
FIG. 3 is an interface diagram of a second application of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
As shown in fig. 1, the present invention provides a method for controlling a wireless master slave device based on an android system, including the following steps:
step 1: the master device is provided with a first application program, the slave device is provided with a second application program, and the first application program and the second application program are respectively operated;
step 2: the first application program judges whether the main equipment opens the wireless hotspot;
and step 3: the second application program judging whether a slave device is connected to the wireless hotspot;
and 4, step 4: when the second application program detects that the slave device is connected to the wireless hotspot, the network channel is successfully established, the first application program displays local device information and slave device information on the master device, and the second application program displays the master device information and the local device information on the slave device;
and 5: selecting a slave device number to be controlled in the first application program, and establishing remote communication with a second application program of the slave device;
step 6: when the remote communication is successfully established, the function keys of the first application program and the second application program are displayed in an available state, and the master device can control the slave device through the function keys of the first application program.
As shown in fig. 1, when the function key of the first application program for controlling the slave device is clicked on the master device in step 6, the method further includes the following steps:
step 801: the first application program analyzes the clicked function key information;
step 802: the first application program sends the function key information to a second application program of the appointed slave equipment;
step 803: the second application program analyzes the received function key information and converts the function key information into an operation instruction of the slave equipment;
step 804: the second application program controls the slave equipment to execute the operation instruction;
step 805: and the second application program sends the processing result executed by the slave equipment to the first application program of the master equipment.
The communication between the first application program and the second application program realizes the remote control of the master device on the slave device and the acquisition of the relevant information and the state of the slave device when the master device remotely controls the slave device.
As shown in fig. 1, in step 1, the first application program and the second application program are both master-slave device control programs which are developed based on an android platform and are applied to an android device, and are applied more widely in an android environment at present, and run more stably in the android environment.
As shown in fig. 1, in step 1, the number of the slave devices is 1 or more, and the master device can remotely control a plurality of slave devices instead of controlling one slave device.
As shown in fig. 1, in step 2, when the first application detects that the host device does not open the wireless hotspot, the first application opens the wireless hotspot interface of the host device and opens the wireless hotspot.
As shown in fig. 1, in step 3, when the second application detects that the slave device is not connected to the wireless hotspot, the second application opens a wireless hotspot interface of the slave device, and manually sets the wireless hotspot connected to the master device.
As shown in fig. 1, in step 4, after the network channel is successfully established, the first application program and the second application program continuously monitor whether the network channel is normal, and the first application program and the second application program will automatically check whether the network channel is normal every 5 seconds, so as to ensure that the network channels of the first application program and the second application program are in a normal state.
As shown in fig. 1, in step 5, when the network path establishment fails, step 2 is restarted.
As shown in fig. 2 and 3, in step 6, the first application program and the second application program are provided with an exit application key, and the master device and the slave device can cut off the telecommunication connection by clicking the exit application key.
As shown in fig. 2 and 3, in step 6, the first application program and the second application program are further provided with a reserved control function key, where the reserved control function key is an application interface to be added with a function, so as to facilitate adding other control functions to the slave device later.
As shown in fig. 2, after the remote communication is successfully established, the first application program of the master device operates the interface, wherein the function keys include establishing communication, clearing reset, all tests, text recording, disconnection exit, version information, storage information, temperature voltage, SMI information, GPS information, sensor information, LED control, and reservation control, in addition to displaying the information of the local device and the information of the slave devices in communication:
and establishing communication for the master equipment and the slave equipment to establish remote communication.
And clearing reset for clearing the acquired slave device state information.
And all tests are used for testing whether the functions of the slave equipment are normal.
And the text record is used for displaying the text record information of the slave equipment.
And disconnecting the exit for cutting off the remote communication connection between the master equipment and the slave equipment.
And the version information is used for acquiring the version information of the slave equipment.
And the storage information is used for acquiring the storage information of the slave equipment.
And the temperature voltage is used for acquiring the temperature voltage of the slave equipment.
And SMI information used for acquiring the SMI information of the slave equipment.
GPS information for detecting a GPS function of the slave device.
Sensor information for controlling sensor operation of the slave device.
And the LED control is used for controlling the LED operation of the slave equipment.
Reservation control for adding new control functions later.
As shown in fig. 3, after the remote communication is successfully established, the second application program of the slave device operates the interface, wherein the function keys include establishing communication, disconnecting and exiting, and reserving control, except for displaying the local device information and the communication master device information:
and establishing communication for the master equipment and the slave equipment to establish remote communication.
And disconnecting the exit for cutting off the remote communication connection between the master equipment and the slave equipment.
Reservation control for adding new control functions later.
Compared with the prior art, the invention has the beneficial effects that: the invention provides a method for controlling a wireless master device and a wireless slave device based on an android system, wherein the master device can control and acquire the relevant information and state of the slave device in a complex environment through the remote communication of the master device and the slave device under the android system without adding external auxiliary devices, and particularly, the method is convenient for the device control in the complex environment and has wide application in debugging/testing inside some research and development enterprises.
The above-described embodiments are intended to be illustrative, and not restrictive, of the invention, and all changes that come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (10)

1. A wireless master-slave device control method based on an android system is characterized by comprising the following steps:
step 1: the master device is provided with a first application program, the slave device is provided with a second application program, and the first application program and the second application program are respectively operated;
step 2: the first application program judges whether the main equipment opens the wireless hotspot;
and step 3: the second application program judging whether a slave device is connected to the wireless hotspot;
and 4, step 4: when the second application program detects that the slave device is connected to the wireless hotspot, the network channel is successfully established, the first application program displays local device information and slave device information on the master device, and the second application program displays the master device information and the local device information on the slave device;
and 5: selecting a slave device number to be controlled in the first application program, and establishing remote communication with a second application program of the slave device;
step 6: when the remote communication is successfully established, the function keys of the first application program and the second application program are displayed in an available state, and the master device can control the slave device through the function keys of the first application program.
2. The android system-based wireless master-slave device control method of claim 1, wherein: in step 6, when the function key of the first application program for controlling the slave device is clicked on the master device, the method further includes the following steps:
step 801: the first application program analyzes the clicked function key information;
step 802: the first application program sends the function key information to a second application program of the appointed slave equipment;
step 803: the second application program analyzes the received function key information and converts the function key information into an operation instruction of the slave equipment;
step 804: the second application program controls the slave equipment to execute the operation instruction;
step 805: and the second application program sends the processing result executed by the slave equipment to the first application program of the master equipment.
3. The android system-based wireless master-slave device control method of claim 2, wherein in step 1, the first application program and the second application program are both master-slave device control programs which are developed based on an android platform and are applied to android devices.
4. The android-system-based wireless master-slave device control method of claim 3, wherein in step 1, the number of the slave devices is 1 or more.
5. The android-system-based wireless master-slave device control method of claim 4, wherein in step 2, when the first application detects that the master device does not open the wireless hotspot, the first application opens a wireless hotspot interface of the master device and opens the wireless hotspot.
6. The android-system-based wireless master-slave device control method of claim 5, wherein in step 3, when the second application detects that the slave device is not connected to the wireless hotspot, the second application opens a wireless hotspot interface of the slave device, and sets the wireless hotspot connected to the master device.
7. The android-system-based wireless master-slave device control method of claim 6, wherein in step 4, after the network channel is successfully established, the first application program and the second application program continuously monitor whether the network channel is normal.
8. The android-system-based wireless master-slave device control method of claim 7, wherein in step 5, after a network channel is failed to be established, step 2 is restarted.
9. The android-system-based wireless master-slave device control method of claim 8, wherein in step 6, the first application program and the second application program are provided with an exit application key, and the master device and the slave device can cut off the remote communication connection by clicking the exit application key.
10. The method according to claim 9, wherein in step 6, the first application program and the second application program are further provided with a reserved control function key, and the reserved control function key is an application interface to which a function is to be added.
CN202010681592.3A 2020-07-15 2020-07-15 Wireless master-slave device control method based on android system Pending CN111899495A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010681592.3A CN111899495A (en) 2020-07-15 2020-07-15 Wireless master-slave device control method based on android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010681592.3A CN111899495A (en) 2020-07-15 2020-07-15 Wireless master-slave device control method based on android system

Publications (1)

Publication Number Publication Date
CN111899495A true CN111899495A (en) 2020-11-06

Family

ID=73192766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010681592.3A Pending CN111899495A (en) 2020-07-15 2020-07-15 Wireless master-slave device control method based on android system

Country Status (1)

Country Link
CN (1) CN111899495A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735607A (en) * 2015-02-26 2015-06-24 广东欧珀移动通信有限公司 Data transmission method, mobile terminal and system
US20160015004A1 (en) * 2014-07-21 2016-01-21 Nicholas Jay Bonge, JR. Wireless animal training, monitoring and remote control system
CN105657641A (en) * 2015-12-31 2016-06-08 中科创达软件股份有限公司 Interconnection device identification method, master intelligent device and slave intelligent device
CN106027808A (en) * 2016-07-28 2016-10-12 上海博泰悦臻电子设备制造有限公司 Car machine, intelligent mobile terminal, and corresponding connection control method and system
CN108243201A (en) * 2016-12-23 2018-07-03 乐视汽车(北京)有限公司 A kind of system and method for the interconnection of vehicle device and realization vehicle device and mobile terminal
CN108537971A (en) * 2018-01-19 2018-09-14 云享云(北京)科技有限公司 A kind of control method of massage armchair, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160015004A1 (en) * 2014-07-21 2016-01-21 Nicholas Jay Bonge, JR. Wireless animal training, monitoring and remote control system
CN104735607A (en) * 2015-02-26 2015-06-24 广东欧珀移动通信有限公司 Data transmission method, mobile terminal and system
CN105657641A (en) * 2015-12-31 2016-06-08 中科创达软件股份有限公司 Interconnection device identification method, master intelligent device and slave intelligent device
CN106027808A (en) * 2016-07-28 2016-10-12 上海博泰悦臻电子设备制造有限公司 Car machine, intelligent mobile terminal, and corresponding connection control method and system
CN108243201A (en) * 2016-12-23 2018-07-03 乐视汽车(北京)有限公司 A kind of system and method for the interconnection of vehicle device and realization vehicle device and mobile terminal
CN108537971A (en) * 2018-01-19 2018-09-14 云享云(北京)科技有限公司 A kind of control method of massage armchair, terminal and storage medium

Similar Documents

Publication Publication Date Title
BRPI0610776A2 (en) Methods and Equipment for Determining Multimedia Performance Aspects of a Wireless Device
CN104461897A (en) Application program test method and device
EP2568733A1 (en) Method and apparatus for collecting mobile communication data
JPH08265424A (en) User interface with terminal emulation driving operation support system translation mechanism provided on portable testing and communication device of engineer
CN103974308A (en) Base station maintenance equipment, method, device and system, mobile terminal and base station
US10382922B2 (en) Distributed testing of wireless networks
US20070124367A1 (en) Integrated Mobile Diagnostics and Electronic Customer Care Test Script with Browser
CN112835604B (en) System gray version release management method, system, equipment and medium
WO2023273561A1 (en) Test method and apparatus, electronic device, and storage medium
CN112733369A (en) Intelligent equipment maintenance method, terminal and system and electronic equipment
CN113238951A (en) Software barrier-free automatic test system and test method thereof
CN104918280A (en) Vehicle-mounted wireless equipment, train equipment wireless test system and method
CN106506212A (en) Abnormal information acquisition methods and user terminal
CN105025467B (en) A kind of terminal control method and system based on MDM
CN114257470A (en) Vehicle Bluetooth function test system and test method
CN108540344B (en) Router upgrading test method and system
CN112543478B (en) WiFi module automatic test method and device, computer equipment and storage medium
CN113377664A (en) Model testing method and device, electronic device and storage medium
CN103516767A (en) Software cross-cloud deployment mechanism and system
CN105578122A (en) Monitoring prompt method based on router, apparatus and electronic equipment thereof
CN111899495A (en) Wireless master-slave device control method based on android system
US10834169B2 (en) System and method of communicating with and controlling a test device
CN101222740B (en) Method, device and system for controlling and configuring equipment with multi-version for testing
CN114374889A (en) Water quality monitoring system
CN112671814B (en) Cross-platform equipment development method, device and system

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
CB02 Change of applicant information

Address after: 901, building 1, No. 9, Jinxiu Middle Road, Laokeng community, Longtian street, Pingshan District, Shenzhen City, Guangdong Province

Applicant after: EMDOOR DIGITAL TECHNOLOGY Co.,Ltd.

Address before: 518000 4th floor, building 5, building 2-2, building 6, building 2-2, building 6, building 4, Meisheng Huigu Science Park, 83 Dabao Road, Shanghe community, Xin'an street, Bao'an District, Shenzhen City, Guangdong Province

Applicant before: EMDOOR DIGITAL TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20201106

RJ01 Rejection of invention patent application after publication