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 master port confirmation module is used for confirming that equipment accessed to the master port is master equipment;
the sub-port detection module is used for detecting whether equipment is accessed to the sub-port;
the sub-port confirmation module is used for confirming that the equipment accessing the sub-port is slave equipment;
and the control module is used for controlling the communication between the equipment accessed by the mother port and the child port.
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 routing apparatus further includes a timing module, configured to start timing after the port accesses the device, and notify the control module to perform a corresponding operation after the timing is finished.
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 confirms that the equipment accessed to the mother port is main equipment; the routing device detects that equipment is accessed to the sub-port, and confirms that the equipment accessed to the sub-port is slave equipment;
the routing means controls the communication between the master and slave devices.
Optionally, after detecting that a device is accessed to the mother port, the routing apparatus starts timing, and after the device is accessed to the mother port for a predetermined time, the device is determined to be a master device; and the routing device starts timing after detecting that equipment is accessed to the sub-port, and the equipment is confirmed to be slave equipment after accessing the sub-port for a preset time.
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 female port confirmation module 140, configured to confirm that a device accessing the female port 110 is a master device;
a sub-port detection module 150, configured to detect whether a device is accessed to the sub-port 120;
a sub-port confirmation module 160, configured to confirm that the device accessing the sub-port 120 is a slave device;
and a control module 170 for controlling communication between devices accessed by the mother port 110 and the daughter port 120.
Fig. 2 shows another embodiment of the present invention, which is different from the embodiment shown in fig. 1 in that the routing device further includes:
the timing module 180 is configured to start timing after the ports (parent port and child port) of the routing apparatus access the device, and notify the control module 170 to perform corresponding operations after the timing is finished. That is, after the routing apparatus detects that a device is accessed to the mother port 110, timing is started, and after a predetermined time, the device connected to the mother port 110 is determined as a master device; after detecting that a device is accessed to the sub-port 120, the routing apparatus starts to count time, and after reaching a predetermined time, the device connected to the sub-port 120 is determined to be a slave device.
Another embodiment of the present invention, which is different from the above two 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. .
In this embodiment, the parent port and the child port may be fixedly confirmed on hardware of the routing apparatus, that is, a device connected to the parent port is a master device, and a device connected to the child port is a slave device. Of course, the parent port and the child port in this embodiment may also be hardware unfixed, and the device identity of the ports may be confirmed by a setting device connected to the router.
For example, the client device is connected to the routing device through a network cable, the client device connected (wired) to the female port is identified by the routing device as the female terminal or the master device, and the client connected (wired) to the female port is identified 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 confirms that the equipment accessed to the mother port is main equipment; the routing device detects that the equipment is accessed into the sub-port, and confirms that the equipment accessed into the sub-port is the slave equipment. The step may further comprise: the routing device starts timing after detecting that the equipment is accessed to the mother port, and confirms that the equipment is the main equipment after the equipment is accessed to the mother port for a preset time; the routing device starts timing after detecting that the equipment is accessed into the sub-port, and confirms that the equipment is slave equipment after the equipment is accessed into the sub-port for a preset time.
Step S330, the routing apparatus controls communication between the master device and the slave device, including the master device determining the authority to share data or control. The slave devices cannot share data, but any slave device can share data with other slave devices through the authority setting of the master device and taking the master device as an intermediary.
For example, 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 equipment is respectively accessed into the mother port and the child port, the mother port and the child port are fixed ports on the routing device, the equipment connected with the mother port is confirmed as the mother port, the equipment connected with the child port is confirmed as the child port, and the control module is informed of the 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 computer 1 connected to the female port is identified as a master, and the computer 2 and the printer connected to the male port are identified as slaves. 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 digital television accessed by the female port is confirmed as the master device, and the computer, the MP3 and the power amplifier device accessed by the sub port are confirmed as the slave devices. 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.