CN109542709A - A kind of global function test macro of intelligent glasses - Google Patents

A kind of global function test macro of intelligent glasses Download PDF

Info

Publication number
CN109542709A
CN109542709A CN201811480736.8A CN201811480736A CN109542709A CN 109542709 A CN109542709 A CN 109542709A CN 201811480736 A CN201811480736 A CN 201811480736A CN 109542709 A CN109542709 A CN 109542709A
Authority
CN
China
Prior art keywords
usb
unit
intelligent glasses
module
global function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811480736.8A
Other languages
Chinese (zh)
Inventor
及红超
许兵兵
徐培培
赖梓畅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Aflong Technology Co Ltd
Original Assignee
Beijing Aflong Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Aflong Technology Co Ltd filed Critical Beijing Aflong Technology Co Ltd
Priority to CN201811480736.8A priority Critical patent/CN109542709A/en
Publication of CN109542709A publication Critical patent/CN109542709A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of global function test macros of intelligent glasses, including USB communication module, USB data transmission module, USB upgrading transmission module and USB read module, USB communication module between USB data line and intelligent glasses by keeping in communication, and image data transmission is carried out by USB data transmission module, transmission module is upgraded by USB again later and carries out upgrading transmission, reads testing result finally by USB read module;Global function test macro of the invention upgrades transmission module and USB read module by USB communication module, USB data transmission module, USB and carries out functional test to intelligent glasses, it can be powered by alternating current, guarantee electricity supply, debugging process is convenient, in order to analyze;The library libusb and opencv is used to call library for core, convenient for carrying out USB communication between intelligent glasses, Image Acquisition and processing, in order to transplant, test intelligent glasses in all directions, test scope is wide.

Description

A kind of global function test macro of intelligent glasses
Technical field
The present invention relates to ophthalmic lens product technical field more particularly to a kind of global function test macros of intelligent glasses.
Background technique
Intelligent glasses, also referred to as smart mirror, refer to " as smart phone, there is independent operating system, it can be by user The program that the software houses such as software, game provide is installed, can be led by voice or movement manipulation completion adding schedule, map Boat interacts with good friend, shoots photos and videos, the functions such as video calling are unfolded with friend, and can pass through mobile communication network Come realize wireless network access so a kind of glasses general name ".
Intelligent glasses are a equipment being adapted to Android mobile phone, and product is when debugging early period, due to equipment energy consumption Height, the reasons such as hardware is not perfect are very inconvenient using Android mobile phone;Later period glasses carry out long-time test, battery of mobile phone branch The long time is not held.
Summary of the invention
The purpose of the present invention is to solve the problems of the prior art, and a kind of global function of the intelligent glasses proposed is surveyed Test system.
To achieve the goals above, present invention employs following technical solutions:
A kind of global function test macro of intelligent glasses, including USB communication module, USB data transmission module, USB upgrading Transmission module and USB read module, the USB communication module are led to by keeping in communication between USB data line and intelligent glasses It crosses USB data transmission module and carries out image data transmission, transmission module is upgraded by USB again later and carries out upgrading transmission, finally Testing result is read by USB read module.
Preferably, the USB communication module includes USB initialization unit, bus initialization unit, equipment initialization list Member, registration interface unit and equipment matching unit are initialized in USB initialization unit, bus initialization unit and equipment USB initialization, bus initialization and equipment initialization are successively carried out in unit, are registered in registration interface unit later Interface after succeeding in registration, finds equipment in equipment matching unit, carries out equipment matching, opens equipment after successful match Handle.
Preferably, the USB data transmission module includes reading unit, finds unit, send the packet header USB unit, send Picture unit sends USB packet tail unit and keeps delay unit, after opening video file, reads text by reading unit Part length, and find unit in find jpeg picture, later send the packet header USB unit and send picture unit according to Secondary transmission packet header and transmission data image data finally, sending USB packet tail in sending USB packet tail unit, and are keeping being delayed Frame frequency is kept rationally to be delayed in unit.
Preferably, the USB upgrading transmission module includes reading unit, sends the packet header USB unit, sends BIN number of files USB packet tail unit and the second transmission USB packet tail unit are sent according to unit and first, after opening BIN file, reading unit is read File size is taken, sends and sends the packet header USB in the unit of the packet header USB, sends send BIN file in BIN file data unit later Data, last first transmission USB packet tail unit and the second transmission USB packet tail unit successively send USB packet tail.
Preferably, the USB read module mainly includes monitoring unit, after opening USB listening thread, monitoring unit prison After listening the success of USB endpoint, so that it may listen to data and show.
Preferably, the global function test macro uses the library libusb and opencv to call library for core, is carried out based on QT Interface, transplanting are convenient, wherein the library Libusb is mainly used for USB communication, and the library Opencv is mainly used for camera image and adopts Collection, processing and compression work.
Compared with prior art, the present invention provides a kind of global function test macros of intelligent glasses, have following beneficial Effect:
(1), the global function test macro of the invention passes through USB communication module, USB data transmission module, USB upgrading transmission Module and USB read module carry out functional test to intelligent glasses, can be powered by alternating current, guarantee electricity supply, adjust Examination process is convenient, in order to analyze.
(2), the global function test macro of the invention uses the library libusb and opencv to call library for core, is convenient for and intelligence Carry out USB communication between glasses, Image Acquisition and processing, in order to transplant, test intelligent glasses in all directions, test scope Extensively.
It is not directed to part in the device to be the same as those in the prior art or can be realized by using the prior art, structure of the invention Simply, easy to operate.
Detailed description of the invention
Fig. 1 is a kind of USB communication module structural schematic diagram of the global function test macro of intelligent glasses proposed by the present invention;
Fig. 2 is that a kind of USB image transmission module structure of the global function test macro of intelligent glasses proposed by the present invention is shown It is intended to;
Fig. 3 is that a kind of USB upgrading transmission module structure of global function test macro of intelligent glasses proposed by the present invention is shown It is intended to;
Fig. 4 is a kind of USB read module structural schematic diagram of the global function test macro of intelligent glasses proposed by the present invention;
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.
In the description of the present invention, it is to be understood that, term " on ", "lower", "front", "rear", "left", "right", "top", The orientation or positional relationship of the instructions such as "bottom", "inner", "outside" is to be based on the orientation or positional relationship shown in the drawings, merely to just In description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, with Specific orientation construction and operation, therefore be not considered as limiting the invention.
Embodiment 1
As shown in Figs 1-4, the global function test macro of a kind of intelligent glasses, including USB communication module, USB data transmission Module, USB upgrading transmission module and USB read module, USB communication module between USB data line and intelligent glasses by keeping Communication, and image data transmission is carried out by USB data transmission module, transmission module is upgraded by USB again later and is upgraded Transmission reads testing result finally by USB read module.
USB communication module includes USB initialization unit, bus initialization unit, equipment initialization unit, registration Interface unit and equipment matching unit, in USB initialization unit, bus initialization unit and equipment initialization unit USB initialization, bus initialization and equipment initialization are successively carried out, is registered in registration interface unit later Interface after succeeding in registration, finds equipment in equipment matching unit, carries out equipment matching, opens equipment after successful match Handle.
USB data transmission module includes reading unit, finds unit, send the packet header USB unit, send image data list Member sends USB packet tail unit and keeps delay unit, after opening video file, by reading unit reading file size, and It finds and finds jpeg picture in unit, successively send packet header in sending the packet header USB unit and transmission picture unit later With transmission data image data, finally, sending USB packet tail in sending USB packet tail unit, and kept in keeping delay unit Frame frequency is rationally delayed.
USB upgrading transmission module includes reading unit, sends the packet header USB unit, sends BIN file data unit and first USB packet tail unit and the second transmission USB packet tail unit are sent, after opening BIN file, reading unit reads file size, It sends and sends the packet header USB in the unit of the packet header USB, send send BIN file data in BIN file data unit later, last the One transmission USB packet tail unit and the second transmission USB packet tail unit successively send USB packet tail.
USB read module mainly includes monitoring unit, after opening USB listening thread, monitoring unit monitor USB endpoint at After function, so that it may listen to data and show.
Global function test macro uses the library libusb and opencv to call library for core, carries out interface based on QT, moves It is convenient to plant, wherein the library Libusb is mainly used for USB communication, and the library Opencv is mainly used for camera image acquisition, processing and compression Work.
Specifically, global function test macro of the invention uses the library libusb and opencv to call library for core, it is based on QT Interface is carried out, when test, global function test macro and intelligent glasses of the invention are carried out by USB company by USB data line It connects, and carries out USB initialization, bus initialization and equipment initialization, make successful connection between test macro and intelligent glasses, it can Usb communication is carried out, re-registration interface after succeeding in registration, finds equipment in equipment matching unit, carries out equipment matching, Equipment handle is opened after successful match.
File location is browsed to later, after opening video file, reads file size, and find jpeg picture, later It successively sends packet header and sends data image data, finally, sending USB packet tail, and frame frequency is kept rationally to be delayed, i.e., openable text Part plays out, and intelligent glasses can show image.
Then, corresponding BIN file is selected in USB upgrading transmission module, after opening BIN file, reads file size, The packet header USB is sent, sends BIN file data later, USB packet tail is finally sent, can show upgrade status in test macro, herein Under state, USB listening thread is being opened, after monitoring the success of USB endpoint, so that it may listen to data and show, to read mould in USB The numerical value of TP can be shown in block.
It should be noted that global function test macro of the invention by USB communication module, USB data transmission module, USB upgrades transmission module and USB read module and carries out functional test to intelligent glasses, can be powered, be guaranteed by alternating current Electricity supply, debugging process is convenient, in order to analyze;It uses the library libusb and opencv to call library for core, is convenient for and intelligence Carry out USB communication between glasses, Image Acquisition and processing, in order to transplant, test intelligent glasses in all directions, test scope Extensively.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, Anyone skilled in the art in the technical scope disclosed by the present invention, according to the technique and scheme of the present invention and its Inventive concept is subject to equivalent substitution or change, should be covered by the protection scope of the present invention.

Claims (6)

1. a kind of global function test macro of intelligent glasses, including USB communication module, USB data transmission module, USB upgrading pass Defeated module and USB read module, which is characterized in that the USB communication module between USB data line and intelligent glasses by keeping Communication, and image data transmission is carried out by USB data transmission module, transmission module is upgraded by USB again later and is upgraded Transmission reads testing result finally by USB read module.
2. a kind of global function test macro of intelligent glasses according to claim 1, which is characterized in that the USB communication Module includes USB initialization unit, bus initialization unit, equipment initialization unit, registration interface unit and equipment With unit, USB initialization, bus are successively carried out in USB initialization unit, bus initialization unit and equipment initialization unit Initialization and equipment initialization, register interface in registration interface unit later, after succeeding in registration, in equipment With equipment is found in unit, equipment matching is carried out, opens equipment handle after successful match.
3. a kind of global function test macro of intelligent glasses according to claim 1, which is characterized in that the usb data Transmission module includes reading unit, finds unit, send the packet header USB unit, send picture unit, send USB packet tail list Member and holding delay unit after opening video file, read file size by reading unit, and find in finding unit Jpeg picture successively sends packet header in sending the packet header USB unit and transmission picture unit later and sends data picture Data finally, sending USB packet tail in sending USB packet tail unit, and keep frame frequency to be rationally delayed in keeping delay unit.
4. a kind of global function test macro of intelligent glasses according to claim 1, which is characterized in that the USB upgrading Transmission module includes reading unit, sends the packet header USB unit, sends BIN file data unit and the first transmission USB packet tail unit And second send USB packet tail unit, after opening BIN file, reading unit read file size, transmission the packet header USB unit The middle packet header transmission USB sends send BIN file data in BIN file data unit later, and last first sends USB packet tail list Member and the second transmission USB packet tail unit successively send USB packet tail.
5. a kind of global function test macro of intelligent glasses according to claim 1, which is characterized in that the USB is read Module mainly includes monitoring unit, after opening USB listening thread, after monitoring unit monitors the success of USB endpoint, so that it may listen to Data are shown.
6. a kind of global function test macro of intelligent glasses according to claim 1, which is characterized in that the global function is surveyed Test system uses the library libusb and opencv to call library for core, carries out interface based on QT, transplanting is convenient, wherein The library Libusb is mainly used for USB communication, and the library Opencv is mainly used for camera image acquisition, processing and compression work.
CN201811480736.8A 2018-12-05 2018-12-05 A kind of global function test macro of intelligent glasses Pending CN109542709A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811480736.8A CN109542709A (en) 2018-12-05 2018-12-05 A kind of global function test macro of intelligent glasses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811480736.8A CN109542709A (en) 2018-12-05 2018-12-05 A kind of global function test macro of intelligent glasses

Publications (1)

Publication Number Publication Date
CN109542709A true CN109542709A (en) 2019-03-29

Family

ID=65853821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811480736.8A Pending CN109542709A (en) 2018-12-05 2018-12-05 A kind of global function test macro of intelligent glasses

Country Status (1)

Country Link
CN (1) CN109542709A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101777036A (en) * 2009-01-09 2010-07-14 比亚迪股份有限公司 Device, USB equipment and method for realizing drive-free image data transmission
US20130010297A1 (en) * 2011-07-05 2013-01-10 Wistron Corp. Testing method, device and system for shutter glasses
CN204229066U (en) * 2014-12-04 2015-03-25 山东信通电子股份有限公司 Wired intellective glasses
CN105847777A (en) * 2016-03-24 2016-08-10 湖南拓视觉信息技术有限公司 Method and device for transmitting three-dimensional depth images
CN106501633A (en) * 2016-09-27 2017-03-15 捷开通讯科技(上海)有限公司 The test system and method for Wearable electronic equipment
CN106525844A (en) * 2016-07-22 2017-03-22 南京农业大学 Portable fruit quality grading system based on embedded Linux
CN106547589A (en) * 2016-10-18 2017-03-29 深圳市沃特玛电池有限公司 A kind of upgrade-system and upgrade method
US20170115742A1 (en) * 2015-08-01 2017-04-27 Zhou Tian Xing Wearable augmented reality eyeglass communication device including mobile phone and mobile computing via virtual touch screen gesture control and neuron command
CN106649010A (en) * 2016-11-29 2017-05-10 广东欧珀移动通信有限公司 Terminal device testing method and terminal device
CN107450591A (en) * 2017-08-23 2017-12-08 浙江工业大学 Based on the tall and handsome unmanned plane motion tracking system up to TX2 processors

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101777036A (en) * 2009-01-09 2010-07-14 比亚迪股份有限公司 Device, USB equipment and method for realizing drive-free image data transmission
US20130010297A1 (en) * 2011-07-05 2013-01-10 Wistron Corp. Testing method, device and system for shutter glasses
CN204229066U (en) * 2014-12-04 2015-03-25 山东信通电子股份有限公司 Wired intellective glasses
US20170115742A1 (en) * 2015-08-01 2017-04-27 Zhou Tian Xing Wearable augmented reality eyeglass communication device including mobile phone and mobile computing via virtual touch screen gesture control and neuron command
CN105847777A (en) * 2016-03-24 2016-08-10 湖南拓视觉信息技术有限公司 Method and device for transmitting three-dimensional depth images
CN106525844A (en) * 2016-07-22 2017-03-22 南京农业大学 Portable fruit quality grading system based on embedded Linux
CN106501633A (en) * 2016-09-27 2017-03-15 捷开通讯科技(上海)有限公司 The test system and method for Wearable electronic equipment
CN106547589A (en) * 2016-10-18 2017-03-29 深圳市沃特玛电池有限公司 A kind of upgrade-system and upgrade method
CN106649010A (en) * 2016-11-29 2017-05-10 广东欧珀移动通信有限公司 Terminal device testing method and terminal device
CN107450591A (en) * 2017-08-23 2017-12-08 浙江工业大学 Based on the tall and handsome unmanned plane motion tracking system up to TX2 processors

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李旭东等: "基于树莓派的穿戴式智能眼镜系统设计与实现", 《软件》 *

Similar Documents

Publication Publication Date Title
CN106171014A (en) Consider that the wireless system of the RF Resource Availability in double access phone selects
CN201403166Y (en) Intelligent image monitoring and alarming device
CN103929617A (en) Multi-angle on-site law enforcement information acquisition and transmission system for police
CN111078376A (en) Process management method and device
CN114339697A (en) Communication connection establishing method, system, electronic device and storage medium
CN104243683A (en) Data processing method, terminal, user identification card and data processing system
CN209234067U (en) Wi-Fi probe and laboratory attendance checking system based on Wi-Fi probe
CN113127188A (en) Performance optimization method and electronic equipment
CN109542709A (en) A kind of global function test macro of intelligent glasses
CN205754609U (en) Radio digital mic
CN107729860B (en) Recognition of face calculation method and Related product
CN203241620U (en) Head-mounted display
CN208337763U (en) A kind of people's air defense mobile commanding system
CN204697160U (en) A kind of have functions of waterproof and dustproof and the moving camera of energy real-time transmission data
CN207408864U (en) A kind of intelligence wearing terminal for inspection, emergency command
CN203840377U (en) Information acquisition device for use in medical information real-time publishing system
CN208210156U (en) A kind of inspection device
CN109118633A (en) It is a kind of to support and the access control equipment of a plurality of mobile device video intercommunications
CN205005173U (en) Unmanned aerial vehicle's image tracking control system
CN205281019U (en) Glasses are guideed in intelligence operation
CN208479668U (en) The WIFI network control system of mobile phone control switch machine and shake net
CN110096468A (en) It is a kind of based on FPGA architecture mobile module and its with the connection method of mobile phone
CN112866983A (en) Control method, control device and electronic equipment
CN111280577A (en) Intelligent helmet
CN103945190A (en) System for recording video transmission at law enforcement site

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190329

RJ01 Rejection of invention patent application after publication