CN109189320A - A kind of control method of smart machine, storage medium and server - Google Patents

A kind of control method of smart machine, storage medium and server Download PDF

Info

Publication number
CN109189320A
CN109189320A CN201811121932.6A CN201811121932A CN109189320A CN 109189320 A CN109189320 A CN 109189320A CN 201811121932 A CN201811121932 A CN 201811121932A CN 109189320 A CN109189320 A CN 109189320A
Authority
CN
China
Prior art keywords
screen
equipment
control
smart machine
master
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
CN201811121932.6A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811121932.6A priority Critical patent/CN109189320A/en
Publication of CN109189320A publication Critical patent/CN109189320A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display

Abstract

The present invention provides a kind of control method of smart machine, storage medium and servers, comprising: obtains the control request that smart machine is sent, the control request carries control facility information;The control facility information carried based on the control request, the smart machine to match with the control facility information is chosen from more smart machines connecting with control server establishes master & slave control group, obtain the screen resolution of main equipment and the screen resolution from equipment in the master & slave control group, according to the screen resolution of the main equipment and the screen resolution from equipment, establish the main equipment and the screen coordinate point mapping relations from equipment, if the control server detects the touch-screen event of the main equipment, according to the screen coordinate point mapping relations, driving is described to execute the touch-screen event from equipment.The present invention can effectively realize the master & slave control between the smart machine of different model, improve the efficiency of equipment master & slave control, enhance user experience.

Description

A kind of control method of smart machine, storage medium and server
Technical field
The present invention relates to field of communication technology more particularly to a kind of control methods of smart machine, storage medium and service Device.
Background technique
The concept of master-slave equipment group is defined in IGRS standard.In practical applications, by master & slave control, can will make Operation for user on the smart machine of control terminal is synchronized to the smart machine as controlled terminal, i.e., need to only set in an intelligence Standby upper operation, that is, can be achieved at the same time and complete same operation on other smart machines.
However, can not be synchronized to since the model difference of smart machine may cause the operation of user on the master from setting Standby, master & slave control is inefficient, influences user experience.
Summary of the invention
The embodiment of the invention provides a kind of control method of smart machine, storage medium and servers, existing to solve In technology, it can not be synchronized to since the model difference of smart machine may cause the operation of user on the master from equipment, it is main It is not high from control efficiency, the problem of influencing user experience.
The first aspect of the embodiment of the present invention provides a kind of control method of smart machine, comprising:
The control request that smart machine is sent is obtained, the control request carries control facility information;
Based on the control facility information that the control request carries, from more smart machines being connect with control server The smart machine to match with the control facility information is chosen, and controls what facility information matched with described according to selection Smart machine establishes master & slave control group, the master & slave control group include as control terminal main equipment and as controlled terminal from Equipment;
Obtain the screen resolution and the screen resolution from equipment of main equipment described in the master & slave control group;
According to the screen resolution of the main equipment and the screen resolution from equipment, the master & slave control group is established Described in main equipment and the screen coordinate point mapping relations from equipment;
If the control server detects the touch-screen event of the main equipment, is mapped and closed according to the screen coordinate point System, driving is described to execute the touch-screen event from equipment.
The second aspect of the embodiment of the present invention provides a kind of server, including memory and processor, the storage Device is stored with the computer program that can be run on the processor, and the processor is realized such as when executing the computer program Lower step:
The control request that smart machine is sent is obtained, the control request carries control facility information;
Based on the control facility information that the control request carries, from more smart machines being connect with control server The smart machine to match with the control facility information is chosen, and controls what facility information matched with described according to selection Smart machine establishes master & slave control group, the master & slave control group include as control terminal main equipment and as controlled terminal from Equipment;
Obtain the screen resolution and the screen resolution from equipment of main equipment described in the master & slave control group;
According to the screen resolution of the main equipment and the screen resolution from equipment, the master & slave control group is established Described in main equipment and the screen coordinate point mapping relations from equipment;
If the control server detects the touch-screen event of the main equipment, is mapped and closed according to the screen coordinate point System, driving is described to execute the touch-screen event from equipment.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program realizes following steps when being executed by processor:
The control request that smart machine is sent is obtained, the control request carries control facility information;
Based on the control facility information that the control request carries, from more smart machines being connect with control server The smart machine to match with the control facility information is chosen, and controls what facility information matched with described according to selection Smart machine establishes master & slave control group, the master & slave control group include as control terminal main equipment and as controlled terminal from Equipment;
Obtain the screen resolution and the screen resolution from equipment of main equipment described in the master & slave control group;
According to the screen resolution of the main equipment and the screen resolution from equipment, the master & slave control group is established Described in main equipment and the screen coordinate point mapping relations from equipment;
If the control server detects the touch-screen event of the main equipment, is mapped and closed according to the screen coordinate point System, driving is described to execute the touch-screen event from equipment.
It in the embodiment of the present invention, is requested by obtaining the control that smart machine is sent, the control request carries control Facility information, based on the control facility information that the control request carries, from more smart machines being connect with control server The smart machine that middle selection matches with the control facility information, and matching with the control facility information according to selection Smart machine establish master & slave control group, the master & slave control group includes as the main equipment of control terminal and as controlled terminal From equipment, the screen resolution and the screen resolution from equipment of main equipment described in the master & slave control group, root are obtained According to the screen resolution and the screen resolution from equipment of the main equipment, establishes master described in the master & slave control group and set The standby and described screen coordinate point mapping relations from equipment, if the control server detects the touch screen thing of the main equipment Part, according to the screen coordinate point mapping relations, driving is described to execute the touch-screen event from equipment, main equipment and from equipment Model is not identical to realize master & slave control, to improve the efficiency of master & slave control, enhances user experience.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the control method of smart machine provided in an embodiment of the present invention;
Fig. 2 is the specific implementation flow chart of the control method S103 of smart machine provided in an embodiment of the present invention;
Fig. 3 is the specific implementation flow chart of the control method A1 of smart machine provided in an embodiment of the present invention;
Fig. 4 is the specific implementation flow chart of the control method S105 of smart machine provided in an embodiment of the present invention;
Fig. 5 is the structural block diagram of the control device of smart machine provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention Range.
Fig. 1 shows the implementation process of the control method of smart machine provided in an embodiment of the present invention, this method process packet Include step S101 to S105.The specific implementation principle of each step is as follows:
S101: obtaining the control request that smart machine is sent, and the control request carries control facility information.
Wherein, the control facility information that the control request carries include main equipment as control terminal facility information with The facility information of slave equipment as controlled terminal.In embodiments of the present invention, at least two smart machines and control service Device connection.Control server and multiple smart machines can be established using Bluetooth technology, WiFi technology or 3G/4G/5G technology etc. Between wireless connection, can also be established using Serial technology or USB interface technology etc. control server and smart machine it Between wired connection.Wirelessly connected between multiple smart machines using foundation such as Bluetooth technology, WiFi technology or 3G/4G/5G technologies It connects.
In embodiments of the present invention, before the step S101, smart machine transmission connection request to control server, The connection request carries the EIC equipment identification code of the smart machine, and the control server registers setting for the smart machine Standby identification code, and feedback link successful information is to the smart machine.The successful connection information carries the control service The connection token that device is generated according to the EIC equipment identification code of the smart machine, the connection token is for identifying smart machine and control Whether server, which keeps, connects, in the smart machine and the connection procedure of the control server, the control server The connection token that the smart machine is regularly sent is obtained, alternatively, smart machine described in the control server poll inquiry Token is connected, whether also keeps connecting with control server with the determination smart machine.Specifically, if the smart machine is sent out It is identical that the connection token sent with the control server is sent to the connection token of the smart machine, it is determined that the intelligence is set It is standby to keep connection, if the control server judges that the connection token that the smart machine is sent and the control server are sent It is different to the connection token of the smart machine, or do not inquire the connection token of the smart machine, then the intelligence is set It is standby to have been disconnected with the control server.
Illustratively, after smart machine and control server successful connection, control server is according to smart machine EIC equipment identification code generates a connection token.Control server saves the connection token in the local database, and by the connection Token is sent to smart machine.Optionally, the connection token further includes random number, and smart machine is serviced with control again every time When device connects, control server all can regenerate a connection token for the smart machine, and the random number for connecting token can be more Change.After smart machine is connect with control server, smart machine start timer, regularly send connection token to control clothes Device be engaged in for control server inquiry.Control server records and stores the smart machine for regularly sending connection token, the record In include regularly send connection token smart machine EIC equipment identification code with regularly send the week for connecting the smart machine of token Phase determines the already off connection of the smart machine if being more than the connection token for specified time not receiving smart machine transmission.
It further, further include the effective time of token in the connection token.It is reached when the effective time of connection token Afterwards, the control server inquires whether the smart machine continues to connect, and sets if the intelligence is within a specified time not detected Standby feedback continues to connect, then determines that the smart machine disconnects, the smart machine is anti-if within a specified time detecting Feedback continues to connect, then resets the effective time of the connection token, or sends the connection order for being equipped with new effective time Board is to the smart machine.
S102: the control facility information carried based on the control request, from more intelligence being connect with control server Chosen in equipment with the smart machine that matches of control facility information, and according to selection and the control facility information phase Matched smart machine establishes master & slave control group, and the master & slave control group includes as the main equipment of control terminal and as being controlled The slave equipment at end.
In invention the present embodiment, the control facility information includes the facility information and work of the main equipment as control terminal For the facility information of the slave equipment of controlled terminal.Wherein, the facility information includes the EIC equipment identification code for identifying equipment, also Including the device model for device class.The control server selects and the control from more smart machines of connection The smart machine that facility information matches establishes master & slave control group.In the master & slave control group, carried out on the main equipment Operation can be synchronized to from equipment.There is an at least main equipment and at least one from equipment in the master & slave control group.
Optionally, the smart machine for sending the control request is determined as main equipment, the control by the control server It include the EIC equipment identification code for sending the smart machine of the control request in control equipment information, further according to the control facility information It is middle need to smart machine to be controlled EIC equipment identification code or device model determine from equipment, according to determining main equipment and from Equipment establishes master & slave control group.
Optionally, the smart machine for sending control request can be from equipment.The control equipment that the control request carries Including sending the EIC equipment identification code for the slave equipment that the control request requirement is controlled and specifying as main equipment in information The device model or EIC equipment identification code of smart machine, according to the device control message from the intelligence being connect with the control server Main equipment is determined in energy equipment and from equipment, establishes master & slave control group.
Optionally, in embodiments of the present invention, after obtaining the control request that the smart machine is sent, based on described The control facility information that control request carries sends control application to the control facility information middle finger and is set for as from the intelligence of equipment Can equipment, receive the specified smart machine as from equipment allow to feed back and then according to determining main equipment with Determining slave equipment establishes master & slave control group, and then improves communication security, protects privacy of user.
As an embodiment of the present invention, as shown in Fig. 2, above-mentioned S103 is specifically included:
A1: if the control request for receiving two or more smart machine while sending, determines and send control The priority of the smart machine of request.Specifically, determine whether to send simultaneously according to the time that smart machine sends control request. The priority of the smart machine is to preset, and can be set according to the brand, model or performance information of smart machine preferential Grade.
A2: the control facility information carried based on the control request that the high smart machine of the priority is sent, from institute It states selection smart machine in more smart machines of control server connection and establishes master & slave control group.Specifically, if receiving more The control request that a smart machine is sent simultaneously, the priority of more the multiple smart machine, by the multiple smart machine According to priority sort from high to low, the control facility information that the control request that the smart machine based on highest priority is sent carries Establish master & slave control group.
In embodiments of the present invention, when there are two or more than two smart machine send control request when, control server Main equipment is determined according to the time for sending control request, and first sending is main equipment.Alternatively, model previously according to smart machine or Performance information specifies the priority of smart machine, when multiple smart machines send control request simultaneously, according to preassigned Priority determines main equipment, avoids request collision.
Optionally, if the multiple smart machine priority for sending control request simultaneously are identical, the S103 further include:
A3: the frequency of use of the multiple smart machine is obtained.
A4: the control facility information carried based on the control request that the highest smart machine of the frequency of use is sent, from Smart machine is chosen in more smart machines connecting with the control server establishes master & slave control group.
S103: obtain main equipment described in the master & slave control group screen resolution and it is described from the screen of equipment differentiate Rate.
Specifically, since the brand of smart machine or model be not identical, the screen resolution of smart machine may be different, can Remove to obtain the screen resolution of main equipment described in the master & slave control group and described according to the brand of smart machine and/or model From the screen resolution of equipment.For example, the screen resolution of smart machine A is 720 × 1280, the screen of smart machine B is differentiated Rate is 1280 × 1920.
As an embodiment of the present invention, Fig. 3 shows the control method of smart machine provided in an embodiment of the present invention The specific implementation flow of step A1, details are as follows:
A11: the performance information for sending the smart machine of control request is obtained.The performance information includes system version, CPU Kernel and storage space information.
A12: the corresponding priority of the performance information is searched in pre-set priority information table.
In embodiments of the present invention, system version stability is higher or system version is newer, corresponds to the excellent of smart machine First grade is higher.CPU core quantity is more, and the priority of corresponding smart machine is higher;Usable memory space is bigger, corresponding intelligence The priority of equipment is higher.
S104: according to the screen resolution of the main equipment and the screen resolution from equipment, the principal and subordinate is established Main equipment described in control group and the screen coordinate point mapping relations from equipment.
In embodiments of the present invention, the coordinate of main equipment and the screen pixels point from equipment is established into mapping relations.
As an embodiment of the present invention, the control method S104's of smart machine provided in an embodiment of the present invention is specific Implementation process, details are as follows:
B1: the screen resolution of the main equipment be MW × MH, it is described from the screen resolution of equipment be FW × FH.
B2: the abscissa CW of screen pixels point i on main equipment is obtainediWith ordinate CHi
B3: the screen picture corresponding with screen pixels point i on the main equipment from equipment is determined according to the following formula The abscissa BCW of vegetarian refreshments jjWith ordinate BCHj:
Wherein, i and j is positive integer.
Illustratively, the screen resolution of main equipment is 720x1280, and the coordinate of screen pixels point i is on main equipment (100,200) are 1280 × 1920 from the screen resolution of equipment.The screen pixels corresponding with screen pixels point i from equipment The abscissa x of point jjAre as follows: xj=(100/720) × 1280=177, ordinate yj are as follows: yj=(200/1280) × 1920=300.
S105: it if the control server detects the touch-screen event of the main equipment, is reflected according to the screen coordinate point Relationship is penetrated, driving is described to execute the touch-screen event from equipment.
Wherein, the touch-screen event includes clicking screen, continuously slipping touch etc., and the touch-screen event is to refer to trigger The operation of display control is loaded into the regional area of screen.
Specifically, if the control server detects the touch-screen event of the main equipment, the touch-screen event is obtained The coordinate of middle screen contact determines the screen according to the coordinate of the screen contact and the screen coordinate point mapping relations Contact is touched according to the coordinate triggering corresponding from equipment in the coordinate corresponding from equipment, and driving is described from setting Standby execution is described to execute identical touch-screen event from equipment, realizes that the main equipment is controlled from the master-slave synchronisation of equipment described.
Illustratively, user clicks the button that screen resolution is app on 720 × 1280 main equipments, the screen of click Contact is (100,200), and after control server detects the contact action, the screen contact that will click on is converted to screen resolution For coordinate points (177,300) corresponding in 1280 × 1920 slave equipment, driving instruction is sent to driver, driver root The screen coordinate point that the virtual key driving coordinate from equipment is (177,300) is established according to the coordinate points, to complete The operation of equipment master-slave synchronisation.
As an embodiment of the present invention, Fig. 4 shows the control method of smart machine provided in an embodiment of the present invention The specific implementation flow of S105, details are as follows:
C1: screen touch point coordinate and screen response point coordinate in the touch-screen event of the main equipment are obtained.The screen Touch point coordinate refers to the coordinate of the point of user's point touching screen, and the screen response point coordinate refers to be shielded after user clicks The coordinate of the point of real response on curtain.Because there is a possibility that jumping screen, screen touch point coordinate and screen response in device screen Point coordinate might not be identical.
C2: if screen touch point coordinate and the screen response point coordinate are inconsistent, according to the screen coordinate Point mapping relations determine the screen pixels point coordinate corresponding with the touch-responsive point coordinate from equipment.To realize master From synchronization, when occurring jumping screen situation, the coordinate of the point of real response touch event is needed as from equipment using on main equipment The coordinate of the synchronous point executed, avoids principal and subordinate asynchronous.
C3: based on the screen pixels point coordinate corresponding with the touch-responsive point coordinate, driving is described to hold from equipment The row touch-screen event.
It in the embodiment of the present invention, is requested by obtaining the control that smart machine is sent, the control request carries control Facility information, based on the control facility information that the control request carries, from more smart machines being connect with control server The smart machine that middle selection matches with the control facility information, and matching with the control facility information according to selection Smart machine establish master & slave control group, the master & slave control group includes as the main equipment of control terminal and as controlled terminal From equipment, the screen resolution and the screen resolution from equipment of main equipment described in the master & slave control group, root are obtained According to the screen resolution and the screen resolution from equipment of the main equipment, establishes master described in the master & slave control group and set The standby and described screen coordinate point mapping relations from equipment, if the control server detects the touch screen thing of the main equipment Part, according to the screen coordinate point mapping relations, driving is described to execute the touch-screen event from equipment, main equipment and from equipment Model is not identical to realize master & slave control, to improve the efficiency of master & slave control, enhances user experience.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to the control method of smart machine described in foregoing embodiments, Fig. 5 shows provided by the embodiments of the present application The structural block diagram of the control device of smart machine illustrates only part relevant to the embodiment of the present application for ease of description.
Referring to Fig. 5, the control device of the smart machine includes: control request unit 51, and control group establishes unit 52, Unit 54, touch screen driving unit 55 are established in resolution ratio acquiring unit 53, mapping, in which:
Request unit 51 is controlled, for obtaining the control request of smart machine transmission, the control request is carried Control facility information;
Control group establishes unit 52, and the control facility information for being carried based on the control request is serviced from control Chosen in more smart machines of device connection with the smart machine that matches of control facility information, and according to selection and institute It states the smart machine that control facility information matches and establishes master & slave control group, the master & slave control group includes the master as control terminal Equipment and slave equipment as controlled terminal;
Resolution ratio acquiring unit 53, for obtaining the screen resolution of main equipment described in the master & slave control group and described From the screen resolution of equipment;
Unit 54 is established in mapping, for described differentiating according to the screen resolution of the main equipment and from the screen of equipment Rate establishes main equipment described in the master & slave control group and the screen coordinate point mapping relations from equipment;
Touch screen driving unit 55, if detecting the touch-screen event of the main equipment for the control server, according to institute Screen coordinate point mapping relations are stated, driving is described to execute the touch-screen event from equipment.
Optionally, the control group establishes unit 52 and includes:
Priority Determination module, if for receive two or more smart machine and meanwhile send control ask It asks, determines the priority for sending the smart machine of control request;
Formwork erection block is set up in control, the control that the control request for being sent based on the high smart machine of the priority is carried Facility information chooses smart machine from more smart machines connecting with the control server and establishes master & slave control group.
Optionally, the Priority Determination module specifically includes:
Performance information acquisition submodule, for obtaining the performance information for sending the smart machine of control request;
Priority determines submodule, corresponding preferential for searching the performance information in pre-set priority information table Grade.
Optionally, the mapping establishes unit 54 and includes:
The screen resolution of the main equipment be MW × MH, it is described from the screen resolution of equipment be FW × FH;
Pixel coordinate obtaining module, for obtaining the abscissa CW of screen pixels point i on main equipmentiWith ordinate CHi
First coordinate mapping module, for determine according to the following formula it is described from equipment with screen picture on the main equipment The abscissa BCW of the corresponding screen pixels point j of vegetarian refreshments ijWith ordinate BCHj:
Wherein, i and j is positive integer
Optionally, the touch screen driving unit 55 includes:
Coordinate determining module, screen touch point coordinate and screen response point in the touch-screen event for obtaining the main equipment Coordinate;
Second coordinate mapping module, if inconsistent for the screen touch point coordinate and the screen response point coordinate, Then according to the screen coordinate point mapping relations, the screen picture corresponding with the touch-responsive point coordinate from equipment is determined Vegetarian refreshments coordinate;
Drive module is touched, for driving based on the screen pixels point coordinate corresponding with the touch-responsive point coordinate It is dynamic described from the equipment execution touch-screen event.
It in the embodiment of the present invention, is requested by obtaining the control that smart machine is sent, the control request carries control Facility information, based on the control facility information that the control request carries, from more smart machines being connect with control server The smart machine that middle selection matches with the control facility information, and matching with the control facility information according to selection Smart machine establish master & slave control group, the master & slave control group includes as the main equipment of control terminal and as controlled terminal From equipment, the screen resolution and the screen resolution from equipment of main equipment described in the master & slave control group, root are obtained According to the screen resolution and the screen resolution from equipment of the main equipment, establishes master described in the master & slave control group and set The standby and described screen coordinate point mapping relations from equipment, if the control server detects the touch screen thing of the main equipment Part, according to the screen coordinate point mapping relations, driving is described to execute the touch-screen event from equipment, main equipment and from equipment Model is not identical to realize master & slave control, to improve the efficiency of master & slave control, enhances user experience.
Fig. 6 is the schematic diagram for the server that one embodiment of the invention provides.As shown in fig. 6, the server 6 of the embodiment wraps It includes: processor 60, memory 61 and being stored in the computer that can be run in the memory 61 and on the processor 60 Program 62, such as the control program of smart machine.The processor 60 is realized above-mentioned each when executing the computer program 62 Step in the control method embodiment of smart machine, such as step 101 shown in FIG. 1 is to 105.Alternatively, the processor 60 The function of each module/unit in above-mentioned each Installation practice, such as unit shown in Fig. 5 are realized when executing the computer program 62 51 to 55 function.
Illustratively, the computer program 62 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 61, and are executed by the processor 60, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 62 in the server 6 is described.
The server 6 can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment. The server may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6 is only It is the example of server 6, does not constitute the restriction to server 6, may include than illustrating more or fewer components or group Close certain components or different components, for example, the server can also include input-output equipment, network access equipment, Bus etc..
The processor 60 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 61 can be the internal storage unit of the server 6, such as the hard disk or memory of server 6. The memory 61 is also possible to the External memory equipment of the server 6, such as the plug-in type being equipped on the server 6 is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 61 can also both include the internal storage unit of the server 6 or wrap Include External memory equipment.The memory 61 is for other programs needed for storing the computer program and the server And data.The memory 61 can be also used for temporarily storing the data that has exported or will export.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of control method of smart machine characterized by comprising
The control request that smart machine is sent is obtained, the control request carries control facility information;
Based on the control facility information that the control request carries, chosen from more smart machines being connect with control server The smart machine to match with the control facility information, and according to the intelligence of selection to match with the control facility information Equipment establishes master & slave control group, and the master & slave control group includes as the main equipment of control terminal and as controlled terminal from setting It is standby;
Obtain the screen resolution and the screen resolution from equipment of main equipment described in the master & slave control group;
According to the screen resolution of the main equipment and the screen resolution from equipment, institute in the master & slave control group is established State main equipment and the screen coordinate point mapping relations from equipment;
If the control server detects the touch-screen event of the main equipment, according to the screen coordinate point mapping relations, drive It is dynamic described from the equipment execution touch-screen event.
2. control method according to claim 1, which is characterized in that the control carried based on the control request is set Standby information is chosen the intelligence to match with the control facility information from more smart machines connecting with control server and is set It is standby, and master & slave control group is established according to the smart machine of selection to match with the control facility information, comprising:
If the control request for receiving two or more smart machine while sending, determines the intelligence for sending control request The priority of energy equipment;
Based on the control facility information that the control request that the high smart machine of the priority is sent carries, taken from the control Smart machine, which is chosen, in more smart machines of business device connection establishes master & slave control group.
3. control method according to claim 2, which is characterized in that the determining smart machine for sending control request Priority, comprising:
Obtain the performance information for sending the smart machine of control request;
The corresponding priority of the performance information is searched in pre-set priority information table.
4. control method according to claim 1, which is characterized in that the screen resolution according to the main equipment and The screen resolution from equipment establishes main equipment described in the master & slave control group and the screen coordinate point from equipment Mapping relations, comprising:
The screen resolution of the main equipment be MW × MH, it is described from the screen resolution of equipment be FW × FH;
Obtain the abscissa CW of screen pixels point i on main equipmentiWith ordinate CHi
Determine the screen pixels point j's corresponding with screen pixels point i on the main equipment from equipment according to the following formula Abscissa BCWjWith ordinate BCHj:
Wherein, i and j is positive integer.
5. control method according to claim 1, which is characterized in that if the control server detects the master The touch-screen event of equipment, according to the screen coordinate point mapping relations, driving is described to execute the touch-screen event, packet from equipment It includes:
Obtain screen touch point coordinate and screen response point coordinate in the touch-screen event of the main equipment;
If the screen touch point coordinate and the screen response point coordinate are inconsistent, are mapped and closed according to the screen coordinate point System determines the screen pixels point coordinate corresponding with the touch-responsive point coordinate from equipment;
Based on the screen pixels point coordinate corresponding with the touch-responsive point coordinate, driving is described to execute the touching from equipment Screen event.
6. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In the controlling party of realization smart machine as described in any one of claims 1 to 5 when the computer program is executed by processor The step of method.
7. a kind of server, including memory, processor and storage can transport in the memory and on the processor Capable computer program, which is characterized in that the processor realizes following steps when executing the computer program:
The control request that smart machine is sent is obtained, the control request carries control facility information;
Based on the control facility information that the control request carries, chosen from more smart machines being connect with control server The smart machine to match with the control facility information, and according to the intelligence of selection to match with the control facility information Equipment establishes master & slave control group, and the master & slave control group includes as the main equipment of control terminal and as controlled terminal from setting It is standby;
Obtain the screen resolution and the screen resolution from equipment of main equipment described in the master & slave control group;
According to the screen resolution of the main equipment and the screen resolution from equipment, institute in the master & slave control group is established State main equipment and the screen coordinate point mapping relations from equipment;
If the control server detects the touch-screen event of the main equipment, according to the screen coordinate point mapping relations, drive It is dynamic described from the equipment execution touch-screen event.
8. server according to claim 7, which is characterized in that the control equipment carried based on the control request Information is chosen the intelligence to match with the control facility information from more smart machines connecting with control server and is set It is standby, and master & slave control group is established according to the smart machine of selection to match with the control facility information, comprising:
If the control request for receiving two or more smart machine while sending, determines the intelligence for sending control request The priority of energy equipment;
Based on the control facility information that the control request that the high smart machine of the priority is sent carries, taken from the control Smart machine, which is chosen, in more smart machines of business device connection establishes master & slave control group.
9. server according to claim 7, which is characterized in that the screen resolution and institute according to the main equipment The screen resolution from equipment is stated, main equipment described in the master & slave control group is established and described is reflected from the screen coordinate point of equipment Penetrate relationship, comprising:
The screen resolution of the main equipment be MW × MH, it is described from the screen resolution of equipment be FW × FH;
Obtain the abscissa CW of screen pixels point i on main equipmentiWith ordinate CHi
Determine the screen pixels point j's corresponding with screen pixels point i on the main equipment from equipment according to the following formula Abscissa BCWjWith ordinate BCHj:
Wherein, i and j is positive integer.
10. server according to claim 7, which is characterized in that if the control server detects the master The touch-screen event of equipment, according to the screen coordinate point mapping relations, driving is described to execute the touch-screen event, packet from equipment It includes:
Obtain screen touch point coordinate and screen response point coordinate in the touch-screen event of the main equipment;
If the screen touch point coordinate and the screen response point coordinate are inconsistent, are mapped and closed according to the screen coordinate point System determines the screen pixels point coordinate corresponding with the touch-responsive point coordinate from equipment;
Based on the screen pixels point coordinate corresponding with the touch-responsive point coordinate, driving is described to execute the touching from equipment Screen event.
CN201811121932.6A 2018-09-26 2018-09-26 A kind of control method of smart machine, storage medium and server Pending CN109189320A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811121932.6A CN109189320A (en) 2018-09-26 2018-09-26 A kind of control method of smart machine, storage medium and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811121932.6A CN109189320A (en) 2018-09-26 2018-09-26 A kind of control method of smart machine, storage medium and server

Publications (1)

Publication Number Publication Date
CN109189320A true CN109189320A (en) 2019-01-11

Family

ID=64906285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811121932.6A Pending CN109189320A (en) 2018-09-26 2018-09-26 A kind of control method of smart machine, storage medium and server

Country Status (1)

Country Link
CN (1) CN109189320A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115297344A (en) * 2022-06-27 2022-11-04 青岛海尔科技有限公司 Screen-side equipment collaborative interaction method and device, storage medium and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621385A (en) * 2008-06-30 2010-01-06 Tcl集团股份有限公司 Method for managing intelligent device group
CN103634312A (en) * 2013-11-26 2014-03-12 广州晶锐信息技术有限公司 Device management method for realizing multi-audio fast synchrony based on audio sharing
CN103686287A (en) * 2013-12-20 2014-03-26 海信集团有限公司 Method and system for achieving smart television touch screen
US20150185934A1 (en) * 2013-02-22 2015-07-02 Boe Technology Group Co., Ltd. Display device, display system and control method
CN105656982A (en) * 2015-03-23 2016-06-08 深圳酷派技术有限公司 IMS (IP Multimedia Subsystem) technology based remote control method and wireless terminal
CN108132744A (en) * 2017-12-14 2018-06-08 亮风台(上海)信息科技有限公司 A kind of method and apparatus for being remotely controlled smart machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621385A (en) * 2008-06-30 2010-01-06 Tcl集团股份有限公司 Method for managing intelligent device group
US20150185934A1 (en) * 2013-02-22 2015-07-02 Boe Technology Group Co., Ltd. Display device, display system and control method
CN103634312A (en) * 2013-11-26 2014-03-12 广州晶锐信息技术有限公司 Device management method for realizing multi-audio fast synchrony based on audio sharing
CN103686287A (en) * 2013-12-20 2014-03-26 海信集团有限公司 Method and system for achieving smart television touch screen
CN105656982A (en) * 2015-03-23 2016-06-08 深圳酷派技术有限公司 IMS (IP Multimedia Subsystem) technology based remote control method and wireless terminal
CN108132744A (en) * 2017-12-14 2018-06-08 亮风台(上海)信息科技有限公司 A kind of method and apparatus for being remotely controlled smart machine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
詹红艳: "闪联协议的研究及其关键模块的实现与改进", 《中国优秀硕士学位论文全文数据库(信息科技辑)2007年02期》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115297344A (en) * 2022-06-27 2022-11-04 青岛海尔科技有限公司 Screen-side equipment collaborative interaction method and device, storage medium and electronic device
CN115297344B (en) * 2022-06-27 2024-03-22 青岛海尔科技有限公司 Screen terminal equipment collaborative interaction method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN110011978B (en) Method, system, device and computer equipment for modifying block chain network configuration
CN103475754B (en) Based on personal information switch and the method for intelligent watch
EP4060465A2 (en) Method and apparatus for controlling terminal, device and storage medium
CN110286768B (en) Virtual object display method, terminal device and computer-readable storage medium
CN102436350B (en) Remote application window display method, server and user terminal
CN106843794B (en) Split screen display method and system based on android
CN104717684A (en) WIFI mode virtual co-existence method and device
WO2023216724A1 (en) Terminal control method and apparatus, electronic device, and storage medium
CN112295219A (en) Game control method, mobile terminal, car machine and storage medium
CN108646577B (en) Client operation management method and client
WO2015184754A1 (en) Mobile terminal and method for exchanging calling cards between mobile terminals
CN109426532A (en) It is connected the method, apparatus and electronic equipment of the page in Android system
CN110262810A (en) A kind of method and apparatus of installation application
CN109189320A (en) A kind of control method of smart machine, storage medium and server
CN110209557A (en) User's operation records restoring method, device, equipment and readable storage medium storing program for executing
CN112379938A (en) Cross-browser safe local application calling method based on domestic operating system
CN113852522B (en) Camera binding and unbinding method based on multiple platforms
CN111726386A (en) Application program sharing method, wearable device and computer storage medium
CN114968529A (en) Timer implementation method and related product
CN111475870B (en) Reset method and device, electronic equipment and computer storage medium
CN111493861B (en) Electrocardiogram measuring method and device, electronic equipment and computer storage medium
CN111540457B (en) Binding method and device, electronic equipment and computer storage medium
CN114115673A (en) Control method of vehicle-mounted screen
CN107509195B (en) Data transmission method and device, terminal and readable storage medium
CN107454160B (en) Information processing method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190111

RJ01 Rejection of invention patent application after publication