Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides method and the server at a kind of display device interface, can in display window, show the current display interface of one or more equipment, facilitates user by this window, to grasp the concrete operations situation of equipment.The embodiment of the present invention involves the mutual of server and one or more equipment, and wherein, server is used for showing the picture that one or more equipment sends over, every associated viewing area of equipment; Equipment is for carrying out returning to server after sectional drawing to current display frame, and for convenience of description, the handling process of paper server side, then introduces the handling process of equipment side, below is described in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of the method at a kind of display device interface of providing of the embodiment of the present invention, and in embodiments of the present invention, the method comprises the following steps.
S101: establish a communications link with equipment.
As one embodiment of the present invention, described equipment can be mobile terminal or the smart machine based on Android system such as Android mobile phone, the TV based on Android system and DVD navigator, for convenience of description, equipment in the embodiment of the present invention be take Android mobile phone as example, but the embodiment of the present invention does not impose any restrictions the particular type of equipment.
On the port that equipment provides by data wire access server or by wireless mode equipment and server in same hotspot, thereby server and equipment connect.
Two programs on network can be fetched and be realized exchanges data by a two-way communication link, wherein, application program conventionally by " socket " to the network request of sending or reply network request, socket is usually used in realizing being connected of client and service end.Socket socket is used for describing IP address and port, at java.net, comprises Socket and two classes of ServerSocket.ServerSocket, for server end, for binding end points, provides service, and accepts connection request; Socket, for client, is used when setting up network connection.When client and service end successful connection, application program two ends all can produce a Socket example, operate this example, complete required session.
As one embodiment of the present invention, server and equipment establish a communications link, wherein, the mode that server and equipment establish a communications link can be that server passes through ServerSocket socket establishment serve port, and monitor this serve port, this port that equipment is used Socket socket to provide this server sends connection request, server receives after the connection request of equipment, connect with this equipment, after server and equipment connect, server is provided service by this port with the equipment of this port binding.Meanwhile, server re-creates a new serve port by ServerSocket socket, for monitoring the connection request of miscellaneous equipment.Also can be server establishes a communications link by other communication mode and equipment, in embodiments of the present invention, this is not imposed any restrictions.
S102: give described devices allocation viewing area, described viewing area is associated with described equipment.
For convenience of description, suppose that server and 2 equipment establish a communications link, server is given viewing area of every devices allocation in display window, every viewing area is associated with corresponding equipment, now, display window comprises 2 viewing areas, and the every associated equipment in viewing area.
Concrete, after server and equipment connect, obtain for identifying the parameter information of this equipment, this parameter information can be the unique identification code on equipment, also can be that server is to the unique identification code of every devices allocation, for example: according to each serve port, distribute, server is distinguished different equipment according to this unique identification code.As sent instruction according to this parameter information to target device, or while receiving the picture of target device, according to this parameter information, determine the viewing area that target device is associated.What deserves to be explained is, if equipment and server are to connect by WIFI mode, this parameter information can also be the Wifi Mac physical address of equipment; If equipment and server are to connect by bluetooth approach, this parameter information can also be the bluetooth Mac physical address of equipment.In embodiments of the present invention, the parameter type of marking equipment is not restricted so long as server can identify corresponding equipment according to parameter information.Every viewing area is associated with the equipment of appointment by parameter information.When receiving the picture of equipment, server is determined the target viewing area being associated with this equipment according to the parameter information of this equipment, up-to-date picture is updated in target viewing area.
Preferably, in this display window, set in advance the viewing area of particular matrix distribution form, for example: the matrix distribution form of 3*2, in single window, set in advance 6 viewing areas, be 3 row 2 row forms.Concrete matrix size can arrange according to practical application scene, for example: if often adopt 4 testing equipments, can in single window, set in advance the viewing area of the matrix distribution form of 2*2, when the number of devices of access server is greater than 4, new display region as required in the drop-down interface of single window, or by the mode new display region of new display window options.
S103: send sectional drawing instruction to described equipment, so that described equipment carries out sectional drawing according to described sectional drawing instruction to its current display interface, and intercepted picture is sent to server.
As one embodiment of the present invention, can be on every viewing area in S102, to be provided with one group of function button, as comprise for sending the function button of play instruction.Server is given behind the viewing area of devices allocation having connected, and user can click the function button input play instruction on certain piece viewing area, and server receives after the play instruction of user's input, to the equipment transmission sectional drawing instruction of user's appointment.Also can be after equipment and server establish a communications link, server, to the good viewing area of devices allocation, sends sectional drawing instruction automatically to the equipment connecting, and sends sectional drawing instruction to one or more equipment in connected device simultaneously.In the embodiment of the present invention, to sending the mode of sectional drawing instruction, do not impose any restrictions.
Server sends after sectional drawing instruction to equipment, the specified equipment of sectional drawing instruction carries out sectional drawing according to sectional drawing instruction to the current display interface of this specified equipment, and intercepted picture is sent to server with data flow form after the processing such as overcompression, encryption, the picture that server sends over according to equipment upgrades the viewing area being associated.Wherein, equipment can be while often receiving a sectional drawing instruction, and current display interface is carried out to sectional drawing one time, also can be to receive after sectional drawing instruction, every the first Preset Time, its current display interface is carried out to sectional drawing, concrete, can at server and equipment end, sectional drawing rule be set in advance, if the former, sectional drawing rule is not carried in sectional drawing instruction, when equipment often receives a sectional drawing instruction, its current display interface is carried out to a sectional drawing operation, intercepted picture is sent to server, the picture that server basis receives is fresh target viewing area more, further, server can be by carrying out the current display interface of Real-time Obtaining equipment every the first Preset Time to the mode of designated equipment transmission sectional drawing instruction, the viewing area being associated in dynamic refresh display window, make viewing area be broadcast state, if the latter, in sectional drawing instruction, carry sectional drawing rule, when equipment often receives a sectional drawing instruction, every the first Preset Time, its current display interface is carried out to a sectional drawing operation, and intercepted picture is sent to server, thereby the picture that server sends over according to equipment every the first Preset Time upgrades separately the viewing area being associated, the up-to-date display interface that makes real-time display device on viewing area, viewing area is broadcast state.In the embodiment of the present invention, how sectional drawing is not restricted after equipment is received to sectional drawing instruction, but equipment receives after sectional drawing instruction, carries out sectional drawing operation at least one times, all belongs to the protection range of the embodiment of the present invention.
S104: receive the described picture that described equipment sends, and in the viewing area that described Image Display is associated at described equipment.
As one embodiment of the present invention, server receives the data flow that in connected device, one or more equipment sends over arbitrarily, the data flow receiving is resolved, obtain the picture intercepting of associated device transmission and the parameter information of associated device.According to the parameter information getting, picture is saved in the file under assigned catalogue, and definite server target viewing area to be updated, sends the viewing area that the equipment of picture is associated.For example: server is the newly-built file of equipment of each connection under fixing catalogue, each file can, with the parameter information name of equipment, be respectively used to store the sectional drawing picture of associated device.The picture receiving is simply processed, as cutting, convergent-divergent, is made after the width and matched of picture and corresponding viewing area, by Image Display after treatment in target viewing area.
In the method at the described display device of embodiment of the present invention interface, after server and equipment establish a communications link, give devices allocation viewing area, and this viewing area is associated with this equipment; To equipment, send sectional drawing instruction, so that equipment carries out sectional drawing according to sectional drawing instruction to its current display interface, and intercepted picture is sent to server; The picture that server receiving equipment sends, and in the viewing area that Image Display is associated at this equipment.Adopt the embodiment of the present invention, can in display window, show the current display interface of one or more equipment, facilitate user by this window, to grasp the concrete operations situation of equipment.
Refer to Fig. 2, Fig. 2 is another schematic flow sheet of the method at a kind of display device interface of providing of the embodiment of the present invention, and in embodiments of the present invention, the method comprises the following steps.
S201: create serve port by ServerSocket socket, and monitor described serve port and whether have equipment access, when listening to the connection request of equipment, connect by described serve port and the specified equipment of described connection request.
Concrete, server is by ServerSocket socket monitoring service port, for example: adopt building method ServerSocket (int port), on the IP address of current Server Default, monitor the port port of an appointment, IP and the port in appointment creates a ServerSocket object.This port that equipment is used Socket socket to provide this server sends connection request, for example: adopt Socket (InetAddress address, int port) create a connection, to the IP address address of appointment, go up the server transmission connection request of the port port of appointment; Or adopting Socket (String host, int port) to create a connection, the method allows to server, to send connection request by host name character string.Server receives after the connection request of equipment, connects with this equipment.
After server and equipment connect, server is provided service by this port with the equipment of this port binding.Meanwhile, server re-creates a new serve port by ServerSocket socket, for monitoring the connection request of miscellaneous equipment.
S202: obtain the parameter information for equipment described in unique identification.
After server and equipment connect, obtain the parameter information for this equipment of unique identification, this parameter information is the unique identification code on equipment, and server is distinguished different equipment according to this unique identification code.As sent instruction according to this parameter information to target device, or while receiving the picture of target device, according to this parameter information, determine the viewing area that target device is associated.In embodiments of the present invention, for convenience of description, equipment be take mobile phone as example, known, the parameter information of unique identification mobile phone can be IMEI (the International Mobile Equipment Identity of mobile phone, mobile device international identity code), MEID (Mobile Equipment Identifier, mobile device identification code) or ESN (Electronic Serial Number, Electronic Serial Number) etc.Can be the parameter information that receiving equipment initiatively sends over, can be also that server goes active obtaining for the parameter information of unique identification equipment, and the embodiment of the present invention does not impose any restrictions this.
S203: give described devices allocation viewing area, described equipment is associated with described viewing area by described parameter information.
Server is given the viewing area of devices allocation connecting in display window, and every viewing area is associated with the equipment of appointment by parameter information.Preferably, according to the parameter information of every equipment, give the viewing area establishing label being associated with every equipment, user can associate the testing equipment of viewing area and appointment more intuitively by the label on every viewing area.
S204: send sectional drawing instruction to described equipment, sectional drawing rule is carried in described sectional drawing instruction, so that the sectional drawing rule that described equipment carries according to described sectional drawing instruction is carried out sectional drawing every the first Preset Time to its current display interface, and intercepted picture is sent to server.
As one embodiment of the present invention, can be on every viewing area, to be provided with one group of function button, as comprise for sending the function button of broadcasting/time-out/halt instruction, on the equipment having connected, carrying out a certain test.Server is given behind the viewing area of devices allocation having connected, user can click the broadcast button input play instruction on certain piece viewing area, server receives after the play instruction of user's input, equipment to user's appointment sends sectional drawing instruction, sectional drawing rule is carried in sectional drawing instruction, so that the specified equipment of sectional drawing instruction carries out sectional drawing to its current display interface every the first Preset Time, and by the parameter information of intercepted picture and associated device through overcompression, after the processing such as encryption, with data flow form, send to server, the picture that server sends over according to equipment every the first Preset Time upgrades viewing area, make the viewing area of appointment be broadcast state.
S205: receive the described picture that described equipment sends, and in the viewing area that described Image Display is associated at described equipment.
As one embodiment of the present invention, server receives the data flow that in connected device, one or more equipment sends over arbitrarily, and the data flow receiving is resolved, and obtains intercepted picture and the parameter information of associated device.According to the parameter information getting, picture is saved in the file under assigned catalogue, and definite server target viewing area to be updated.For example: server is the newly-built file of equipment of each connection under fixing catalogue, each file can, with the parameter information name of equipment, be respectively used to store the picture that associated device intercepts.The picture receiving is simply processed, as cutting, convergent-divergent, make after the width or matched of picture and corresponding viewing area, by Image Display after treatment in target viewing area, make this target viewing area just refresh shown picture in part every the first Preset Time, make this target viewing area present broadcast state, in real time the up-to-date display interface of display device.
As a kind of possible execution mode, if receive time-out play instruction, while clicking the pause button on certain piece viewing area as user, suspend play instruction to the equipment input that this viewing area is associated, server detects after the time-out play instruction of user's input, send to specified equipment and suspend sectional drawing instruction, so that specified equipment suspends sectional drawing.For example: user, in the process of test multiple devices, during busy leaving, can be sent and suspend sectional drawing instruction to equipment by the pause button in viewing area midway, sends sectional drawing instruction more when needed by the broadcast button in viewing area to equipment.
S206: stop play instruction if receive or be completed instruction, stopping play instruction described in giving or be completed the specified equipment transmission of instruction stopping sectional drawing instruction, so that described specified equipment stops sectional drawing.
As one embodiment of the present invention, after testing of equipment, can send and to be completed instruction to server, server receives that equipment sends while being completed instruction, to being completed the specified equipment transmission of instruction, stop sectional drawing instruction, so that specified equipment stops sectional drawing.Wherein, after testing of equipment, the specific interface that also can set in advance by demonstration or add a default specific label on display interface, when server detects the picture receiving, be while carrying this specific label in this specific interface or picture, can know that this equipment is completed, therefore, send to this equipment and stop sectional drawing instruction, so that specified equipment stops sectional drawing.What deserves to be explained is, when testing of equipment is complete, can be also that equipment interrupts sectional drawing operation automatically.
As another embodiment of the invention, when user clicks the stop button on certain piece viewing area, server detects the play instruction that stops of user's input, stops sectional drawing instruction to the equipment transmission that this viewing area is associated, so that specified equipment stops sectional drawing.
A kind of optimal way as the embodiment of the present invention, in the process of execution step S201~S206, can also detect in real time the connection status between server and connected device, if detect when connected device disconnects and can discharge corresponding viewing area, concrete, as shown in Figure 3, Fig. 3 is wherein a kind of schematic flow sheet that detects connection status between server and equipment that Fig. 2 provides, and comprises the following steps.
S301: send heartbeat request message to the equipment being connected with described server every the second Preset Time, so that the equipment of described connection returns to heartbeat response message.
As one embodiment of the present invention, server real-time monitoring is the connection status of access device, when certain equipment and server being detected and disconnect, in single window, discharge the viewing area of this equipment association, the equipment that the viewing area of release is left follow-up access for is used.Concrete, the embodiment of the present invention is carried out the connection status of monitoring server and the equipment room being connected by heartbeat packet mechanism, server sends heartbeat request message to the equipment is connected with server every the second Preset Time, so that the equipment connecting auto-returned heartbeat response message while receiving the heartbeat request message of server transmission.
S302: the heartbeat response message that receives the equipment transmission of described connection.
The heartbeat response message that the equipment that server reception connects sends.Thereby server is by carrying out overtime judgement and determine whether server is abnormal with being connected of every equipment room receiving the heartbeat response message of every equipment, if the heartbeat response message that server does not receive certain equipment in the second Preset Time detected, illustrate that this equipment and being connected of server occur abnormal, as equipment has exited connection.
S303: if do not receive the heartbeat response message that the equipment of one or more connection arbitrarily sends in described the second Preset Time, discharge the described viewing area that the equipment of one or more connection is associated arbitrarily.
As another embodiment of the invention, server carrys out the connection status between monitoring server and the equipment being connected by heartbeat packet mechanism, if server does not receive the heartbeat response message that the equipment of one or more connection arbitrarily sends in the second Preset Time, illustrate that arbitrarily being connected between one or more equipment and server occurs abnormal for this, be that equipment and server disconnect, therefore server discharges this viewing area that one or more equipment is associated arbitrarily, and the equipment that facilitates follow-up access is associated these d/d viewing areas again.
What deserves to be explained is, by the connection status between heartbeat packet mechanism monitoring server and equipment, also can be that equipment initiatively sends heartbeat request message to server every the second Preset Time, server returns to heartbeat response message to corresponding equipment after receiving the heartbeat request message that equipment sends.If thereby server does not receive the heartbeat request message that one or more equipment sends arbitrarily in the second Preset Time, discharge this viewing area that one or more equipment is associated arbitrarily, accordingly, if equipment does not receive the heartbeat response message that server sends in the second Preset Time, stop sectional drawing.
In the method at the described display device of embodiment of the present invention interface, after server and equipment establish a communications link, give devices allocation viewing area, and this viewing area is associated with this equipment; To equipment, send sectional drawing instruction, so that equipment carries out sectional drawing every the first Preset Time to its current display interface, and intercepted picture is sent to server; The picture that server receiving equipment sends, and in the viewing area that Image Display is associated at this equipment.Adopt the embodiment of the present invention, can in display window, show the current display interface of one or more equipment in real time, facilitate user by this window, to grasp the concrete operations situation of equipment.
Next, the handling process of introducing the method at a kind of display device interface from equipment side, refers to Fig. 4, and Fig. 4 is the another schematic flow sheet of the method at a kind of display device interface of providing of the embodiment of the present invention, in embodiments of the present invention, the method comprises the following steps.
S401: establish a communications link with server.
As one embodiment of the present invention, the mode that equipment and server establish a communications link can be that server provides after serve port by ServerSocket socket, this port that equipment is used Socket socket to provide this server sends connection request, server receives after the connection request of equipment, connects with this equipment.After equipment and server connect, can communicate by this port and server.Also can be that server is shared a wireless network, equipment searches after this wireless network, accesses this wireless network, thereby establishes a communications link with server.Can also be alternate manner, the concrete mode in the embodiment of the present invention, equipment and server being established a communications link be restricted.
Preferably, equipment can be the mobile device based on Android system such as Android mobile phone, the TV based on Android system and DVD navigator, for convenience of description, equipment in the embodiment of the present invention be take Android mobile phone as example, when mobile phone and server establish a communications link, mobile phone is opened adb/USB debugging mode, and server is controlled this android equipment by adb debugging acid.
S402: if receive the sectional drawing instruction that described server sends, current display interface is carried out to sectional drawing.
In embodiments of the present invention, if receive the sectional drawing instruction that described server sends, can be that equipment carries out a sectional drawing operation to current display interface, can be also current display interface to be carried out to sectional drawing every the first Preset Time.Concrete, can be according to the actual requirements and the sectional drawing rule setting in advance determine, in the embodiment of the present invention, equipment receives after the sectional drawing instruction that server sends, and carries out sectional drawing operation at least one times.
S403: intercepted picture is sent to described server so that described server by described Image Display in the viewing area being associated with described equipment.
As one embodiment of the present invention, equipment sends to server with data flow form by intercepted picture after the processing such as overcompression, encryption, wherein, this equipment can be to carry out a certain specific test, can be also user to this operate.Equipment will be issued server after up-to-date display interface sectional drawing, server shows the up-to-date display interface of this equipment in display window, thereby user can grasp the concrete operations of every equipment by the display window of server, if equipment is tested, user can grasp the testing progress of every equipment by this window, improves testing efficiency.
In the method at the described display device of embodiment of the present invention interface, equipment and server connect, receive after the sectional drawing instruction of server transmission, current display interface is carried out to sectional drawing, and intercepted picture is sent to server, so that server is updated to this picture in the viewing area being associated with this equipment.Adopt the embodiment of the present invention, equipment carries out sending to server to show in intercepted picture after sectional drawing to current display frame, make server can in display window, show the current display interface of one or more equipment, facilitate user by this window, to grasp the concrete operations situation of equipment.
Refer to Fig. 5, Fig. 5 is a schematic flow sheet again of the method at a kind of display device interface of providing of the embodiment of the present invention, and in embodiments of the present invention, the method comprises the following steps.
S501: send connection request by Socket socket to server, establish a communications link with described server.
As one embodiment of the present invention, server provides after serve port by ServerSocket socket, this port that equipment is used Socket socket to provide this server sends connection request, and server receives after the connection request of equipment, establishes a communications link with this equipment.After equipment and server connect, can communicate by this port and server.
Preferably, after equipment and server establish a communications link, obtain the parameter information for this equipment of unique identification, further, this parameter information is sent to server, and server can associate equipment and corresponding viewing area according to this parameter information, wherein, this parameter information can be the unique identification code on equipment, for example: the parameter information of unique identification mobile phone can be IMEI, MEID or the ESN code of mobile phone.Further, equipment carries out after sectional drawing current display interface, intercepted picture and this parameter information can be sent to server with data flow form after the processing such as overcompression, encryption, server determines according to this parameter information the viewing area that this equipment is associated, thereby the picture receiving is updated in the viewing area that this equipment is associated.
S502: if receive the sectional drawing instruction that described server sends, the sectional drawing rule of carrying according to described sectional drawing instruction is carried out sectional drawing every the first Preset Time to current display interface, and intercepted picture and parameter information are sent to server.
Concrete, equipment receives after the sectional drawing instruction of carrying sectional drawing rule of server transmission, every the first Preset Time, current display interface is carried out to sectional drawing, and the picture of intercepting is sent to server with data flow form after the processing such as overcompression, encryption.Preferably, equipment is carrying out a certain specific test, shows testing progress in test pictures, when testing of equipment is complete, shows the specific interface setting in advance or on display interface, is added with a default specific label.Equipment will be issued server after up-to-date display interface sectional drawing in real time, server shows in target area according to the picture receiving, when server detects the picture receiving, be while carrying this specific label in this specific interface or picture, can know that this equipment is completed, send to this equipment and stop sectional drawing instruction, so that specified equipment stops sectional drawing.Thereby user can grasp the concrete operations of every equipment in real time by the display window of server, if equipment is tested, by this window, can grasp in real time the testing progress of every equipment, improve testing efficiency.
As a kind of possible execution mode, if equipment receives the time-out sectional drawing instruction that server sends, suspend the specified sectional drawing operation of sectional drawing instruction.Preferably, if this equipment is carrying out a certain specific test, receive while suspending sectional drawing instruction, suspend test simultaneously.When again receiving sectional drawing instruction, test is proceeded and carries out sectional drawing every the first Preset Time, sends to server to show the parameter information of the picture of intercepting and equipment.
S503: while receiving the heartbeat request message of described server transmission, return to heartbeat response message to described server.
As another embodiment of the invention, server carrys out the connection status between monitoring server and the equipment being connected by heartbeat packet mechanism.Concrete, server sends heartbeat request message to the equipment connecting every the second Preset Time, and equipment receives after the heartbeat request message of server transmission, automatically to server, returns to heartbeat response message.Therefore, equipment carries out overtime judgement by the heartbeat request message to receiving knows whether equipment is normal with being connected of server, if equipment receives every the second Preset Time the heartbeat request message that server sends, illustrate between this equipment and server be connected normal, equipment continues the order of response server, carries out operation accordingly.
S504: if do not receive the heartbeat request message that described server sends in the second Preset Time, or receive that described server sends stop sectional drawing instruction, interrupt the specified sectional drawing operation of described sectional drawing instruction.
As one embodiment of the present invention, if equipment does not receive the heartbeat request message that server sends in the second Preset Time, between devices illustrated and server, be connected disconnections, therefore, the specified sectional drawing of device interrupt sectional drawing instruction operates.Accordingly, if equipment receive that server sends stop sectional drawing instruction, interrupt the specified sectional drawing operation of sectional drawing instruction.
What deserves to be explained is, by the connection status between heartbeat packet mechanism (S503~S504) watch-dog and server, also can be that equipment initiatively sends heartbeat request message to server every the second Preset Time, so that server returns to heartbeat response message to corresponding equipment after receiving the heartbeat request message that equipment sends.If thereby server does not receive the heartbeat request message that one or more equipment sends arbitrarily in the second Preset Time, discharge this viewing area that one or more equipment is associated arbitrarily, accordingly, if equipment does not receive the heartbeat response message that server sends in the second Preset Time, interrupt the specified sectional drawing operation of sectional drawing instruction.
In the method at the described display device of embodiment of the present invention interface, equipment and server connect, receive after the sectional drawing instruction of server transmission, current display interface is carried out to sectional drawing, and intercepted picture is sent to server, so that server is updated to this picture in the viewing area being associated with this equipment.Adopt the embodiment of the present invention, equipment carries out sending to server to show in intercepted picture after sectional drawing to current display frame, make server can in display window, show the current display interface of one or more equipment, facilitate user by this window, to grasp the concrete operations situation of equipment.
Refer to Fig. 6, Fig. 6 is the structural representation of a kind of server of providing of the embodiment of the present invention, and in embodiments of the present invention, this server 10 comprises: communication unit 101, allocation units 102, instruction sending unit 103 and display unit 104.
Communication unit 101, for establishing a communications link with equipment.
Preferably, server and equipment establish a communications link by the mode of Socket socket.Server creates serve port by ServerSocket socket, and monitor this serve port, this port that equipment is used Socket socket to provide this server sends connection request, server receives after the connection request of equipment, connect with this equipment, after server and equipment connect, server is provided service by this port with the equipment of this port binding.Meanwhile, server re-creates a new serve port by ServerSocket socket, for monitoring the connection request of miscellaneous equipment.
Allocation units 102, for giving described devices allocation viewing area, described viewing area is associated with described equipment.
Preferably, server sets in advance the viewing area of particular matrix distribution form in display window, for example: the matrix distribution form of 3*2, in single window, set in advance 6 viewing areas, be 3 row 2 row forms.
Instruction sending unit 103, for sending sectional drawing instruction to described equipment, so that described equipment carries out sectional drawing according to described sectional drawing instruction to its current display interface, and sends to server by intercepted picture.
Preferably, sectional drawing rule is carried in described sectional drawing instruction, so that the sectional drawing rule that described equipment carries according to described sectional drawing instruction is carried out sectional drawing every the first Preset Time to its current display interface, and intercepted picture is sent to server.
Display unit 104, the described picture sending for receiving described equipment, and in the viewing area that described Image Display is associated at described equipment.
Server receives the data flow that in connected device, one or more equipment sends over arbitrarily, and the data flow receiving is resolved, and obtains the picture intercepting that equipment sends.Picture is saved in the file under the assigned catalogue of this equipment association, and definite server target viewing area to be updated, sends the viewing area that the equipment of picture is associated.The picture receiving is simply processed, as cutting, convergent-divergent, is made after the width and matched of picture and target viewing area, by Image Display after treatment in target viewing area.
In the described server of the embodiment of the present invention, after server and equipment establish a communications link, give devices allocation viewing area, and this viewing area is associated with this equipment; To equipment, send sectional drawing instruction, so that equipment carries out sectional drawing according to sectional drawing instruction to its current display interface, and intercepted picture is sent to server; The picture that server receiving equipment sends, and in the viewing area that Image Display is associated at this equipment.Adopt the embodiment of the present invention, can in display window, show the current display interface of one or more equipment, facilitate user by this window, to grasp the concrete operations situation of equipment.
Refer to Fig. 7, Fig. 7 is another structural representation of a kind of server of providing of the embodiment of the present invention, in embodiments of the present invention, this server 10 comprises: communication unit 201, allocation units 202, instruction sending unit 203, display unit 204 and monitoring unit 205.
Communication unit 201, for establishing a communications link with equipment.
Preferably, communication unit 201 specifically for:
By ServerSocket socket, create serve port, and monitor described serve port and whether have equipment access; When listening to the connection request of equipment, by described serve port and the specified equipment of described connection request, connect.
Allocation units 202, for giving described devices allocation viewing area, described viewing area is associated with described equipment.
Preferably, allocation units 202 specifically for:
Obtain the parameter information for equipment described in unique identification;
Give described devices allocation viewing area, described equipment is associated with described viewing area by described parameter information;
According to described parameter information, give the viewing area establishing label being associated with described equipment.
Instruction sending unit 203, for sending sectional drawing instruction to described equipment, so that described equipment carries out sectional drawing according to described sectional drawing instruction to its current display interface, and sends to server by intercepted picture.
Preferably, sectional drawing rule is carried in described sectional drawing instruction, so that the sectional drawing rule that described equipment carries according to described sectional drawing instruction is carried out sectional drawing every the first Preset Time to its current display interface, and intercepted picture is sent to server.
Preferably, instruction sending unit 203 also for:
If receive, stop play instruction or be completed instruction, described in giving, stopping play instruction or be completed the specified equipment transmission of instruction stopping sectional drawing instruction, so that described specified equipment stops sectional drawing.
Display unit 204, the described picture sending for receiving described equipment, and in the viewing area that described Image Display is associated at described equipment.
Monitoring unit 205, for:
Every the second Preset Time, send heartbeat request message to the equipment being connected with described server, so that the equipment of described connection returns to heartbeat response message;
Receive the heartbeat response message that the equipment of described connection sends;
If do not receive the heartbeat response message that the equipment of one or more connection arbitrarily sends in described the second Preset Time, discharge the described viewing area that the equipment of one or more connection is associated arbitrarily.
In the described server of the embodiment of the present invention, after server and equipment establish a communications link, give devices allocation viewing area, and this viewing area is associated with this equipment; To equipment, send sectional drawing instruction, so that equipment carries out sectional drawing according to sectional drawing instruction to its current display interface, and intercepted picture is sent to server; The picture that server receiving equipment sends, and in the viewing area that Image Display is associated at this equipment.Adopt the embodiment of the present invention, can in display window, show the current display interface of one or more equipment, facilitate user by this window, to grasp the concrete operations situation of equipment.
Refer to Fig. 8, Fig. 8 is the structural representation of a kind of equipment of providing of the embodiment of the present invention, and in embodiments of the present invention, this equipment 30 comprises: linkage unit 301, sectional drawing unit 302 and picture transmitting element 303.
Linkage unit 301, for establishing a communications link with server.
Sectional drawing unit 302, if the sectional drawing instruction sending for receiving described server is carried out sectional drawing to current display interface.
Preferably, sectional drawing unit 302 also for:
If receive the sectional drawing instruction that described server sends, the sectional drawing rule of carrying according to described sectional drawing instruction is carried out sectional drawing every the first Preset Time to current display interface.
Picture transmitting element 303, for intercepted picture is sent to described server so that described server by described Image Display in the viewing area being associated with described equipment.
In the described equipment of the embodiment of the present invention, equipment and server connect, receive after the sectional drawing instruction of server transmission, current display interface is carried out to sectional drawing, and intercepted picture is sent to server, so that server is updated to this picture in the viewing area being associated with this equipment.Adopt the embodiment of the present invention, can in display window, show the current display interface of one or more equipment, facilitate user by this window, to grasp the concrete operations situation of equipment.
Refer to Fig. 9, Fig. 9 is another structural representation of a kind of equipment of providing of the embodiment of the present invention, in embodiments of the present invention, this equipment 30 comprises: linkage unit 401, sectional drawing unit 402, picture transmitting element 403, message response unit 404, time-out sectional drawing unit 405 and interruption sectional drawing unit 406.
Linkage unit 401, for establishing a communications link with server.
Preferably, linkage unit 401 specifically for:
By Socket socket, to described server, send connection request.
Sectional drawing unit 402, if the sectional drawing instruction sending for receiving described server is carried out sectional drawing to current display interface.
Preferably, sectional drawing unit 401 also for:
If receive the sectional drawing instruction that described server sends, the sectional drawing rule of carrying according to described sectional drawing instruction is carried out sectional drawing every the first Preset Time to current display interface.
Picture transmitting element 403, for intercepted picture is sent to described server so that described server by described Image Display in the viewing area being associated with described equipment.
Message response unit 404, the heartbeat request message sending for receiving described server, and return to heartbeat response message to described server.
Suspend sectional drawing unit 405, if the time-out sectional drawing instruction sending for receiving described server suspends the specified sectional drawing operation of described sectional drawing instruction.
Interrupt sectional drawing unit 406, if the heartbeat request message sending for do not receive described server in the second Preset Time, or receive that described server sends stop sectional drawing instruction, interrupt the specified sectional drawing operation of described sectional drawing instruction.
In the described equipment of the embodiment of the present invention, equipment and server connect, receive after the sectional drawing instruction of server transmission, current display interface is carried out to sectional drawing, and intercepted picture is sent to server, so that server is updated to this picture in the viewing area being associated with this equipment.Adopt the embodiment of the present invention, can in display window, show the current display interface of one or more equipment, facilitate user by this window, to grasp the concrete operations situation of equipment.
Refer to Figure 10, Figure 10 is the structural representation of a kind of system of providing of the embodiment of the present invention, and in embodiments of the present invention, this system 20 comprises: server 10 as above and equipment as above 30.
For convenience of description, suppose that server and 3 equipment connect, i.e. equipment 1, equipment 2 and equipment 3, the sequencing that these three equipment and server 10 establish a communications link is equipment 1, equipment 3 and equipment 2.Therefore, equipment 1 establishes a communications link with server 10, and (detail refers to S101, S201, S401 and S501), server distributes a viewing area in display window equipment 1, this viewing area is associated with equipment 1, and (detail refers to S102, S202 and S203), accordingly, when equipment 3 establishes a communications link with server, server distributes a viewing area in display window equipment 3, this viewing area is associated with equipment 3, when equipment 2 establishes a communications link with server, server distributes a viewing area in display window equipment 2, this viewing area is associated with equipment 2, as shown in figure 11, Figure 11 is a kind of system schematic that the embodiment of the present invention provides, in embodiments of the present invention, suppose that server is predisposed to the viewing area of 3*2 particular matrix distribution form at display window, be that in single window, a line is distributed 2 viewing areas, one row distribute 3 viewing areas.
Server wherein one or more equipment sends sectional drawing instruction, so that specified equipment carries out sectional drawing to its current display interface after receiving the sectional drawing instruction that server sends, and intercepted picture is sent to server (detail refers to S103, S204, S402 and S502).The picture that server receiving equipment sends, and in the viewing area that the Image Display receiving is associated at this equipment (detail refers to S104, S205 and S403).
Preferably, if server receives, stop play instruction or be completed instruction, to this, stop play instruction or be completed the specified equipment transmission of instruction stopping sectional drawing instruction, so that this equipment stops sectional drawing (detail refers to S206 and S504).
By heartbeat packet mechanism, detect the connection status between server and equipment, for example: server sends heartbeat request message every the second Preset Time to equipment, equipment returns to heartbeat response message after receiving the heartbeat request message that server sends, thereby, if server does not receive the heartbeat response message that a certain equipment sends in the second Preset Time, or equipment does not receive the heartbeat request message that server sends in the second Preset Time, illustrate that being connected between server and this equipment disconnects, server discharges the viewing area that this equipment is associated, device interrupt sectional drawing operation (detail refers to S301~S303 or S503~S504).
For convenience of description, take wherein a kind of server and equipment of execution mode is example, but server 10 in the embodiment of the present invention can be the server of any execution mode in foregoing description.As one embodiment of the present invention, server 10 obtains the parameter information for every equipment of unique identification (equipment 1, equipment 2, equipment 3), equipment 1, equipment 3 and equipment 2 while supposing sequencing that these three equipment and server 10 establish a communications link.In single window, give viewing area of every devices allocation, every viewing area is associated with the equipment of appointment by parameter information, and as shown in figure 11, wherein, reserved viewing area can be for the equipment of new access; Preferably, according to the parameter information of every equipment, give the viewing area establishing label being associated with every equipment, in viewing area, show this label.Send sectional drawing instruction to one or more equipment arbitrarily, the specified equipment of sectional drawing instruction carries out sectional drawing every the first Preset Time to current display interface, and the parameter information of the picture of intercepting and associated device is sent to server; The picture that receiving equipment sends, determines the target viewing area being associated according to the parameter information of picture associated device, by Image Display, in target viewing area, target area is broadcast state.
In the described system of the embodiment of the present invention, server sends sectional drawing instruction to the equipment connecting, the specified equipment of sectional drawing instruction carries out sectional drawing to current display interface every the first Preset Time, and server is updated in the viewing area being associated after getting the picture of intercepting.Adopt the embodiment of the present invention, can in display window, show the current display interface of one or more equipment, facilitate user by this window, to grasp the concrete operations situation of equipment.
Unit in all embodiment of the present invention, can pass through universal integrated circuit, for example CPU (Central Processing Unit, central processing unit), or realize by ASIC (Application Specific Integrated Circuit, application-specific integrated circuit (ASIC)).
Step in the inventive method embodiment can be carried out according to actual needs order and adjusted, merges and delete.
Unit in embodiment of the present invention device can merge according to actual needs, divides and delete.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, one of ordinary skill in the art will appreciate that all or part of flow process that realizes above-described embodiment, and the equivalent variations of doing according to the claims in the present invention, still belong to the scope that invention is contained.