TWI647892B - Data transmission method for utility power supply wireless control device - Google Patents
Data transmission method for utility power supply wireless control device Download PDFInfo
- Publication number
- TWI647892B TWI647892B TW106139028A TW106139028A TWI647892B TW I647892 B TWI647892 B TW I647892B TW 106139028 A TW106139028 A TW 106139028A TW 106139028 A TW106139028 A TW 106139028A TW I647892 B TWI647892 B TW I647892B
- Authority
- TW
- Taiwan
- Prior art keywords
- control device
- usb
- event
- portable electronic
- proceed
- Prior art date
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 17
- 238000000034 method Methods 0.000 title claims abstract description 13
- 238000012545 processing Methods 0.000 claims abstract description 17
- 230000008859 change Effects 0.000 claims description 5
- 230000008569 process Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 5
- 238000003384 imaging method Methods 0.000 description 3
- 230000007935 neutral effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000010025 steaming Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B90/00—Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02B90/20—Smart grids as enabling technology in buildings sector
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S40/00—Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them
- Y04S40/12—Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them characterised by data transport means between the monitoring, controlling or managing units and monitored, controlled or operated electrical equipment
- Y04S40/126—Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them characterised by data transport means between the monitoring, controlling or managing units and monitored, controlled or operated electrical equipment using wireless data transmission
Landscapes
- Power Sources (AREA)
- Information Transfer Systems (AREA)
Abstract
本發明為有關一種市電供電無線控制裝置之資料傳輸方法,其市電供電無線控制裝置包括控制裝置及電路模組,控制裝置之殼體具有二電源接頭及至少一個通用序列埠,電路模組以系統單晶片電性連接無線收發裝置,處理流程為確認具有未處理之USB裝置新增事件後,得到USB裝置具有的每一介面類別並更新USB功能旗標,再查找服務註冊表得到對應的服務,即可執行各服務並通知可攜式電子裝置,讓可攜式電子裝置直接遠距操控USB裝置,則可攜式電子裝置可進行列印、儲存資料、撥放音樂、攝影或拍照等,以達到提升使用方便性之目的。 The invention relates to a data transmission method for a mains supply wireless control device, wherein the mains supply wireless control device comprises a control device and a circuit module, wherein the casing of the control device has two power connectors and at least one universal sequence, and the circuit module is a system. The single chip is electrically connected to the wireless transceiver device, and the processing flow is to confirm that there is an unprocessed USB device new event, obtain each interface type of the USB device and update the USB function flag, and then look up the service registry to obtain the corresponding service. The services can be executed and the portable electronic device can be notified, so that the portable electronic device directly manipulates the USB device remotely, and the portable electronic device can print, store data, play music, photograph or take photos, etc. To achieve the purpose of improving ease of use.
Description
本發明係提供一種市電供電無線控制裝置之資料傳輸方法,尤指市電供電無線控制裝置,確認USB裝置新增的事件後,確認USB裝置具有的介面類別及查找得到對應的服務,即可通知可攜式電子裝置讓其直接遠距操控USB裝置,以達到提升使用方便性之目的。 The invention provides a data transmission method for a commercial power supply wireless control device, in particular to a utility power supply wireless control device, after confirming a new event of the USB device, confirming the interface type of the USB device and finding a corresponding service, the notification can be notified. The portable electronic device allows it to directly manipulate the USB device remotely for the purpose of improving the usability.
按,隨著現代電子科技高度發展,各式電子產品已遍佈於社會各個角落。其中,又以智慧型手機或平板電腦之可攜式電子裝置為最大宗。而一般大眾係可透過使用該可攜式電子裝置以進行娛樂、工作或購物等活動,藉此為人們帶來相當大之便利。 According to the high development of modern electronic technology, all kinds of electronic products have been spread all over the society. Among them, portable electronic devices with smart phones or tablets are the largest. The general public can bring considerable convenience to people through the use of the portable electronic device for entertainment, work or shopping.
其中該可攜式電子裝置因為使用上的需求,且又為了方便攜帶,故將許多功能移除或削弱(如儲存容量縮減、移除按鍵)以達到輕薄短小之目的,所以具有很多不同種類的USB裝置可以插接於可攜式電子裝置上,以供其使用不同的功能,但因為使用者大多隨身攜帶著可攜式電子裝置並在不同地點間移動,所以使用者不方便隨身攜帶多種USB裝置,故在此情況下,可攜式電子裝置就無法使用不同種類的USB裝置所具有之功能。 The portable electronic device has many different functions due to the use requirements and the convenience of carrying, so that many functions are removed or weakened (such as storage capacity reduction and button removal) to achieve lightness and shortness. The USB device can be plugged into the portable electronic device for different functions, but since the user mostly carries the portable electronic device and moves between different places, it is inconvenient for the user to carry various USB devices. Device, so in this case, the portable electronic device cannot use the functions of different kinds of USB devices.
此外,因為智慧型手機或平板電腦之可攜式電子裝置,一 開始在使用上是與電腦有著不同功用的區隔,但漸漸地隨著智慧型手機或平板電腦本身功能的擴充,所以有越來越多原本電腦才具有的功能都已實現在智慧型手機或平板電腦上(如收發EMAIL、網路購物等),在此情況下,使用者就需要智慧型手機或平板電腦具有更多功能才能方便使用,如連接印表機列印或大容量檔案儲存至外接式硬碟等,甚至是控制網路攝影機進行攝影或喇叭撥放音樂,但因為上述USB裝置一部分是無法透過連接線與智慧型手機或平板電腦插接進行使用,且一部分是直接放置於固定位置而幾乎不會移動的,所以如何讓智慧型手機或平板電腦之可攜式電子裝置與多種USB裝置,以操控USB裝置來增加可攜式電子裝置的功能,此即為本發明人與從事此行業者所亟欲改善之目標所在。 In addition, because of the portable electronic device of a smart phone or tablet, Beginning to use is a different function from the computer, but gradually with the expansion of the function of the smart phone or tablet itself, more and more functions that the original computer has have been implemented in the smart phone or On a tablet (such as sending and receiving EMAIL, online shopping, etc.), in this case, the user needs a smart phone or tablet with more functions to facilitate the use, such as connecting printer printing or large-capacity file storage to External hard disk, etc., even control the network camera for photography or speaker playback, but because some of the above USB devices cannot be plugged into the smart phone or tablet through the cable, and some are directly placed on the fixed Position and hardly move, so how to make the portable electronic device of smart phone or tablet and various USB devices to control the USB device to increase the function of the portable electronic device, this is the inventor and engaged The goal of this industry is to improve.
本發明之主要目的乃在於,該市電供電無線控制裝置確認具有未處理、USB裝置之事件及USB裝置新增的事件後,得到USB裝置具有的每一介面類別並更新USB功能旗標,再新增更新系統服務事件以查找服務註冊表得到對應的服務,即可執行USB裝置上所具有且要啟用的服務並通知可攜式電子裝置,藉此讓可攜式電子裝置直接遠距操控USB裝置,讓可攜式電子裝置可進行列印、儲存資料、撥放音樂、攝影或拍照等,以達到提升使用方便性之目的。 The main purpose of the present invention is that after the mains-powered wireless control device confirms that there are unprocessed, USB device events and new events of the USB device, each interface type of the USB device is obtained and the USB function flag is updated, and the new device is updated. By updating the system service event to find the service registry to obtain the corresponding service, the service that is enabled and enabled on the USB device can be executed and the portable electronic device can be notified, thereby allowing the portable electronic device to directly manipulate the USB device remotely. The portable electronic device can print, store data, play music, photograph or take photos, so as to improve the convenience of use.
本發明之次要目的乃在於,該更新USB功能旗標之處理動作,為在對應USB裝置具有的每一介面類別,並改變其所對應之位元值,藉此達到標示的效果。 The secondary object of the present invention is that the processing action of updating the USB function flag is to change the corresponding bit value in each interface type of the corresponding USB device, thereby achieving the effect of labeling.
本發明之另一目的乃在於,該市電供電無線控制裝置可利 用無線收發裝置連接至雲端伺服器,且雲端伺服器連接至可攜式電子裝置,市電供電無線控制裝置經由雲端伺服器通知可攜式電子裝置該USB裝置啟用了哪些服務,藉此讓可攜式電子裝置移動到遠離市電供電無線控制裝置之位置時,仍可相互連接進行USB裝置之遠距操控,以達到提升使用範圍及方便性之目的。 Another object of the present invention is that the utility power supply wireless control device can benefit The wireless transceiver is connected to the cloud server, and the cloud server is connected to the portable electronic device, and the commercial power supply wireless control device notifies the portable electronic device of the services enabled by the USB device via the cloud server, thereby enabling the portable device When the electronic device moves away from the position of the commercial power supply wireless control device, it can still be connected to each other for remote control of the USB device, so as to achieve the purpose of improving the scope of use and convenience.
1‧‧‧控制裝置 1‧‧‧Control device
11‧‧‧殼體 11‧‧‧Shell
12‧‧‧電源接頭 12‧‧‧Power connector
13‧‧‧通用序列埠 13‧‧‧Universal sequence埠
14‧‧‧狀態指示燈 14‧‧‧Status indicator
2‧‧‧電路模組 2‧‧‧ circuit module
21‧‧‧整流器 21‧‧‧Rectifier
22‧‧‧系統單晶片 22‧‧‧System Single Chip
23‧‧‧無線收發裝置 23‧‧‧Wireless transceiver
3‧‧‧USB裝置 3‧‧‧USB device
30‧‧‧電連接器 30‧‧‧Electrical connector
31‧‧‧儲存裝置 31‧‧‧Storage device
32‧‧‧攝像裝置 32‧‧‧ camera device
33‧‧‧揚聲裝置 33‧‧‧ Speakers
4‧‧‧可攜式電子裝置 4‧‧‧Portable electronic devices
第一圖 係為本發明之立體外觀圖。 The first figure is a three-dimensional appearance of the present invention.
第二圖 係為本發明之電路方塊圖。 The second figure is a block diagram of the circuit of the present invention.
第三圖 係為本發明之步驟流程圖(一)。 The third figure is a flow chart (1) of the steps of the present invention.
第四圖 係為本發明之步驟流程圖(二)。 The fourth figure is a flow chart (2) of the steps of the present invention.
第五圖 係為本發明之服務註冊表圖。 The fifth figure is a service registry diagram of the present invention.
第六圖 係為本發明應用於儲存裝置之立體外觀圖。 Figure 6 is a perspective view of the present invention applied to a storage device.
第七圖 係為本發明應用於攝像裝置之立體外觀圖。 The seventh diagram is a perspective view of the invention applied to the image pickup apparatus.
第八圖 係為本發明應用於攝像裝置之步驟流程圖(一)。 The eighth figure is a flow chart (1) of the steps of applying the invention to the image pickup apparatus.
第九圖 係為本發明應用於攝像裝置之步驟流程圖(二)。 The ninth diagram is a flow chart (2) of the steps of applying the invention to the image pickup apparatus.
第十圖 係為本發明應用於揚聲裝置之立體外觀圖。 The tenth figure is a three-dimensional appearance of the invention applied to the speaker apparatus.
為達成上述目的及功效,本發明所採用之技術手段及其構造,茲繪圖就本發明之較佳實施例詳加說明其特徵與功能如下,俾利完全瞭解。 In order to achieve the above objects and effects, the technical means and the configuration of the present invention will be described in detail with reference to the preferred embodiments of the present invention.
請參閱第一、二圖所示,由圖中可以清楚看出,其市電供 電無線控制裝置係包括有控制裝置1及電路模組2,其中:該控制裝置1具有殼體11,殼體11一側設有插接於市電插座之二電源接頭12以及另側設有至少一個通用序列埠13(Universal Serial Bus connector,USB連接埠),又殼體11再於表面設有至少一個狀態指示燈14。其中,二電源接頭12係分別為火線接頭及中性線接頭,而狀態指示燈14係可為發光二極體(LED)。 Please refer to the first and second figures. It can be clearly seen from the figure that the mains supply The electric wireless control device includes a control device 1 and a circuit module 2, wherein the control device 1 has a housing 11 having a power connector 12 plugged into a mains socket and a side at least on the other side. A Universal Serial Bus connector (USB) is provided, and the housing 11 is further provided with at least one status indicator 14 on the surface. The two power connectors 12 are respectively a hot wire connector and a neutral wire connector, and the status indicator lamp 14 is a light emitting diode (LED).
該電路模組2係包括有整流器21、系統單晶片22及無線收發裝置23。且整流器21係電性連接至系統單晶片22,而系統單晶片22為電性連接至無線收發裝置23,其中,該無線收發裝置23係可為Wi-Fi無線收發裝置。 The circuit module 2 includes a rectifier 21, a system single chip 22, and a wireless transceiver 23. The rectifier 21 is electrically connected to the system single chip 22, and the system single chip 22 is electrically connected to the wireless transceiver 23, wherein the wireless transceiver 23 can be a Wi-Fi wireless transceiver.
本發明於組裝時,電路模組2為裝設於控制裝置1之殼體11內部,且控制裝置1之二電源接頭12為電性連接至整流器21,而系統單晶片22為電性連接至少一個通用序列埠13及狀態指示燈14。 When the invention is assembled, the circuit module 2 is installed inside the casing 11 of the control device 1, and the power connector 12 of the control device 1 is electrically connected to the rectifier 21, and the system single chip 22 is electrically connected at least. A universal sequence 埠13 and status indicator 14.
上述控制裝置1之二電源接頭12為火線接頭及中性線接頭僅係為較佳實施例而已。本發明於實際應用時該控制裝置1亦可設置有三個電源接頭12,該三電源接頭12係可分別為火線接頭、中性線接頭及地線接頭,亦或是於控制裝置1之殼體11設置有複數電源接頭12,其僅使複數電源接頭12符合其所插接之市電插座之型式即可,非因此即侷限本發明之專利範圍,如利用其他修飾及等效結構變化,均應同理包含於本發明之專利範圍內,合予陳明。 The second power connector 12 of the above control device 1 is a hot wire connector and a neutral wire connector, which is only a preferred embodiment. In the practical application, the control device 1 can also be provided with three power connectors 12, which can be fire wire connectors, neutral wire connectors and ground wire connectors, respectively, or the housing of the control device 1 . 11 is provided with a plurality of power connectors 12, which only make the plurality of power connectors 12 conform to the type of the mains socket to which they are plugged, and thus do not limit the scope of the patent of the present invention, such as using other modifications and equivalent structural changes, The same is included in the scope of the patent of the present invention and is combined with Chen Ming.
請參閱第一、二、三、四、五圖所示,由圖中可以清楚看 出,本發明市電供電無線控制裝置其使用時之處理流程為包括: Please refer to the first, second, third, fourth and fifth figures, which can be clearly seen from the picture. The processing flow when the utility power supply wireless control device of the present invention is used includes:
(600)開始。 (600) begins.
(601)事件迴圈(eventloop),直到系統發出事件。 (601) Event loop until the system issues an event.
(602)是否具有未處理之事件?若為是,則進行步驟(603),若為否,則進行步驟(601)。 (602) Is there an unprocessed event? If yes, proceed to step (603), and if no, proceed to step (601).
(603)是否為USB裝置3的事件?若為是,則進行步驟(604),若為否,則進行步驟(608)。 (603) Is it an event of the USB device 3? If yes, proceed to step (604), and if no, proceed to step (608).
(604)是否為USB裝置3新增的事件?若為是,則進行步驟(605),若為否,則進行步驟(612)。 (604) Is it a new event for USB device 3? If yes, proceed to step (605), and if no, proceed to step (612).
(605)得到USB裝置3具有的每一介面類別(interface class),並進行更新。 (605) Obtain each interface class that the USB device 3 has and update it.
(606)更新USB功能旗標(functionality flag)。 (606) Update the USB function flag.
(607)新增更新系統服務事件到事件佇列,再進行步驟(601)。 (607) Newly update the system service event to the event queue, and then proceed to step (601).
(608)是否為更新系統服務事件?若為是,則進行步驟(609),若為否,則進行步驟(601)。 (608) Is it an update system service event? If yes, proceed to step (609), and if no, proceed to step (601).
(609)查找服務註冊表(表2),將USB功能旗標所標示的介面類別查找到對應的服務。 (609) Look up the service registry (Table 2) and find the interface category indicated by the USB function flag to find the corresponding service.
(610)執行USB裝置3上所具有且要啟用的服務。 (610) Executing a service that is enabled on the USB device 3 and to be enabled.
(611)通知可攜式電子裝置4該USB裝置3啟用了 哪些服務,再進行步驟(601)。 (611) notifying the portable electronic device 4 that the USB device 3 is enabled Which services are followed by steps (601).
(612)是否為移除USB裝置3的事件,若為是,則進行步驟(613),若為否,則進行步驟(601)。 (612) Whether it is an event to remove the USB device 3, if yes, proceed to step (613), and if no, proceed to step (601).
(613)關閉USB裝置3所有相關的服務,再進行步驟(601)。 (613) Turn off all related services of the USB device 3, and then proceed to step (601).
由上述步驟可以得知,市電供電無線控制裝置使用時,為先開始,讓系統背景服務啟動,再進入事件迴圈,事件迴圈為等候事件進入佇列並進行依序處理之狀態,事件包含系統事件或USB裝置3事件等,直到有事件進入,此時,判斷有未處理之事件且為USB裝置3新增的事件後,會得到USB裝置3具有的每一介面類別(請參閱第四圖,如大量儲存裝置〔Mass Storage〕、內容安全性〔Content Security〕、智慧卡〔Smart Card〕、音訊〔Audio〕、圖像〔Image〕、影像〔Video〕或音訊/影像裝置〔Audio/Video Device〕等),如USB喇叭為具有聲音(Audio)介面類別及影像(Video)介面類別、隨身碟具有智慧卡(Smart Card)介面類別及內容安全性(Content Security)介面類別,進行更新後,再更新USB功能旗標,其為指各介面類別有其對應之位元,在對應USB裝置3具有的每一介面類別之位元改變其值(如0改為1),之後為新增更新系統服務事件到事件迴圈的事件佇列,再重新執行事件迴圈;由於USB裝置3插入時,可能會產生多個USB裝置3事件,而上述流程會往復執行,直到產生的多個USB裝置3事件都已經處理完畢。 It can be known from the above steps that when the utility power supply wireless control device is used, the system background service is started first, and then the event loop is entered, and the event loop is a state in which the waiting event enters the queue and is processed in sequence, and the event includes System event or USB device 3 event, etc., until an event is entered. At this time, after determining that there is an unprocessed event and adding an event to the USB device 3, each interface type that the USB device 3 has is obtained (see the fourth Pictures, such as Mass Storage, Content Security, Smart Card, Audio, Image, Video, or Audio/Video Device], etc., such as the USB speaker is updated with the audio (Audio) interface type and video (Video) interface category, the smart disk (Smart Card) interface category and the content security (Content Security) interface category. The USB function flag is updated, which means that each interface type has its corresponding bit, and the value of each interface type corresponding to the USB device 3 is changed (for example, 0 is changed to 1). After the event queue for updating the system service event to the event loop, the event loop is re-executed; when the USB device 3 is inserted, multiple USB device 3 events may occur, and the above process will be executed back and forth until the generation Multiple USB device 3 events have been processed.
而當多個USB裝置3事件處理完畢後,則會進行更新系統服務事件,此時,會進行至步驟(603),且因為不是USB裝置3的事件,所以會進行步驟(608),確認為更新系統服務事件後進行步驟(609),此時為查找服務註冊表(請參閱第四圖),將該USB裝置3所具有且被USB功能旗標所標示的介面類別,查表找到對應的服務,再進行步驟(610)、(611),先執行USB裝置3上所具有且要啟用的服務,再通知可攜式電子裝置4,讓可攜式電子裝置4得知該USB裝置3啟用了哪些服務;其亦可先通知雲端伺服器(圖中未示出),雲端伺服器再傳輸通知可攜式電子裝置4,則可攜式電子裝置4就可以執行所需的服務,可攜式電子裝置4可為手機或平板,即可提升使用範圍及方便性。 After the event processing of the plurality of USB devices 3 is completed, the system service event is updated. At this time, the process proceeds to step (603), and since the event is not the USB device 3, the step (608) is performed to confirm that After updating the system service event, step (609) is performed. At this time, in order to find the service registry (refer to the fourth figure), the interface type of the USB device 3 and marked by the USB function flag is found, and the corresponding table is found. The service, and then performing steps (610) and (611), first executing the service that is enabled and enabled on the USB device 3, and then notifying the portable electronic device 4, so that the portable electronic device 4 knows that the USB device 3 is enabled. Which services are available; the cloud server can also notify the cloud server (not shown), and the cloud server can transmit the notification to the portable electronic device 4, so that the portable electronic device 4 can perform the required service. The electronic device 4 can be a mobile phone or a tablet, thereby improving the scope of use and convenience.
而當USB裝置3要移除時,則會產生一移除USB裝置3的事件至事件迴圈,當要執行移除USB裝置3的事件時,會經過步驟(602)、(603)、(604)至步驟(612),確認為移除USB裝置3的事件後,則進行步驟(613),來將USB裝置3所有相關的服務都關閉。 When the USB device 3 is to be removed, an event of removing the USB device 3 to the event loop is generated, and when the event of removing the USB device 3 is to be performed, the steps (602), (603), 604) to step (612), after confirming that the event of removing the USB device 3 is performed, proceeding to step (613) to turn off all related services of the USB device 3.
請參閱第一、二、六、七、十圖所示,由圖中可以清楚看出,該USB裝置3可為儲存裝置31、攝像裝置32、揚聲裝置33、筆記型電腦、顯示器或電視等,藉由上述流程,便可在不同的USB裝置3插接於市電供電無線控制裝置時,得到USB裝置3具有的每一介面類別,再查找得到USB裝置3所具有的各個功能,市電供電無線控制裝置即可將USB裝置3具有的各個功能傳輸至可攜式電子裝置4,或是先傳 輸至雲端伺服器再傳輸至可攜式電子裝置4,藉此,讓可攜式電子裝置4可以得知市電供電無線控制裝置所插接的USB裝置3之功能,並可透過可攜式電子裝置4使用USB裝置3之各個功能,藉此讓可攜式電子裝置4直接遠距操控USB裝置3,讓可攜式電子裝置4可進行列印、儲存資料、撥放音樂、攝影或拍照等,以達到增加功能及提升使用方便性之目的。 Please refer to the first, second, sixth, seventh, and tenth figures. As can be clearly seen from the figure, the USB device 3 can be a storage device 31, a camera device 32, a speaker device 33, a notebook computer, a display or a television. In the above process, when different USB devices 3 are plugged into the commercial power supply wireless control device, each interface type of the USB device 3 is obtained, and then each function of the USB device 3 is found, and the utility power is supplied. The wireless control device can transmit the functions of the USB device 3 to the portable electronic device 4, or transmit the first The portable server is transmitted to the portable electronic device 4, so that the portable electronic device 4 can know the function of the USB device 3 plugged into the commercial power supply wireless control device, and can be transmitted through the portable electronic device. The device 4 uses the functions of the USB device 3, thereby allowing the portable electronic device 4 to directly manipulate the USB device 3, so that the portable electronic device 4 can print, store data, play music, photograph or take photos, etc. In order to achieve increased functionality and ease of use.
本發明於實際應用時,為將USB裝置3之電連接器30插接至控制裝置1之通用序列埠13,再將控制裝置1之二個電源接頭12插接於市電插座(圖中未示出),系統單晶片22在判斷通用序列埠13所連接之USB裝置3所具有之服務(如網路硬碟〔Network file hosting service〕、伺服器訊息區塊〔SMB〕、FTP或AFP)後,且將所具有的服務開啟,該系統單晶片22即會將USB裝置3所開啟的服務利用應用程式介面(Application Programming Interface,即API)透過無線收發裝置23以無線通訊方式傳輸給外部之可攜式電子裝置4,使得具無線傳輸功能(如Wi-Fi)之可攜式電子裝置4能與USB裝置3間進行雙向之資料傳輸、收發,以供可攜式電子裝置4能以無線傳輸之方式操作或使用該USB裝置3之全部或部分功能(服務即為USB裝置3所具有的相對應功能)。 In the practical application, the electrical connector 30 of the USB device 3 is plugged into the universal serial port 13 of the control device 1, and the two power connectors 12 of the control device 1 are plugged into the commercial power socket (not shown). The system single chip 22 determines the service of the USB device 3 connected to the universal serial port 13 (such as a network file hosting service, a server message block (SMB), an FTP or an AFP). And turning on the service provided, the system single chip 22 transmits the service opened by the USB device 3 to the outside through the wireless transceiver 23 through an application programming interface (API) through the wireless transceiver 23. The portable electronic device 4 enables the portable electronic device 4 with a wireless transmission function (such as Wi-Fi) to perform bidirectional data transmission and transmission between the USB device 3 and the portable electronic device 4 for wireless transmission. The operation or use of all or part of the functions of the USB device 3 (the service is the corresponding function of the USB device 3).
上述應用程式介面(API)係用以銜接不同應用程式系統(如前述可攜式電子裝置4及USB裝置3)間之協定,以協助不同應用程式間能順暢進行資料交換或指令執行等動作,然而有關用程式介面( API)係為習知之技術,且該細部構成非本案之要點,茲不再贅述。 The application interface (API) is used to interface between different application systems (such as the portable electronic device 4 and the USB device 3) to facilitate smooth data exchange or instruction execution between different applications. However, the relevant application interface ( API) is a well-known technique, and this detail constitutes the main point of this case, and will not be described again.
請參閱第二、六圖所示,由圖中所示可清楚看出,前述USB裝置3可為儲存裝置31(如記憶卡及讀卡機、隨身碟或外接式硬碟等),並於電路模組2之系統單晶片22判斷該儲存裝置31所具有的服務(如網路硬碟〔Network file hosting service〕、伺服器訊息區塊〔SMB〕、FTP或AFP),且啟用所具有的服務後,可攜式電子裝置4即能藉由前述應用程式介面(API)對儲存裝置31內之資料進行儲存、讀取、修改或刪除等資源管理動作。 Please refer to the second and sixth figures. As can be clearly seen from the figure, the USB device 3 can be a storage device 31 (such as a memory card and a card reader, a flash drive or an external hard disk, etc.). The system single chip 22 of the circuit module 2 determines the service (such as a network file hosting service, a server message block (SMB), an FTP or an AFP) of the storage device 31, and enables the After the service, the portable electronic device 4 can perform resource management operations such as storing, reading, modifying or deleting the data in the storage device 31 by using the application interface (API).
請參閱第二、七圖所示,由圖中所示可清楚看出,前述USB裝置3亦可為攝像裝置32(如攝影機、網路攝影機或相機等),並於系統單晶片22判斷攝像裝置32所具有的服務(如網路音效撥放服務〔Network audio playback service〕、視頻無線撥放〔AirPlay〕、數位生活網路聯盟〔DLNA〕、攝影機串流服務〔Camera steaming service〕或聲音/影像串流服務〔A/V steaming service〕)後,可攜式電子裝置4即可透過前述應用程式介面(API)操控攝像裝置32進行擷取照片或拍攝影片,且可以對該攝像裝置32所攝之影片或照片進行觀看、修改或刪除等動作。 Please refer to the second and seventh figures. As can be clearly seen from the figure, the USB device 3 can also be an imaging device 32 (such as a camera, a network camera or a camera), and the camera is determined on the system single chip 22. The device 32 has services (such as Network audio playback service, AirPlay, Digital Living Network Alliance (DLNA), Camera Steaming Service, or Sound/ After the video streaming service (A/V steaming service), the portable electronic device 4 can control the camera device 32 to capture a photo or take a video through the application interface (API), and the camera device 32 can Take a movie or photo to watch, modify or delete.
請參閱第二、七、八圖所示,其為以攝像裝置32作為實施例進行說明,攝像裝置32插接於市電供電無線控制裝置時,其使用時之處理流程為包括: Please refer to the second, seventh, and eighth diagrams. The imaging device 32 is used as an embodiment. When the imaging device 32 is plugged into the commercial power supply wireless control device, the processing flow during use includes:
(700)開始。 (700) begins.
(701)查詢攝像裝置32之硬體規格。 (701) Query the hardware specifications of the image pickup device 32.
(702)查詢攝像裝置32具有的影像格式。 (702) Query the image format of the image pickup device 32.
(703)查詢可攜式電子裝置4之影像格式。 (703) Query the image format of the portable electronic device 4.
(704)建立影像處理鏈將原始影像格式轉換成與可攜式電子裝置4相應之影像格式。 (704) Establishing an image processing chain to convert the original image format into an image format corresponding to the portable electronic device 4.
(705)結束離開。 (705) End and leave.
由上述步驟可以得知,開始之後為先查詢攝像裝置32之硬體規格,之後查詢攝像裝置32之影像格式(圖片或影片),之後查詢可攜式電子裝置4之影像格式,之後再建立影像處理鏈,其影像處理鏈係指將原始影像進行處理成可攜式電子裝置4所要求之格式(如影像大小、色調、解析度、動態影像與聲音的壓縮編碼格式、格放速率、資料傳輸率等),之後便可進行傳輸。 It can be known from the above steps that after the start, the hardware specifications of the camera device 32 are first queried, and then the image format (picture or video) of the camera device 32 is queried, and then the image format of the portable electronic device 4 is queried, and then the image is created. The processing chain, the image processing chain refers to the processing of the original image into the format required by the portable electronic device 4 (such as image size, hue, resolution, compression encoding format of motion image and sound, grid rate, data transmission) Rate, etc.), then transfer.
再請參閱第九圖所示,由圖中所示可清楚看出,前述影像處理鏈進一步可以依據網路傳輸的狀況即時調整影像輸出的規格,其影像處理鏈之處理流程為包括: Referring to the ninth figure, it can be clearly seen from the figure that the image processing chain can further adjust the specification of the image output according to the condition of the network transmission. The processing flow of the image processing chain includes:
(800)開始。 (800) begins.
(801)查詢網路傳輸狀況是否變更影像輸出格式,若為是,則進行步驟(802),若為否,則進行步驟(803)。 (801) Query whether the network transmission status changes the video output format. If yes, proceed to step (802), and if no, proceed to step (803).
(802)變更影像輸出格式。 (802) Change the image output format.
(803)結束離開。 (803) End and leave.
上述查詢網路傳輸狀況可依據佇列消耗的速率來判斷,來 決定是否變更影像輸出之格式,且由於許多網路串流技術接建立在TCP傳輸之上,故影像處理鏈可以依據TCP傳輸的變化,計算出合理的影像格式且可相容於RTSP、HTTP等主流網路協定。 The above query network transmission status can be judged according to the rate of consumption of the queue. Decide whether to change the format of the image output, and since many network streaming technologies are connected to the TCP transmission, the image processing chain can calculate a reasonable image format according to the change of the TCP transmission and is compatible with RTSP, HTTP, etc. Mainstream network agreement.
請參閱第二、十圖所示,由圖中所示可清楚看出,前述USB裝置3係可為揚聲裝置33(如音響或喇叭等),進而於系統單晶片22判斷揚聲裝置33所具有的服務(如網路音效撥放服務〔Network audio playback service〕、視頻無線撥放〔AirPlay〕及數位生活網路聯盟〔DLNA〕)後,可攜式電子裝置4即可藉由前述應用程式介面(API)調整該揚聲裝置33之音量或高低音等參數,或透過該揚聲裝置33播放音樂檔案或影片聲效。 Referring to the second and tenth views, it can be clearly seen from the figure that the USB device 3 can be a speaker device 33 (such as an audio or a speaker), and then the speaker device 33 can be judged on the system single chip 22. With the services (such as Network audio playback service, AirPlay, and Digital Living Network Alliance (DLNA)), the portable electronic device 4 can be used for the aforementioned applications. The program interface (API) adjusts the parameters such as the volume or the high and low sound of the speaker device 33, or plays the music file or the film sound through the speaker device 33.
故,本發明為主要針對市電供電無線控制裝置之資料傳輸方法,而可讓市電供電無線控制裝置確認具有未處理之USB裝置新增事件後,得到USB裝置具有的每一介面類別、更新USB功能旗標、新增更新系統服務事件及查找服務註冊表得到對應的服務,再執行各服務並通知可攜式電子裝置4,讓可攜式電子裝置4直接遠距操控USB裝置,以提升使用方便性為主要保護重點,惟,以上所述僅為本發明之較佳實施例而已,非因此即侷限本發明之專利範圍,故舉凡運用本發明說明書及圖式內容所為之簡易修飾及等效結構變化,均應同理包含於本發明之專利範圍內,合予陳明。 Therefore, the present invention is directed to a data transmission method for a mains supply wireless control device, and allows the mains supply wireless control device to confirm that there is an unprocessed USB device addition event, obtain each interface type of the USB device, and update the USB function. The flag, the newly updated system service event, and the search service registry are corresponding services, and then the services are executed and the portable electronic device 4 is notified, so that the portable electronic device 4 directly manipulates the USB device remotely to improve the use. Sexuality is the main protection focus, but the above is only the preferred embodiment of the present invention, and thus does not limit the scope of the patent of the present invention, so that the simple modification and equivalent structure of the present specification and the contents of the drawings are used. All changes shall be included in the scope of the patent of the present invention and shall be combined with Chen Ming.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW106139028A TWI647892B (en) | 2017-11-10 | 2017-11-10 | Data transmission method for utility power supply wireless control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW106139028A TWI647892B (en) | 2017-11-10 | 2017-11-10 | Data transmission method for utility power supply wireless control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI647892B true TWI647892B (en) | 2019-01-11 |
| TW201919307A TW201919307A (en) | 2019-05-16 |
Family
ID=65804216
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW106139028A TWI647892B (en) | 2017-11-10 | 2017-11-10 | Data transmission method for utility power supply wireless control device |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI647892B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030098353A1 (en) * | 1999-06-07 | 2003-05-29 | Metrologic Instruments, Inc. | Planar laser illumination and imaging (PLIIM) engine |
| US20120112531A1 (en) * | 2008-09-27 | 2012-05-10 | Kesler Morris P | Secure wireless energy transfer for vehicle applications |
| WO2013142840A1 (en) * | 2012-03-23 | 2013-09-26 | Witricity Corporation | Integrated repeaters for cell phone applications |
| TWM493726U (en) * | 2014-09-30 | 2015-01-11 | Linknext Technologies Co Ltd | Wireless control device powered by utility power |
| TW201619839A (en) * | 2014-11-24 | 2016-06-01 | Linknext Technologies Co Ltd | Control method for external control module of portable electronic device |
-
2017
- 2017-11-10 TW TW106139028A patent/TWI647892B/en active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030098353A1 (en) * | 1999-06-07 | 2003-05-29 | Metrologic Instruments, Inc. | Planar laser illumination and imaging (PLIIM) engine |
| US20120112531A1 (en) * | 2008-09-27 | 2012-05-10 | Kesler Morris P | Secure wireless energy transfer for vehicle applications |
| WO2013142840A1 (en) * | 2012-03-23 | 2013-09-26 | Witricity Corporation | Integrated repeaters for cell phone applications |
| TWM493726U (en) * | 2014-09-30 | 2015-01-11 | Linknext Technologies Co Ltd | Wireless control device powered by utility power |
| TW201619839A (en) * | 2014-11-24 | 2016-06-01 | Linknext Technologies Co Ltd | Control method for external control module of portable electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201919307A (en) | 2019-05-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI487367B (en) | Wireless hot spot device capable of sharing video picture | |
| JP7369281B2 (en) | Device capacity scheduling method and electronic devices | |
| KR102124188B1 (en) | Electronic device and method for processing image | |
| CN108966008B (en) | Live video playback method and device | |
| WO2019192600A1 (en) | Method and apparatus for screen projection of data, storage medium and electronic device | |
| US10225455B2 (en) | Communication apparatus, information processing apparatus, methods and computer-readable storage medium | |
| US20160063036A1 (en) | Communication apparatus capable of communicating with external apparatus in which contents are recorded, and receiving metadata of contents | |
| CN101771750A (en) | Terminal of wireless preview shooting and method | |
| CN104333911A (en) | Network connection setting method of multimedia player and related computer system | |
| CN104169913A (en) | A picture display method and device, terminal equipment | |
| WO2022135527A1 (en) | Video recording method and electronic device | |
| US10235963B2 (en) | Communication apparatus communicable with external apparatus, control method of communication apparatus, and storage medium | |
| CN110786018A (en) | Optical connector and display device control method | |
| WO2016155633A1 (en) | Information linkage method, device, server and system | |
| CN102882565B (en) | A data processing and sending method and related equipment | |
| TWI647892B (en) | Data transmission method for utility power supply wireless control device | |
| US20160248832A1 (en) | Multimedia resource management method, cloud server and electronic apparatus | |
| US9756195B2 (en) | Communication apparatus capable of communicating with external apparatus, control method for communication apparatus, and storage medium | |
| CN204992154U (en) | Smart jack and system with wireless interactive function | |
| TW201421287A (en) | Devices, methods and electronic equipments for playback controlling | |
| CN201986025U (en) | Telescopic multifunctional camera | |
| KR101238965B1 (en) | Camera combined with smart device | |
| CN115209213B (en) | Wireless screen projection method and mobile device | |
| KR20200143076A (en) | Method for Streaming Image and the Electronic Device supporting the same | |
| CN103118068B (en) | Obtained the method and system of data from other data-source device by current application equipment |