Wireless communication method and device between digital media player and wireless network node
Technical field
Invention relates to the technical field of communication between digital media player (as digital television set, DVD etc.) and the wireless network node (as computer, intelligent terminal), exactly relates to a kind of method and device of wireless telecommunications between digital media player and wireless network node.
Background technology
At present, digital media player has become the main force of household electrical appliances market, and the screen of digital television is also increasing, becomes better and better.But there are problems such as program source scarcity, rate costliness in digital television itself.For this reason, producers increase USB interface and play the Digital Medias above the memory such as USB flash disk, portable hard drive on digital media player, and this has increased the source of program to a certain extent.Simultaneously, along with more and more digital televisions that have USB interface come into the market, USB interface has become the standard configuration interface of digital television of new generation.
The radio network technique that the present invention is suitable for mainly comprises WiFi wireless network, ZigBee, WiMax, UWB, BlueTooth etc.WiFi wireless network full name Wireless Fidelity claims 802.11 technology again, comprises 802.11a at present, 802.11b, 802.11c, 802.11d, 802.11e, 802.11f, 802.11g, 802.11h, 802.11i and 802.11n etc., wherein, ripe at present 802.11g transmission rate has reached 54Mbps, and 802.11n has reached 300~600Mbps especially.Equally, present USB2.0 technical transmission speed has reached 480Mbps, thus, no matter be WiFi radio network technique or USB2.0 technology, can support the transmission of high-definition digital media program fully.
At present, people mainly contain following shortcoming in institute of the Digital Media employing mode of playing on the computer on the digital television:
1, need copy the digital media source on the computer on the USB interface that just can be inserted into digital television on the memories such as USB flash disk, portable hard drive to and play, the very long and trouble of bigger program copy time;
2, need to buy separately memories such as USB flash disk, portable hard drive, the relatively cheap but finite capacity of USB flash disk price, big program USB flash disk can not load, and the portable hard drive capacity is big but cost an arm and a leg, and as easy as rolling off a log damage;
When 3, the user need play other Digital Medias on the computer on television set, need to dial USB flash disk or portable hard drive down, turn back on the computer, the original file of playing of deletion, copy needs the new Digital Media of broadcast again, and then be plugged on the digital television, troublesome poeration and losing time, the user can not indiscriminately ad. as one wishes play the digital media source of storing on the computer fully.
Summary of the invention
For solving the problems of the technologies described above, the invention provides a kind of between digital media player and wireless network node wireless communication method, adopt the present invention, broken existing need be with USB flash disk or portable hard drive copy digital source of media on wireless network node earlier, be plugged on the traditional approach of playing on the digital media player through USB interface then, and make digital media player pass through the dynamically direct digital media source on the radio play remote wireless network node of mapping and network connection device of USB, thereby expanded the playing media source on the digital media player, do not need to spend extra cost and buy USB flash disk or portable hard drive again, more do not need back and forth the copy digital medium yet and lose time, easy and simple to handle.
Another object of the present invention is to be provided at wireless communication apparatus between digital media player and wireless network node, this device can be finished wireless network node shared file and catalogue dynamic mapping and the network linking to this device, thereby give the user a kind of new selection, can not use actual USB flash disk, portable hard drive or other patented technology or product, and make digital media player just can indiscriminately ad. as one wishes play the digital media source of storing on the wireless network node by wireless network based on virtual memory or virtual hard disk.
The present invention is achieved through the following technical solutions:
A kind of between digital media player and wireless network node wireless communication method, it is characterized in that: on the USB interface of digital media player, connect USB dynamically mapping and network connection device, USB dynamically shines upon and network connection device obtains file and the directory information of sharing on the remote wireless network node by the WiFi wireless network, and establishment USB living document system, finish on the wireless network node shared file and catalogue to the dynamic mapping and the network linking of USB living document system, when digital media player is play media content in the described USB living document system, obtain the authentic document content of mapping from the remote wireless network node by the WiFi wireless network by USB living document system, and send digital media player to through described USB interface and play, the network notifications message mechanism that can realize the shared content synchronization renewal on USB living document system and the wireless network node is set on the dynamic mapping of described USB and network connection device and wireless network node.
The idiographic flow of this method is to connect USB dynamically mapping and network connection device on the USB interface of digital media player, the software that USB dynamically shines upon and network connection device is interior brings into operation, and then system initialization, obtain file and the directory information of sharing on the remote wireless network node by the WiFi wireless network, and create USB living document system; At this moment, USB dynamically shines upon and network connection device receives the USB order bag that digital media player sends, and to USB order bag analysis and judgement, if the read-write catalogue and the file command that send, then by share directory and file on the WiFi wireless network read-write remote wireless network node, and this share directory file data or result returned to digital media player, if the USB device of sending is enumerated order, then the back passback is handled in this order and given digital media player.
Described establishment USB living document system specifically comprises: according to remote wireless network nodes sharing size that file directory takes up space, create the system leader record DBR sector of FAT file system, determine the byte number of every sector, every bunch sector number and virtual magnetic head number and the information such as sector number of every magnetic track; According to the information creating root directory area of share directory and file, Chinese file name in the root and long filenames adopt the unicode coding; According to the information creating FAT of share directory and file table, FAT table main storage share directory and file in USB living document system shared bunch, must and the information in the described root directory area consistent.
When digital media player read the relevant sectors of USB living document system according to FAT file system standard, USB living document system returned the sector content of above correspondence.
When digital media player is play file in the USB living document system, USB living document system finds corresponding file according to FAT table and root, reads from wireless network node by the WiFi wireless network then that the content of authentic document returns to digital media player on the wireless network node.
The flow process of creating USB living document system of the present invention is equally applicable in the new technology file system.
Described WiFi wireless network can also be substituted by ZigBee, WiMax, UWB, BlueTooth wireless network.
A kind of between digital media player and wireless network node wireless communication apparatus, it is characterized in that: this device dynamically shines upon and network connection device for USB, comprise be connected through USB interface with digital media player and make search wireless network node share directory and file, create USB living document system, receive and judgement digital media player USB order bag, read-write catalogue and file, USB device is enumerated command process, return microprocessor by WiFi wireless network read-write wireless network node catalogue and file with numeral or result to the digital media player order, be connected with the nonvolatile storage that storage microprocessor is made the program of order on the described microprocessor respectively, with the random asccess memory of data on the remote wireless network node being read in advance with metadata cache, and described microprocessor is connected with the remote wireless network node through the WiFi wireless network.
Described WiFi wireless network can also be substituted by wireless networks such as ZigBee, WiMax, UWB, BlueTooth.
Described digital media player can be digital television or DVD etc.
Described wireless network node can be computer or intelligent terminal etc.
The present invention has following advantage:
1, because adopting, the present invention on the USB interface of digital media player, connects USB dynamically mapping and network connection device, USB dynamically shines upon and network connection device obtains file and the directory information of sharing on the remote wireless network node by the WiFi wireless network, and establishment USB living document system, finish on the wireless network node shared file and catalogue to the dynamic mapping and the network linking of USB living document system, when digital media player is play media content in the described USB living document system, dynamically obtain the authentic document content of mapping by USB living document system from the remote wireless network node by the WiFi wireless network, and send digital media player to through described USB interface and play.Such mode makes the present invention and prior art and the patent No. be applied for that by " 200710073787 " patent disclosed content compares, broken existing need be with USB flash disk or portable hard drive copy digital source of media on wireless network node earlier, be plugged on the traditional approach of playing on the digital media player through USB interface then, and make digital media player pass through the dynamically direct digital media source on the radio play remote wireless network node of mapping and network connection device of USB, thereby expanded the playing media source of digital media player, do not need to spend extra cost and buy USB flash disk or portable hard drive again, perhaps other is based on the patented technology or the product of virtual memory or virtual hard disk, more do not need back and forth the copy digital medium yet and lose time, easy and simple to handle, and what is more important the present invention is provided with the network notifications message mechanism on the dynamic mapping of described USB and network connection device and wireless network node, can real-time implementation USB living document system and wireless network node on share the synchronous renewal of content, owing to adopted above advanced person's implementation method, supported the normal play of digital media player fully, suspend, F.F., operations such as rewind down.
2, the idiographic flow of the present invention's employing is to connect USB dynamically mapping and network connection device on the USB interface of digital media player, the software that USB dynamically shines upon and network connection device is interior brings into operation, and then system initialization, obtain file and the directory information of sharing on the remote wireless network node by the WiFi wireless network, and create USB living document system; At this moment, USB dynamically shines upon and network connection device receives the USB order bag that digital media player sends, and to USB order bag analysis and judgement, if the read-write catalogue and the file command that send, then by share directory and file on the WiFi wireless network read-write remote wireless network node, and this share directory file data or result returned to digital media player, if the USB device of sending is enumerated order, then the back passback is handled in this order and given digital media player.Such mode and the existing patent No. are applied for that by " 200710073787 " patent disclosed content compares, need not digital media player is done any change, only need to support can directly using of USB interface, and adopt the wireless real-time Transmission of WiFi wireless network, need not wiring, need not copied files, both saved cost, save time again, owing to adopted above advanced person's implementation method, support the operations such as normal play, time-out, F.F., rewind down of digital media player fully.
3, adopt the inventive method to create USB living document system, prove through overtesting, simulation, use have reliable, the advantage of smooth performance.
4, of the present invention between digital media player and wireless network node wireless communication apparatus, adopt the embedded platform of low-power consumption, stable and reliable for performance, cost is low, can be directly by the power supply of USB general line, need not digital media player is done any change, as long as support can directly using of USB interface, and this device can be finished the mapping to USB living document system of wireless network node shared file and catalogue, thereby give the user a kind of new selection, can not use USB flash disk, portable hard drive, perhaps other is based on the patented technology or the product of virtual memory or virtual hard disk, and make digital media player just can indiscriminately ad. as one wishes play the digital media source of storing on the wireless network node by wireless network, because the present invention has adopted data on the remote wireless network node are read random asccess memory with metadata cache in advance, this is read and caching technology in advance, can reduce the interference effect that wireless network is subjected to, thereby guarantee the fluency of broadcast, support the normal play of digital media player fully, suspend, F.F., operations such as rewind down.
Description of drawings
Below in conjunction with specification drawings and specific embodiments the present invention is made further supplementary notes, wherein:
Fig. 1 is a method flow diagram of the present invention
Fig. 2 is the hardware structure diagram of device of the present invention
Embodiment
Embodiment 1
The invention discloses a kind of between digital media player and wireless network node wireless communication method, on the USB interface of digital media player, connect USB dynamically mapping and network connection device, USB dynamically shines upon and network connection device obtains file and the directory information of sharing on the remote wireless network node by the WiFi wireless network, and establishment USB living document system, finish on the wireless network node shared file and catalogue to the dynamic mapping and the network linking of USB living document system, when digital media player is play media content in the described USB living document system, obtain the authentic document content of mapping from the remote wireless network node by the WiFi wireless network by USB living document system, and send digital media player to through described USB interface and play, the network notifications message mechanism that can realize the shared content synchronization renewal on USB living document system and the wireless network node is set on the dynamic mapping of described USB and network connection device and wireless network node.Such mode makes the present invention and prior art and the patent No. be applied for that by " 200710073787 " patent disclosed content compares, broken existing need be with USB flash disk or portable hard drive copy digital source of media on wireless network node earlier, be plugged on the traditional approach of playing on the digital media player through USB interface then, and make digital media player pass through the dynamically direct digital media source on the radio play remote wireless network node of mapping and network connection device of USB, thereby expanded the playing media source of digital media player, do not need to spend extra cost and buy USB flash disk or portable hard drive again, more do not need back and forth the copy digital medium yet and lose time, easy and simple to handle, and what is more important the present invention is provided with the network notifications message mechanism on the dynamic mapping of described USB and network connection device and wireless network node, can real-time implementation USB living document system and wireless network node on share the synchronous renewal of content.Described WiFi wireless network can also be substituted by wireless networks such as ZigBee, WiMax, UWB, BlueTooth.Described digital media player can be digital television or DVD etc.Described wireless network node can be computer or intelligent terminal etc.
Embodiment 2
With reference to Figure of description 1, the present invention specifically disclose a kind of between digital media player and wireless network node wireless communication method, the idiographic flow of this method is to connect USB dynamically mapping and network connection device on the USB interface of digital media player, the software that USB dynamically shines upon and network connection device is interior brings into operation, and then system initialization, obtain file and the directory information of sharing on the remote wireless network node by the WiFi wireless network, and create USB living document system; At this moment, USB dynamically shines upon and network connection device receives the USB order bag that digital media player sends, and to USB order bag analysis and judgement, if the read-write catalogue and the file command that send, then by share directory and file on the WiFi wireless network read-write remote wireless network node, and this share directory file data or result returned to digital media player, if the USB device of sending is enumerated order, then the back passback is handled in this order and given digital media player.Such mode and the existing patent No. are applied for that by " 200710073787 " patent disclosed content compares, need not digital media player is done any change, only need to support can directly using of USB interface, and adopt the wireless real-time Transmission of WiFi wireless network, need not wiring, need not copied files, both saved cost, save time again.Described WiFi wireless network can also be substituted by wireless networks such as ZigBee, WiMax, UWB, BlueTooth.Described digital media player can be digital television or DVD etc.Described wireless network node can be computer or intelligent terminal etc.
Embodiment 3
On the basis of embodiment 1 and/or embodiment 2, the USB living document system in the software flow pattern can be any one file system that digital media player is supported, as: FAT file system, new technology file system.Be the implementation procedure that example describes USB living document system in detail with the FAT file system below.Establishment USB living document of the present invention system specifically comprises: according to remote wireless network nodes sharing size that file directory takes up space, create the system leader record DBR sector of FAT file system, determine the byte number of every sector, every bunch sector number and virtual magnetic head number and the information such as sector number of every magnetic track; According to the information creating root directory area of share directory and file, Chinese file name in the root and long filenames adopt the unicode coding; According to the information creating FAT of share directory and file table, FAT table main storage share directory and file in USB living document system shared bunch, must and the information in the described root directory area consistent.In order to reduce cost, the FAT table adopts the mode that dynamically generates to offer digital media player, thereby has saved the space of memory immediately.When digital media player reads the relevant sectors of USB living document system according to FAT file system standard, USB living document system returns the sector content of above correspondence, thereby what use digital media player to think to connect on the USB interface is exactly the common USB memory.When the file in the digital media player broadcast USB living document system, USB living document system finds corresponding file according to FAT table and root, return to digital media player from the content that wireless network node reads authentic document by the WiFi wireless network then, thereby realized the real-time broadcast of file.Owing to adopted above advanced person's implementation method, support the operations such as normal play, time-out, F.F., rewind down of digital media player fully.
Embodiment 4
With reference to Figure of description 2, the invention discloses a kind of realization wireless communication apparatus between digital media player and wireless network node according to claim 1, this device dynamically shines upon and network connection device for USB, comprise be connected through USB interface with digital media player and make search wireless network node share directory and file, create USB living document system, receive and judgement digital media player USB order bag, read-write catalogue and file, USB device is enumerated command process, return microprocessor 1 by WiFi wireless network read-write wireless network node catalogue and file with numeral or result to the digital media player order, be connected with storage microprocessor 1 on the described microprocessor 1 respectively and make the nonvolatile storage 2 of the program of order, with the random asccess memory of data on the remote wireless network node being read in advance with metadata cache 3, and described microprocessor 1 is connected with the remote wireless network node through the WiFi wireless network.Because the present invention has adopted data on the remote wireless network node are read random asccess memory 3 with metadata cache in advance, this is read and caching technology in advance, can reduce the interference effect that wireless network is subjected to, thereby the fluency of guarantee playing is supported the operations such as normal play, time-out, F.F., rewind down of digital media player fully.Described WiFi wireless network can also be substituted by wireless networks such as ZigBee, WiMax, UWB, BlueTooth.Described digital media player can be digital television or DVD etc.Described wireless network node can be computer or intelligent terminal etc.
USB is mapping and network connection device dynamically, can realize obtaining file and the directory information of sharing on the remote wireless network node by the WiFi wireless network, and establishment USB living document system, finish on the wireless network node shared file and catalogue to the dynamic mapping and the network linking of USB living document system, can also not use USB flash disk, portable hard drive or other patented technology or product, and make digital media player indiscriminately ad. as one wishes play digital media source on the wireless network node by wireless network based on virtual memory or virtual hard disk.
USB is mapping and network connection device dynamically, and the characteristics of its Content of communciation transmission direction are transmitted in both directions, comprising: from the wireless network node to the digital media player, and in the other direction.
USB is mapping and network connection device dynamically, and its content delivery and network linking mapping design characteristic are to support content delivery and content play to carry out simultaneously, need not the waiting for content transmission and can play after finishing.
The invention is not restricted to the foregoing description, according to the description of the foregoing description, those of ordinary skill in the art also can make some conspicuous changes, but these changes all should fall within the protection range of claim of the present invention.