Disclosure of Invention
In order to solve the above problems, the present invention proposes a routing apparatus and a method of associating devices connected via the routing apparatus.
Therefore, according to an aspect of the present invention, a routing apparatus comprises:
a female port for accessing an interface as a master device;
a sub-port for accessing an interface as a slave device;
the female port detection module is used for detecting whether equipment is accessed to the female port;
the sub-port detection module is used for detecting whether equipment is accessed to the sub-port;
the setting module is used for setting the equipment accessed to the mother port as master equipment and setting the equipment accessed to the child port as slave equipment;
the trigger module is used for receiving an external trigger instruction and transmitting the external trigger instruction to the control module;
and the control module is used for controlling the communication between the equipment accessed by the mother port and the child port and the signaling interaction between the modules.
Optionally, there is one of the parent ports and one, two or more of the child ports.
Optionally, the female port and the sub-port may be standard network line interfaces of RJ45, GBIC interfaces, SFP interfaces, USB interfaces, COM interfaces, or HDMI interfaces.
Optionally, the external trigger instruction is an instruction that the router trigger module is triggered to operate by touching a switch or pressing a button, the device accessed to the parent port is set as a master device, and the device accessed to the child port is set as a slave device.
Optionally, the routing device further includes a prompting module, configured to prompt a user of the locations of the parent port and the child port.
Optionally, the routing apparatus further includes an input display module, configured to notify a user that a master device accessing the parent port has data input, that is, the slave device performs data writing operation on the master device.
Optionally, the routing apparatus further includes an output display module, configured to notify a user that a master device accessing the female port has data output, that is, the slave device performs a data reading operation on the master device.
Optionally, the master/slave device is connected to the routing apparatus by a wired connection.
According to another aspect of the present invention, a method of associating devices connected via a routing apparatus, comprises the steps of:
connecting a device to a mother port and/or a daughter port;
the routing device detects that equipment is accessed to the mother port and/or the child port;
triggering port setting;
performing port setting;
controlling communication between the master device and the slave device.
Optionally, the trigger port is further configured to: the port setting is triggered by means of a touch switch or a push button.
Optionally, the step executing port is further configured to: and setting the equipment accessed to the mother port as master equipment, and setting the equipment accessed to the child port as slave equipment.
Optionally, the controlling, by the routing device, communication between the master device and the slave device includes: the master device decides the right to share data or control.
Optionally, the sub-devices cannot share data therebetween.
Optionally, any one of the sub-devices shares data with other sub-devices through the permission setting of the master device, with the master device as an intermediary.
By the invention, the user can establish the master-slave relationship between the devices only by carrying out simple interface installation operation, so that the relationship between the devices is clearer and clearer. In addition, data transmission and sharing can be rapidly realized between the master device and the slave device, and the connection relation between the master device and the slave device for realizing the data transmission and sharing is simplified.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It should be noted that certain terms are used throughout the description and claims to refer to particular components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. This specification and claims do not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms "include" and "comprise" are used in an open-ended fashion, and thus should be interpreted to mean "include, but not limited to. "substantially" means within an acceptable error range, within which a person skilled in the art can solve the technical problem to substantially achieve the technical result. The following description is of the preferred embodiment for carrying out the invention, and is made for the purpose of illustrating the general principles of the invention and not for the purpose of limiting the scope of the invention. The scope of the present invention is defined by the appended claims.
Fig. 1 shows a routing apparatus 100 consistent with an embodiment of the present invention, which includes:
a female port 110 for accessing an interface as a master. One female port is connected with the routing device in a wired mode;
a sub-port 120 for accessing an interface as a slave device. One, two or more sub-ports can be connected with the routing device in a wired mode;
a female port detection module 130, configured to detect whether a device is accessed to the female port 110;
a sub-port detection module 140, configured to detect whether a device is accessed to the sub-port 120;
a setting module 150, configured to set a device accessing the mother port 110 as a master device, and set a device accessing the child port 120 as a slave device;
and the trigger module 160 is configured to receive an external trigger instruction and transmit the external trigger instruction to the control module 170. The external trigger instruction is an instruction for triggering the router trigger module to work by touching a switch or pressing a button, setting the device accessed to the mother port 110 as a master device, and setting the device accessed to the child port 120 as a slave device;
and the control module 170 is configured to control communication between devices accessed by the mother port 110 and the daughter port 120, and signaling interaction between the above modules.
Fig. 2 shows another embodiment of the present invention, which is different from fig. 1 in that fig. 1 triggers the operation of the trigger module of the router by pressing a button, and fig. 2 triggers the master-slave relationship by a touch button on the routing device, which is mainly used for triggering the client device connected to the routing device to perform identity authentication.
Another embodiment of the present invention, which is different from the above embodiments, is a further improvement based on the principle shown in fig. 1 and fig. 2, and the routing device includes the following modules in addition to the modules shown in fig. 1 and fig. 2:
and a prompting module for prompting the position of the mother port 110 and the child port 120 to the user.
And an input display module, configured to notify a user that a master device accessing the mother port 110 has data input, that is, the slave device 120 performs data writing operation on the master device 110.
And an output display module, configured to notify a user that a master device accessing the mother port 110 has data output, that is, the slave device 120 performs a data reading operation on the master device 110.
The module can display the progress to the user through a display screen of the routing device, so that the user can clearly determine the progress.
The female port and the sub-port of this embodiment may be standard network line interfaces of RJ45, GBIC interfaces, SFP interfaces, USB interfaces, COM interfaces, or HDMI interfaces.
The manner of triggering the master-slave relationship in this embodiment may be a physical button disposed on the housing of the routing device, where the physical button is electrically connected to the triggering module in the routing device.
For example, the client device is connected to the routing device through a network cable, and when the button is pressed or touched, the client device connected (wired) to the female port is recognized by the routing device as the female terminal or the master device, and the client connected (wired) to the female port is recognized as the female terminal or the slave device.
The parent end can determine the authority for sharing data or controlling, for example, a desktop computer is connected to the parent end, and a notebook computer or other equipment connected with the child end can access the files in the parent end according to the authority set by the desktop computer. The permission settings may be set manually by the user or programmatically solidified in the routing device.
The child end can print, play audio frequency, play video, data keep in etc. function through the parent end, and the parent end has functions such as printing, audio frequency play, video play, data keep in etc..
In addition, in this embodiment, the child side and the child side do not have a function of directly sharing data with each other, but through the authority setting of the parent side, the child side can share data with the parent side as an intermediary to other child sides, and can use the function of the child side by other child sides.
In the invention, the parent end can also be an intelligent television, so that music or video connected to the client device can be played through the parent end, and the open function authority of the parent end is controlled by the parent end.
Fig. 3 illustrates a method of associating devices connected via a routing apparatus, consistent with certain embodiments of the present invention, including the steps of:
step S310, connecting the equipment to the mother port and/or the sub port;
step S320, the routing device detects that equipment is accessed to the mother port and/or the daughter port;
step S330, triggering port setting, namely triggering port setting by a touch switch or a button pressing mode;
step S340, executing port setting, setting the equipment accessed to the mother port as master equipment, and setting the equipment accessed to the child port as slave equipment;
step S350, controlling communication between the master device and the slave device, including the master device determining the permission to share data or control. Data cannot be shared between the slave devices, but any slave device can share data with other slave devices through the authority setting of the master device with the master device as an intermediary.
For example, the routing device is provided with fixed ports, i.e., a female port and a sub-port, the female port is connected to the computer through an RJ45 interface, and the sub-port is also connected to the computer through an RJ45 interface. The routing device detects that the equipment is respectively accessed to the mother port and the child port. The user presses or touches a button or a touch device on the routing device to trigger the trigger module of the routing device to work. And after receiving the trigger signal, the trigger module informs the control module of the trigger signal, and the control module informs the setting module of setting the port according to the trigger signal, namely setting the equipment accessed by the mother port as master equipment and setting the equipment accessed by the child port as slave equipment. Then, the computer accessed from the mother port can set the authority for the computer accessed from the child port, which can allow some child computer or some child computers to perform read-write operations on the host computer, while other slave computers prohibit the operations. It can also allow some or some sub-computers to have partial read-write operation authority. And the computers connected to the sub-port perform read-write operation mutually. If a sub-computer wants to share audio or video files with other sub-computers, it needs to transmit the audio or video files to the host computer, and the other sub-computers acquire the audio or video files that the sub-computer wants to share with other devices through the host computer.
In another embodiment, the female port is connected to the computer 1 through an RJ45 interface, one of the sub-ports is connected to the computer 2 through an RJ45 interface, and one of the sub-ports is connected to the printer through a USB interface. The routing device detects that equipment is respectively accessed to the mother port and the child port, and the ports are fixed ports on the routing device. The user presses or touches a button or touch device on the routing apparatus. After the trigger module receives the trigger signal, the trigger signal is notified to the control module, the control module notifies the setting module to set the port according to the trigger signal, namely, the setting module sets the computer 1 accessed by the female port as the master device, and sets the computer 2 accessed by the sub-port and the printer as the slave devices. The computer 1 can freely use the printing function of the printer and can allow the computer 2 to read and write data, while the computer 2 cannot use the printer function. If the computer 2 needs to print a document, it needs to transfer the document to the computer 1 under the condition of obtaining the authorization of the computer 1, and then the document is printed by the computer 1.
In another embodiment, the female port is connected to the digital television through an RJ45 interface, a certain sub-port is connected to the computer through an RJ45 interface, a certain sub-port is connected to the MP3 through a USB interface, and a certain sub-port is connected to the power amplifier through an HDMI interface. The routing device detects that equipment is respectively accessed to the mother port and the child port, and the ports are fixed ports on the routing device. The user presses or touches a button or touch device on the routing apparatus. The trigger module receives the trigger signal and informs the trigger signal to the control module, the control module informs the setting module to set the port according to the trigger signal, the setting means that the digital television accessed by the main port is set as the main equipment, and the computer, the MP3 and the power amplifier equipment accessed by the sub-port are set as the slave equipment. When a user wants to play a video file on a computer, the video file on the computer can be transmitted to the digital television for watching; similarly, when the user wants to enjoy the audio file on the MP3 through the power amplifier, the audio file of the MP3 can be obtained through the digital television and played through the power amplifier.
In one embodiment, the parent/child port may be configured by a computer device connected to the routing apparatus.
According to an embodiment of the invention, a control client can be installed in the accessed mother/child device in advance and is communicated with a control module in the routing device, and the control client installed in the mother/child device can perform various high-authority controls on the host mother/child device, such as open sharing, file transmission and audio/video playing.
It should be noted that the "user" in the embodiment of the present invention may be a user who holds or sets a routing device, or a user who holds a mobile terminal, and may be specifically determined according to a specific context.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, or characteristics described may be combined or coupled in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
In addition, according to the above method, the implementation may be realized by software, firmware, or hardware including a computer program, but is not limited to the implementation manner of the computer program, and it is also possible to design a physical device corresponding to the implementation, and each hardware functional module is used to implement a corresponding function, or to implement splitting and merging of functions. The algorithms and displays provided by embodiments of the present invention are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description. Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.