Home
Packet-Master User Manual
Contents
1. Output Voltage 9V Regulated Output Current 300mA USB12 500mA USB480 Polarity Centre Pin Positive A suitable Power Supply is available from MQP Electronics Ltd The use of any other supply is not recommended and is at the users own risk 2 11 External Power Supply USB500 AG The Packet Master USB500 AG operating in Analyser mode normally derives its power from the Host computer s USB connection but may be powered externally This is not normally required but useful if the host won t configure a high power device However in Generator mode as the unit has be able to provide a supply to the device of up to 500mA the external power supply which we provide with the unit must be connected to the power socket on the rear The external supply must meet the following requirements Output Voltage 9V Regulated Output Current 1A Polarity Centre Pin Positive User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 27 me USER MANUAL ELECTRONICS 2 12 Trigger Specification As Input Characteristic Value Max Voltage allowed V 0 5 to 5 5 VIL max V 0 8 VIH min V 2 As Output Characteristic Value Condition Max Voltage allowed V 0 5 to 5 5 Output Impedance Q 2k2 VOL max V 0 4 zero current VOH min V 2 4 zero current User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electroni
2. User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 143 me Geen ELECTRONICS e AD SC P S E ET C5 which are of great assistance in defining packet data If the packet cannot be sent given the current link speed execution is halted with an error code If a LS packet is sent on a FS link the preamble will automatically be sent first Idle lt n gt Host or Device Idle for specified number of 60MHz clock cycles Idle is also used for waiting in other states than the standard USB idle state if required Examples are after WaitVbusOn or before PullupOn If the time specified overlaps the next SOF start time then delay the next SOF Note that after sending a packet or waiting for a packet the Idle time specified starts after the minimum inter packet delay time So a command of Idle 0 is valid between two packets SOFs lt n gt lt m gt Host Only Do nothing while the specified number lt n gt of SOFs is automatically generated If lt m gt is specified then the next frame number will be forced to lt m gt otherwise the next automatically generated frame number is used User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 144 me USER MANUAL ELECTRONICS WaitPacketLs lt pid gt Host or Device WaitPacketFs lt pid gt Wait till the end of the next packet WaitPacketHs lt pid gt received and compar
3. 3 20 6 Bit Stuffing Error In order to ensure adequate signal transitions bit stuffing is employed by the transmitting device when sending a USB packet A zero is inserted after every six consecutive ones in the data stream before the data is NRZI encoded If more than six consecutive ones are detected a Bit Stuffing Error is reported 3 20 7 Byte Error All packets must have an integral number of bytes If this is not the case a Byte Error is reported 3 20 8 Spurious Data If data is detected but doesn t begin with a synchronization pattern then the display will report Spurious Data 3 20 9 Both Lines High The data encoding scheme is such that the D and D lines should never both be high at the same time If this condition is encountered an error is reported 3 20 10 Spurious End of Packet An End of Packet condition should only appear at the end of a data packet If the condition appears at any other time it will be reported as an error User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 106 me USER MANUAL ELECTRONICS 3 21 Class Analysis Options 3 21 1 Registration The Class Analysis Options are supplied as software add ons for GraphicUSB The options are available for individual classes so you only need to purchase the functionality you actually require The options are provided in the form of 16 digit hexadecimal registration codes To enable a particular option first ensure
4. Packets ACKed Transactions NAkKed Transactions Frames Capture Duration Data Size Analyser FIFO Usage Add Comment O Insert Click Save to stop capturing and view the il results Click Restart to clear the events captured and start again Click Cancel to abandon the capture Restart Cancel To end capturing and display the data either click on SAVE in the Capture window or momentarily press the STOP button on the front panel Clicking RESTART will clear all the events so far and start again Clicking CANCEL will abandon the capture User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 41 me USER MANUAL ELECTRONICS 3 7 Device Information Files A potential limitation of a USB analyser is that correct USB protocol and class analysis depends on knowing basic information about the device which is only transferred on the bus during enumeration This may require any captures which are performed to include the enumeration phase perhaps by only plugging the device after the capture has started or by using a pre capture buffer as is possible with the Packet Master advanced triggering capability A capture started after enumeration has taken place lacks this information In order to overcome this problem Packet Master analysers have a special feature called Device Information files which essentially contain the enumeration data for a specific device GraphicUSB
5. Idle 6000000 Reset 20000 Idle 5000 SOFOn 0 4 14 3 2 Ending original B device to remove its pullup resistor Protocol data line pulse from B start of VBUS pulse from B A applies Vbus B applies pullup resistor Session starts B device requests a session from A device B device script session WaitSuspend WaitVbusOff Pullupoff Idle 600000 H Session Request Protocol PullupOn FULLSPEED S Idle 300000 Pullupoff Idle 300000 VbusOn Idle 300000 Vbusoff Idle 6000 WaitVbusOn PullupOn FULLSPEED i WaitReset User Manual Packet Master 2 07 detect end of session remove pullup resistor 5ms data line pulse 5ms Vbus pulse wait for Vbus from A device apply pullup resistor session starts Copyright 2006 2009 MQP Electronics Ltd 167 mgp USER MANUAL ELECTRONICS 4 14 4 Session Request Protocol High Speed 4 14 4 1 B device requests a session from A device A device script Ending original session Suspend 10 stop sending SOFs apply 15k pulldowns VbusOff end session WaitPullupoff wait for B device to remove its pullup resistor Session Request Protocol WaitPullupOn FULLSPEED data line pulse from B WaitPullupoff WaitVbusOn start of VBUS pulse from B VbusOn A applies Vbus WaitPullupOn FULLSPEED B applies pullup resis
6. 4 340 437 s ooo00001 957 65 us 3 2 2 Analysis and Data Panes By clicking on an event row in the event pane a complete analysis of the event is displayed in the analysis pane and the data content is shown in its entirety in the data pane Where appropriate any information selected in the analysis pane is highlighted in the data pane for easy identification All standard requests and descriptors are analysed in detail Any discrepancies are described Control Transfer Get String Descriptor 1 String descriptors use UNICODE encodings Field Value Meaning bLength Valid Length bDescriptorType String Descriptor Data Content User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 32 IO 5 P USER MANUAL ELECTRONICS 3 2 3 Timeline and Bandwidth Panes AC 202 226 Ls Control Transfer Addr Endp Data 34 bytes Status Pe 34 492 133 s Get String Descriptor 34 0 01 Ox0 22 03 55 00 53 00 42 00 OK 293 295 L 34 492 133 s gt SETUP 001 oxo 80 06 2203 0904FF OO ACK Event 293 SETUP Addr Endp CRC5 EOP IDLE 34 992 133 s gt 00000001 ep Tool w0 ox1b 2 00 us 2 83 us al E o Event 294 DATAO Data 8 bytes CRC16 EOP A A S x xi f us 34 492 159 gt 00000001 80 06 22 03 09 04 FF OO OxBB90 Max Event 295 Ls Syne TACK EOP IDLE Be 34 492 228 s 00000001 19 35 us Ty E 2 0 Bandwidth Utilisation H
7. Pin Signal Notes 1 D De glitched and synchronised with the 6OMHz clock FS and LS only 2 GND D De glitched and synchronised with the 6OMHz clock FS and LS only GND 5 RXVALID Indiates that a valid data byte has been received GND 7 RXACTIVE Indicates that a start of packet has been detected and that data is being received 8 GND 9 60 MHz Clock 10 GND User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 25 me USER MANUAL ELECTRONICS 2 9 Feature Connector USB500 AG in Generator Mode The signals available from the transceiver on the back panel connector are Pin Signal Notes 1 D De glitched and synchronised with the 6OMHz clock FS and LS only 2 GND D De glitched and synchronised with the 6OMHz clock FS and LS only 4 GND 5 TXACTIVE Indiates that a packet is being transmitted GND RXACTIVE Indicates that a start of packet has been detected and that data is being received 8 GND 9 60 MHz Clock 10 GND User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 26 me USER MANUAL ELECTRONICS 2 10 External Power Supply USB12 or USB480 The Packet Master normally derives its power from the Host computer s USB connection but may be powered externally This is not normally required but useful if the host won t configure a high power device The external supply must meet the following requirements
8. TRANSFERS KKK Control 15 Interrupt 2549 Isochronous o Bulk o aE mM l Ee TRANSACTIONS KKK lt d Normal Transactions 2724 Split Transactions o Setup Transactions 15 In Transactions 2697 Me Lu o Out Transactions 12 Ping Transactions 0 ETE BUS STATES EEERERRRERERR Deeet ene User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 36 me fre ELECTRONICS 3 5 Toolbars 3 5 1 File Functions Toolbar start Capture CO Open an existing Capture file Save the currently active Capture document Select Print Pane Show Hide Timeline Bandwidth t pe o Print the selected Pane i About GraphicUSB H Help on GraphicUSB mm Search Settings D Find First Find Previous Find Next d Find Last Goto Trigger Start Goto Trigger Stop Trigger Settings User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 37 me USER MANUAL ELECTRONICS S Compile Generator Script Run Generator Script User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 38 mig p USER MANUAL ELECTRONICS 3 5 2 View Filter Toolbar Min Show Top Level Events Only Show Start of Frame events H Show bus events gi Show Chirps Show Transactions in Control Transfer Show Packets Show NAKed Transactions D Show NYETed Transactions Cc Show Spurious Data Mox Show All Events Custom Filter Settings Vv Cu
9. mgp USER MANUAL ELECTRONICS 3 18 3 2 Class Specific Descriptors In some cases where class analysis options have been installed specific class descriptors are annotated e g ve HID Report Descriptor event number 6185 static const unsigned char descriptor6185 0x05 0x01 0x09 0x02 OxAl 0x01 0x09 0x01 OxAl 0x00 0x05 0x09 0x19 0x01 0x29 0x05 0x15 0x00 0x25 0x01 0x95 0x05 0x75 0x01 0x81 0x02 0x95 0x01 0x75 0 3 ve Usage Page Generic Desktop Controls s Usage Mouse Collection Application Usage Pointer Collection Physical Usage Page Button Usage Minimum 1 Usage Maximum 5 Logical Minimum 0 Logical Maximum 1 Report Count 5 Report Size 1 Input Data Variable Absolute Bit Field Report Count 1 Report Size 3 ar aid Arr Abee to T Field Other class descriptors can still be exported but without the comment annotation User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 101 mgp USER MANUAL ELECTRONICS 3 18 4 Exporting Data from a Specific Event With a capture document open select the event from which you wish to export the data by clicking on the event in the event pane making it the Current Event Then select the item Create Current Data File from the File menu The Export Current Event Data dialog will be displayed Export Current Event Data Sele
10. 5 127 195s 00000004 0 69 0x00 0 0 0 021015 us 0 52 us Event 80 DATA Data bytes SCT EOP IDLE 5 127 199 s oo000004 Ox48 FOxH000 0 15 us 0 44 usl Event 87 Syne JACK EOP IDLE 5 127202 s 00000001 981 44 us Show Packets Control Transfer Addr Endp Data 0 bytes Status Set Address Ox01 0 00 0x0 OK 5 126 195 SETUP Joo Oo 00 050100 00 00 00 OO ACK 35 37 5 127195 PIN oxo ox TY ACK Hide Packets User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 75 me USER MANUAL ELECTRONICS If packets have been filtered out then double clicking on a particular transaction will reveal the packets within it as shown below Control Transfer Addr Endp Data 18 bytes Status 5 166 196 s Get Device Descriptor Ox01 00 12 01 00 02 00 00 00 08 SETUP 001 0x0 80 06 00 01 00 00 12 00 ACK 131 133 IN fx o0 120100 02 00 00 00 os ACK Event 131 Syno IN Addr Endp CRCS EOP IDLE 5 167 195 s 00000001 0x89 0x04 oxo 0x10 0 15 us 0 54 us Event 132 DATAT Data bytes CRC16 EOP IDLE 5 167 199 s 00000001 12 01 00 02 00 00 00 03 0xE757 0 42 us Event 133 Syne PACK EOP IDLE 5 167 207 s 00000001 980 04 us 135 137 5 168 195 s IN Tool O0 D8 04000001 0001 02 ACK PIN oojoo 0001 ACK OUT o0 oo ACK Show Selected Packets User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 76 me USER MANUAL ELECTRONICS Show NAK
11. Data Only A useful option in the Export events dialog is Data Only Export Event Filtering From event fi to event 3601 All Events i b IV Hi IV IV Hi E IV si KE F Obey Custom Filter Plainhex Cformat Asmformat Binary file Export will generate a text file containing the capture events You may select which items to include in your Cancel export The filter options have been initially set according to the display filter options Selecting the Data Only option allows data as selected by the custom filter and the event range to be exported in a number of useful file formats 3 18 3 Exporting Descriptors 3 18 3 1 Standard Descriptors With a capture document open select the item Create Descriptor File from the File menu The Export Descriptor dialog will be displayed User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 98 me USER MANUAL ELECTRONICS Export Descriptor X Event Address m Descriptor Type OH MN b NNN N O m Configuration Descriptor String Descriptor index 238 Device Descriptor Device Descriptor String Descriptor index 0 String Descriptor index 2 String Descriptor index 0 T Export All Ce C format 0x12 Assembler format 12h Export will generate a text file containing the descriptor you select Cancel You may select the output format for this data Selec
12. Hide Bus States Hide Chirps Hide Transactions Show top level plus bus states Hide Packets HideNaks _ Showevewtina Hide NYETSs M Obey Custom Filter l Data Only Export will generate a text file containing the capture events You may select which items to include in your Cancel export The filter options have been initially set according to the display filter options OK Select the event range and the level of detail you wish to export then click on OK A typical output text file showing just top level events is shown below 3 742 754 LS Control Transfer Addr 00 Endp 0 Get Device Descriptor 12 01 10 0i 00 0O OO OS 62 OF O1 10 O1 00 Oi Oz oo Oi 3 773 991 LS Control Transfer dddr 00 Endp 0 Set Address Ox01 zero Data Bytes 3 836 513 LS Control Transfer Addr O01 Endp 0 Get Device Descriptor i 01 10 01 00 OO OO OG 62 OF O01 10 O1 00 Oi Oz oo Oi 3 836 515 LS Control Transfer dddr O01 Endp 0 Get configuration Descriptor 0S O2 22 OO O1 O1 OO 40 32 3 839 614 LS Control Transfer ddr 01 Endp 0 Get Configuration Descriptor 0S O2 22 00 01 01 00 40 32 09 04 OO O00 O1 03 Oi O2 00 09 21 10 O01 00 O1 422 34 00 OF O58 81 03 04 oo of 3 842 6553 LS Control Transfer ddr 01 Endp 0 Get String Deseriptor 236 oc O35 41 00 42 00 43 00 44 OO 41 OO User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 97 me USER MANUAL ELECTRONICS 3 18 2 Exporting Capture Events
13. Re apply Auto Assignments Correct class analysis requires access to the descriptors which are normally only available if the capture file includes the enumeration transfers You may force assumptions on Settable devices by selecting the device in the list on the left a suitable device information file from the list on the right and clicking Get Selected Assumption For more information about Device Info files press F1 Show this dialog automatically Cancel Done The assumption will be registered in the top list box as shown above Click on Done and the capture file will now reflect the assumption made You will not be allowed to apply an assumption to any device in the top list box whose status shows Fixed These are devices with known enumeration information User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 47 me USER MANUAL ELECTRONICS ca GraphicUSB Capture2 File Edit view Operations Window Help Kl Ki H E amp EN 4 4 d Vbus In Report 1438 1440 E Interrupt Transfer Addr Endp Data 3 byte 1 151 224 5 HID Report In 00 FE 02 1449 1451 Interrupt Transfer Addr Endp Data 3 byte 1 159 222 s HID Report in 00 FB 02 1460 1462 Interrupt Transfer Addr Endp Data 3 byte 1 167 226 s HID Repotin 01 0x1 00 FB 04 1471 1473 Interrupt Transfer Addr Endp Data 3 byte E HID Reportin 001 Ox1 00 FAO6 1 175 227 s 1482 14
14. Triggering ON BNC Connector OUTPUT Trigger Off Ik Save to File Load from File Module 1 Component or Sequence Manual D Court Iw Trigger Capture M BNCOutOn BNC Ouo M IT Reset2 TI Reset3 TI Reset4 Module 2 M Module 1 Satisfied Component or Sequence D Court E Trig re E e E BN Pr en I Seed T ja Module 3 I Module 2 Satisfied Component or Sequence D Court fi ja E E BNCOutOn E BN tT Sesai E is Module 4 I Module 3 Satisfied Component or Sequence D Count fi a re E e TEN E BNC out Off I E is T Triggering is controlled by up to four Trigger Modules Each module can be activated by a particular event or Sequence or a D counted quantity of this event or Sequence The modules may also require that the previous module is satisfied before checking for the specifed event The module may then cause output which is specified in the check boxes Preset trigger conditions are available by clicking the Presets button OK Cancel Help 3 9 12 BNC Connector The BNC connector can be used as an input to a Trigger Module to trigger or stop capture It can also be used as an output from a Trigger Module to trigger other test equipment Obviously it cannot be used for both input and output simultaneously and you will not be allowed to set up such a situation Both input and output can be set for level operation or pulsed operation and the polarity can be positive or negative Le
15. Triggering is controlled by up to four Trigger Modules Each module can be activated by a particular event or Sequence or a hi counted quantity of this event or Sequence The modules may also require that the previous module is satisfied before checking for the specifed event The module may then cause output which is specified in the check boxes Preset trigger conditions are available by clicking the Presets button OK Cancel Apply Help User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 58 me USER MANUAL ELECTRONICS 3 9 4 Sequences The second tab in the dialog allows up to four Sequences to be defined which can then be used as inputs to any of the four Trigger Modules A sequence is a set of events which must occur consecutively to satisfy the condition In the example below Sequence 1 has been defined as a token packet defined by Token Packet 1 see below followed by a data packet defined by Data Packet 1 see below followed by any event other than a Handshake packet This has the effect of the sequence being satisfied by an isochronous transaction Advanced Trigger Settings USB480 Sequence 1 Sequence 2 Event 1 Token Packet 1 X Event 1 Event 2 Data Packet 1 X Event 2 Event 3 Not Handshake Packet X Event 3 Event 4 i Event 4 Sequence 3 Sequence 4 Event 1 Event 1 Event 2 Event 2 Event 3 Event 3 Event 4 Event 4 i
16. me USER MANUAL ELECTRONICS add your first rule the filter will automatically be enabled though you can choose to disable it again To add a rule click on Add Rule This will display the following dialog Add Filter Rule 1 Address Endpoint Speed Device Address Endpoints From To IN OUT O h fFF hi Mo Ws vows All Vi jw 9 Mi jw 9 Iw 3 jw A Iw 3 MA None V3 MB v3 MB Iw A WC Iw A We V5 MD v5 jw D Iw EB jw E wb ME VF MF M7 MF Select an address or range of addresses to show or hide Optionally select specific endpoints in this address range to show or hide At least one endpoint must be selected Cancel ppl Help There are two tabs to select the conditions for your rule Both tabs can contribute to the rule if required The first tab defines device address and endpoint The default settings include all possible addresses and endpoints so if you do not make a change the rule will have no effect and you will not be allowed to create it Similarly you will not be able to generate a rule which excludes all events User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 80 me USER MANUAL ELECTRONICS As an example we specify here that we do not wish to see transactions using address 3 AND endpoint 1 in OR endpoint 2 out Add Filter Rule 1 Address Endpoint Speed Device Address Endpoints From To IN B hf h m a i a a a a zl OO OU P W
17. 3 Col 56 Correct any errors until the compilation is successful ca GraphicUSB _mouse_lIs mgen E File Edit view Operations Window Help Oe S nhera W CGH Sg vbus 4 93v 7 835mA Generator File originally exported from file mouse_ls mqu Device end packets were included as comments during export NaKed transactions were filtered out during export FileType MOPGEN 1 EmulationMode STANDARD ControlMode HOST Retries SAMEFRAME or NONE or NEXTFRAME VbhusoOn EJ Te iames Iae Ae TATION ET HA Compiling Max Compilation Complete 4700 bytes O error s O warning s For Help press F1 Ln 9 Col 42 User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 156 me USER MANUAL ELECTRONICS 4 11 Running the Generator Script Once you have successfully compiled the generator script with no errors it is time to run it in the generator 4 11 1 Different Computer Hosting Analyser Before running the generator script ensure that you have started capturing with the chosen analyser With the compiled script showing in the application window select menu item File Run or click on the Run icon in the toolbar el A dialog will appear showing progress of the emulation The Status window will describe the condition of the emulation which may have halted owing to an error or may be waiting for an event which does not occur Typically the run will be over very quickly Th
18. 4 Specifications USB500 AG sssccccccrenseeeceeeesnseeseeeneneesseees 23 2 5 Maximum Capture File SiZe 1 scccccccseesececeeeennsesseeenannesseees 24 User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 2 me USER MANUAL ELECTRONICS 26 ee 24 2 7 Feature Connector USB12 ccccccsseseseceeeennnseeseeeeannesssees 24 2 8 Feature Connector USB480 and USB500 AG in Analyser Mode sssccccccccennececeeennnnseeseeenanenseseneennnessesennasseseeesansnaees 25 2 9 Feature Connector USB500 AG in Generator Mode 26 2 10 External Power Supply USB12 or USB480 2 00 27 2 11 External Power Supply USB500 AG 27 2 12 Trigger Specification ccccccssesccceccnseseceeeeenneseeseesnnneseeees 28 2 13 Measurement Accuracy USB500 AG ees 29 ZNO let gtt 29 ing ogame ee EE 29 3 GRAPHICUSB SOFTWARE ANALYSER 30 3 1 E 30 32 Panos eea ee eee ee eee ee ees 31 9 21 Event PING agen e a OE E 31 3 2 2 Analysis and Data banes 32 3 2 3 Timeline and Bandwidth Panes 33 3 3 Pane PLOPeStieS 2 ccccccceccceccecennnseseeenanenenseseennenessesenaneseeeeeanes 35 3 3 1 Event Pane bropertes ENEE 35 3 3 2 Detail Pane Properties EEN 35 3 3 3 Data Pane Propetles gegen ge dSneEdeueteCeee eege tee Eben 35 3 3 4 Timeline Pane broperttes nr rr re 35 3 4 Capture Summer ee ENEE REENEN 36 39 TOONASE areca AAEE AAEE ARAE ESE 37 3 5 1 File Functions TOONS Al siccivvennsccsia
19. AAV is four hexadecimal characters defining the Yendor ID and PPPP is four hexadecimal characters defining the Product ID The file must be saved in the same directory as is specified in Edit Options File Locations Data Directory To use the vendor class analysis file the vendor class analysis Cancel option must be registered Notes for users with files generated in previous versions In previous versions of GraphicUSB this file had a txt extension however we now use an extension of mven Additionally a FileType MOPVEN 1 command is now required at the start of the file Otherwise the format has not changed The editor is now integrated with GraphicUSB so it is no longer necessary to use an external text editor On running the new GraphicUSB for the first time the application will offer to make these changes automatically for you The files can then be opened for editing if required in GraphicUSB by selecting menu item File Open and choosing Files of Type Vendor Files mven in the file select dialog Note also that the validation function now works on the open file displayed in the editing window rather than by locating the file on the User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 112 me USER MANUAL ELECTRONICS disk so the validation option is only available in the menu when the file is displayed User Manual Packet Master 2 07 Copyright 2006 2009 MQP
20. HIDE This assumes that a capture is in progress else an error message is displayed It will stop the capture in progress and save it to the file named in the Start Capture command 3 17 4 Display File WinExec c Program Files MQP Electronics GraphicUSB GraphicUSB TestCapt mqu SW SHOW This will display the captured file specified in a visible instance of GraphicUSB User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 95 me USER MANUAL ELECTRONICS 3 18 Export Functions GraphicUSB allows various types of information to be exported to text based formats for further analysis or processing by the user The following types of export are currently provided e Capture Event Information e Data from a specific event e Descriptors Typically the exported text will be displayed in the application window ready to be saved to a file using the usual File Save functions The exception is that when the exported file is defined as binary the file save dialog appears immediately and the file is not displayed in the application window 3 18 1 Exporting Capture Events With a capture document open select the item Create Events File from the File menu The Export dialog will be displayed User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 96 me USER MANUAL ELECTRONICS Export Event Filtering From event f to event 3601 All Events Hide SOFs
21. WaitResume the original high speed termination will automatically be re connected If the suspend occurs at the start of a transfer of control which is part of the Host Negotiation Protocol then the next command should be PullupOn FULLSPEED which has the effect of canceling the need to automatically return to high speed termination VbusOn Host VbusOfft Used for power control Device Used for SRP Vous pulsing by OTG B device WaitVbusOn Host WaitVbusOff Used by OTG A device to detect SRP Veus pulsing Device Used to detect when Veus is User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 141 me USER MANUAL ELECTRONICS available The PullupOn command may then be used WaitReset Device Only Waits for Reset persistence check period of 2 5us for full speed or low speed and 3 4ms for high speed PullupOn LOWSPEED Device Only PullupOn FULLSPEED Connects or disconnects 1 5k pullup PullupOff resistor PullupOff usually only used for OTG results in the data lines being floated which they will continue to do until the PullupOn command is encountered When used after WaitSuspend PullupOn FULLSPEED also has the effect of canceling the need to automatically return to high speed termination and is used as part of the Host Negotiation protocol WaitChirp Host or Device If host wait for end of K chirp If de
22. a Generator Script from Scratch An alternative to creating a generator file from a capture file is to start with a blank page and insert the script commands yourself This is made simpler by the availability of two command insertion dialogs Before entering commands you need to make a new blank script file Select menu item File New Select New Document Type Ze Generator Script C Text File C CFile Cancel C Asm File C Vendor Info File The only way to create a Capture file is to perform a capture The easiest way to make a new Generator file is to open a Capture file and select Menu File Create Generator File The best way to make a new Vendor file is Menu Operations Create Vendor File Template C files and ASM files are usually generated by opening a Capture file and selecting Menu File Create Descriptor File or Create current Data File The only way to make a new Device Info file is to open a Capture file and select Menu File Create Device Info File Select Generator Script and click on OK A new blank generator script file will open User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 133 mgp USER MANUAL ELECTRONICS ca GraphicUSB Generator1 E File Edit view Operations Window Help EIER OS a hn EEEE Vbus 4 93V 7 709mA S Generator Script File FileType MOPGEN 1 EmulationMode STANDARD ControlMode HOST
23. allows you to associate one or more particular device addresses within a capture with specified Device Information files allowing the usual better informed analysis to take place User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 42 me USER MANUAL ELECTRONICS 3 7 1 Creating a Device Information File In order to create a device information file start by performing a capture which includes the enumeration phase by only plugging in the device after the capture has been started Now with the capture showing in the GraphicUSB window select menu item File Create Device Info File Create Device Info File The following identified devices are accessed in this file Please pick the D device for which you wish to generate a Device Info File Addr From Evert ToEvent WID PID Description lt fileend gt 0603 6871 USB Mouse STD i 4 Device Info file is used to provide information when displaying a capture where the enumeration has not been included in the a capture The file is created from a file in which the enumeration was captured All the devices included in the capture are shown if you had more than one device involved you need to choose the one from which you wish to create the Device Info file Then click OK and the created file will appear in the GraphicUSB window User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 43 me USER MANUAL ELECTRONIC
24. button in the Capture window e A full analysis of the data captured will be displayed e Each new capture will create a new capture window To select the capture you wish to view click on Window on the menu bar User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 19 me USER MANUAL ELECTRONICS 1 9 Saving the Capture If you wish to keep the capture for future reference click on File Save on the menu bar or on the Save icon on the Tool Bar By default files will be saved in the folder specified in the Options Settings Window GraphicUSB files have the extension mqu User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 20 me USER MANUAL ELECTRONICS 1 10 Test Set Up Generator Can be same computer PC PC Host for Host for Generator Analyser USB500 AG Used As Generator USB500 AG Used As Analyser EE Recommended for voltage current measurement Generator Emulates Host This is how to connect the generator when emulating a host The analyser shown is marked USB500 AG but can in fact be any suitable analyser The PC which is hosting the generator can be the same as that hosting the analyser provided both are from the Packet Master series If the analyser in question is from a third party manufacturer then you should be cautious about performance when using the same PC we would recommend separate PCs in thi
25. for the GraphicUSB installation On 64 bit versions of Windows the pathname will be C Program Files x86 MQP Electronics GraphicUSB usb drivers 1 2 4 Updating the Software If at a later date you wish to make use of an update from our website Please follow the instructions below e Download the file e Run the downloaded exe file straight from your hard disk and follow the on screen instructions e The latest version of the software is available at http www mqp com We make frequent improvements and enhancements to our software so it is well worth checking on our website for new versions User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 10 me USER MANUAL ELECTRONICS 1 3 Sample Capture Files During installation of the software a number of sample capture files will be placed in the folder Samples in the application s data directory This is the default location when opening a file from the File menu The sample files have the extension mqu You may find it helpful to open one of these sample files to become familiar with the capabilities of GraphicUSB User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 11 mig p USER MANUAL ELECTRONICS 1 4 Front and Back Panels Packet Master USB12 e The Power Indicator illuminates when the Packet Master is powered and connected to the Host computer e The Activity indicator shows the presenc
26. functions we recommend Program Files Windows NT Accessories wordpad exe Similarly you may specify a picture viewer path for use with some functions We recommend Windowsexplorer exe OK Cancel opi Help A Picture Viewer may also be specified to assist with certain functions such as showing images transferred in Image Class devices User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 91 me USER MANUAL ELECTRONICS 3 16 2 Miscellaneous Settings e User warnings e g concerning the test set up may be re enabled e f several captures are to be done in a row without the need to save each capture then it can be beneficial to check the box Abandon previous file on new capture This will save RAM and make shutting down GraphicUSB quicker Option Settings File Locations Misc settings Capture Iw Abandon previous file on new capture Warnings hidden by clicking Do not show me this again can be restored by clicking Re enable all warnings Previous captures can be abandoned without asking by checking Abandon previous file on new capture Cancel Appl Help User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 92 me USER MANUAL ELECTRONICS 3 16 3 Capture The size of the Capture file may be minimized by filtering Start of Frame or Keep Alive events or NAKed transactions or NYETed transactions Please note that NAKed control t
27. is at the the bottom of the pane and looks like a hand you can drag the view left or right by holding the left mouse button down The left right cursor keys have the same effect 3 2 3 3 Selecting Events in the Timeline Bandwidth Pane If you click the left mouse button with the cursor further up the pane and looking like a pointer the nearest event to the left will be selected It is necessary to understand that the event selected will actually be the first event left of the selection point which has not been filtered out in the event pane For example if the event is a NAK packet and NAKed transfers are not currently being displayed then the first unfiltered transfer to the left will be selected If SOFs are currently filtered then they will not be selected by this method To be certain of identifying a particular packet first click the Max button to the left of the event pane The selected event in the event pane will always be the same as in the timeline pane User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 34 me USER MANUAL ELECTRONICS 3 3 Pane Properties If you right click in any of the panes an appropriate properties menu will appear This menu allows you to perform functions particularly relevant to the pane clicked on 3 3 1 Event Pane Properties Add Remove Bookmark Select event Properties Capture Summary Change Timeline view Ctrl Shift T Set Time Origin At Selection Ctr
28. out of sequence then an Invalid SOF error is reported It s likely that frame numbers will be out of sequence after a Reset or Suspend in these cases the error can be ignored 3 20 4 Invalid Control Transfer A Control transfer consists of a SETUP packet which defines a from host or to host direction followed by an optional set of Data Stage DATAO DATA1 packets in that direction completed by a Status Stage zero length DATA1 packet in the other direction If this sequence is not correct then an Invalid Control Transfer error is reported The correct sequence for the data toggle in a Control Transfer is that the SETUP should contain a DATAO packet the Data Stage should start with a DATA1 packet and then alternate and finally the Status Stage should be a zero length DATA1 packet If these polarities are not correct then an Invalid Control Transfer error is reported User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 105 me USER MANUAL ELECTRONICS 3 20 5 Invalid Transaction A transaction consists of a token packet SETUP IN OUT followed by a DATAO or DATA1 packet in the appropriate direction and completed by an ACK NAK or STALL Either the last or the last two packets may be missing If this sequence is not correct then an Invalid Transaction error is reported A SETUP transaction must contain a DATAO packet If this polarity is not correct then an Invalid Transaction error is reported
29. recommend that the Veus voltage and current measurements are specified as being read by the unit used as an analyser This eliminates any current drawn by downstream analyser units being included in the measurement If a USB500 AG is sometimes used as an analyser and sometimes as a generator there is the possibility that the host lead is left plugged into the front of the generator which is a bad idea as both the connected host and the generator will be attemping to source Veus To prevent this occurring the generator senses whether an external Vous is connected when it executes a ControlMode HOST User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 153 me USER MANUAL ELECTRONICS command and will alternately flash the Generator and Host indicators until the host connection is removed User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 154 me USER MANUAL ELECTRONICS Can be same computer PC PC Host for Host for Generator Analyser Generator USB500 AG USB500 AG Recommended Emulates Used As Used As for voltage Device Generator Analyser measurement A similar arrangement is used when the generator is to emulate a device If you are using the USB500 AG built in Vous measuring option note that only the voltage is meaningful as the current would be that drawn by the generator which is in any case an insignificantly small amount The Host unde
30. script which specifies each event in the interaction and the expected responses To simplify writing this script a capture file from any Packet Master analyser can be used to export a generator script Some feedback is available from the generator in the form of error messages when something unexpected in encountered However in general a separate USB analyser is required to examine precisely how the device responded to the emulated host commands There are a number of choices to be made in respect of generator operation 4 2 Generator Operation Host Device Emulation The generator can operate in host Control Mode or device Control Mode For On the Go devices it can alternate as required User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 128 me USER MANUAL ELECTRONICS 4 3 Generator Operation Retry When the generator acts as a host it can be operated in retry or non retry modes In non retry mode it can be instructed to output particular packets and wait for particular reply packets including NAK packets This can be useful when investigate detailed timings relating to NAKed transactions In retry mode waiting for NAK packets is not specified in the script Instead the finally expected packet ACK or DATAx is waited for and if the generator receives a NAK packet then it will automatically retry the transaction This mode is very useful because it relieves you from specifying the exa
31. stops SOFs being automatically sent It then waits for lt n gt ms before proceeding to the next command If in high speed it also removes the high speed termination and connects the 15k pull down resistors but the generator remembers that it was in high speed so that it can automatically restore the high speed termination if the next command is a Resume SuspendHnp OTG Host Only This has the effect of stopping sending SOFs If in high speed it also removes the high speed termination and connects the 15k pull down resistors Having done this it proceeds immediately to the next command The command should be used at the start of an exchange of control using Host Negotiation Protocol WaitResume Host Use before Resume command if device has remote wakeup Device Waits for host to perform a resume Resume n Host or Device Applies K for n ms followed by the appropriate condition for the speed and whether it is a host or a device User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 140 me USER MANUAL ELECTRONICS A host resume should have a period of at least 20 ms A device resume should have a period of 1 to 15 ms WaitSuspend Device Only Wait for activity to cease for 3 ms If originally in high speed it then removes the high speed termination and connects the 1 5k full speed termination resistor on D If the next command is Resume or
32. the analyser is connected to the host and then click in the menu bar on Edit Class Analysis Register and the following dialog will appear Optional Feature Registration Registered Class Analysis Options Iw Audio V HUB Iw Printer Iw Comms and CDC Iw Image l Smart Card Iw CDC Data Iw Mass Storage Iw Vendor Iw HID Iw TestandMeasurement jw Video F wireless Controller Refresh Miscellaneous Options Iw DevKit Serial Number Registration code 16 hex digits 30696102 D To register a new option check that the analyser is connected and that its serial number appears above Then enter the 16 digit registration code provided Exit Enter the registration code provided and the corresponding option should become checked Please store the registration code carefully in case you need to install the option on another host computer User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 107 mig p USER MANUAL ELECTRONICS 3 21 2 Analysis Overview The Class Analysis option you have enabled will enhance all captures performed on the analyser in question If you use the analyser on a different host remember to register the option on that computer as well The option will not allow the analysis of classes on captures performed with the analyser before the option was registered However the captured files can later be viewed in their analysed form on any computer with or without the analyser pres
33. wValueH desc wValueL desc User Manual Packet Mandatory Mandatory Mandatory Mandatory Master 2 07 MQPVEN 1 Number from 0x00 Oxff Number from 0x00 Oxff String to use as the name of this request Must be single line and preferably kept short String to use as the explanation of this request May be several lines of text e a Ee to use to name the purpose for this setup packet parameter field Preferably kept short Note that e g windexH is the high byte of wlindex to be used Must come first Identifies the filetype and version Specifies the Setup packet field which identifies this request Specifies the Setup packet field which identifies this EE EE SE si Appears in the Control transfer header of the event pane to name this request Also appears in the Setup transaction header table in the detail pane and used as a sub title in the detail pane for the Control transfer header Appears in the detail pane for the Control transfer header Appears in the detail pane table when a Setup transaction header is selected in the event pane Copyright 2006 2009 MQP Electronics Ltd 117 H ELECTRONICS wLength Min Optional wLength Max Optional 3 21 3 2 8 lt Endpoint gt lt Endpoint gt USER MANUAL instead of it when the parameter only occupies a single byte Minimum number of bytes which may be transferred in the Data Stage of the contr
34. will then be asked to reconnect the USB cable and then click OK User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 126 me USER MANUAL ELECTRONICS GraphicUSB A Re connect unit and click OK again On clicking OK the Update Analyser Firmware dialog will close leaving the Select dialog which should now show the new firmware version Select Unit s to Use Serial Number Function Current Few Latest Few USB12 10693138 Unitaney Curent Wheasurement From e SS Jol Bae Curren Measuren ent Fron Change Function f Advanced gt Analyser C Generator e You may select up to one Analyser and up to one Generator D simultaneously Some units have a dual function In this case to change the function of a unit first select just that one unit and click on the Change Function button Then if required select a unit with a different function The Advanced button allows access to firmware updating functions which should only be undertaken with caution User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 127 me USER MANUAL ELECTRONICS 4 GRAPHICUSB SOFTWARE GENERATOR 4 1 Introduction The USB500 AG is unique in the Packet Master series in that it can function as a USB Generator or Exerciser In this mode it can emulate host or device hardware or both alternately when developing for On The Go OTG The Generator is controlled by a user written
35. 06 2009 MQP Electronics Ltd 158 mgp USER MANUAL ELECTRONICS The capture dialog has its own button to start the generator Click this and the script run will be started The script dialog will arrange itself on the screen so that both dialogs are visible Event Capturing During Capture all events on the USB link will be saved to a buffer You may plug in or eenean unplug your device while capturing Click here to run traffic generator Generate Capture Filtering Enabled Current Address 0x3f2 SI 77777 Capture EE Highest Address 0x92d Buffer Ful Daa E eee Status Running Packets H 4814 Min ACKed Transactions 58 NAKed Transactions ES 0 comments during export during export Frames fo Capture Duration D 5 Data Size 286 694 Analyser FIFO Usage FSHeElwwte Add Comment i Insert Click Save to stop capturing and view the D results Click Restart to clear the events captured and start again Click Cancel to abandon the capture Restart Cancel Save Ln 6 Col 17 When the generator run has finished click on Exit and the generator dialog will close allowing you to use the capture dialog to save the resulting capture 4 12 Generator Error Messages Generator error messages are usually self explanatory User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 159 me USER MANUAL ELECTRONICS A mes
36. 2009 MQP Electronics Ltd 65 mgp USER MANUAL ELECTRONICS 3 9 10 Preset Trigger Settings In order to allow fast trigger setup a number of presets are provided to cover common triggering requirements to act as a starting point for more complex settings or simply to demonstrate how typical triggering requirements can be set up Set Trigger USB480 Preset Trigger Functions Description To trigger from any transaction means to trigger from any Token Packet or any Split Packet Trigger Module 1 will be set to trigger capture on Token Packet 1 and Trigger Module 2 will be set to trigger capture on Split Packet 1 Token Packet 1 will be set to allow any SETUP IN OUT or PING packet to cause a trigger and Split Packet 1 to allow any SPLIT packet to cause a trigger If you wish you may adjust the Token Packet 1 or Split Packet 1 settings to be more specific Preset trigger settings can be chosen from the Preset Trigger Functions box Each preset is described above After clicking on OK the settings Cancel will be made and can then be further refined if you require Available preset functions include e Triggering OFF e Manual Triggering e Trigger on any Transaction e Trigger on any Data Packet e Trigger on Bus Reset e Trigger on Preamble with Setup Transaction e Trigger on Isochronous In Transaction e Trigger on Ilsochronous Out Transaction e Trigger on In or Out Transaction User Manual Packet Maste
37. 693139 Analyser jeasurement Fro DEER GEES ang Advanced You may select up to one Analyser and up to one Generator simultaneously Some units have a dual function In this case to change the function of a unit first select just that one unit and click on the Change Function button Then if required select a unit with a different function The Advanced button allows access to firmware updating Cancel functions which should only be undertaken with caution Each connected unit will be displayed In the example above the current version in the unit is 0 00 and the latest available version is 0 01 Checking on our website will reveal that this update is required from GraphicUSB V3 00 onwards so we advise proceeding with the update Ensure that only the unit you wish to update is selected then click on the Advanced button to see the firmware update dialog User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 124 me USER MANUAL ELECTRONICS Update Analyser Firmware Model Serial Number Curr Vers Latest Vers USBI 2 1 0693138 VO 00 VOD WARNING Updating firmware carries a risk so you should only update if really necessary Check the firmware version log on our website for the versions and the reasons for updating Updating firmware must be allowed to run to completion with no interruption of power The process takes up to 20 seconds If the process does not complete then you will ne
38. 7332 I Control Transfer Addr Endp Data 0 bytes Status e 6 424 956 s Clear Port Feature Hub d OO O OK E 7337 7342 Control Transfer Addr Endp Data 0 bytes Status 6 425 459 s Clear Port Feature Hub d OO OK You can locate the next or the previous Bookmark by e clicking on the tool bar icons ZS or e Menu View Go to Next Bookmark or Go to Previous Bookmark respectively or e Using keyboard F2 or Shift F2 respectively User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 90 me USER MANUAL ELECTRONICS 3 15 Printing Any of the panes may be printed To select a pane to print click on that pane or click on the Select Print Pane icon on the tool bar until the required pane is indicated Then print in the usual way either from the file menu or using the print icon on the tool bar 3 16 Option Settings Select Options in the Edit menu to open the Option Settings Window 3 16 1 File Locations Use this to specify the locations of the Capture and temporary files Option Settings File Locations Misc settings Capture Data Directory C Documents and Settings Administrator 4pplication DatasGraphicUSBS Temporary File Directory C DOCUME 1T ADMINI 1SLOCALS 1 T emp d Picture Viewer Path c WINDOWS Sexplorer exe D Default file locations may be set here ou may also specify a text file editor path for use with some
39. 84 B Interrupt Transfer Addr Endp Data 3 byte 1 183 230 s HID Report In 00 FB 04 v For Help press F1 4036 events If you now save the capture file the assumption will be stored as part of the file so that the same assumption will automatically be made on the next opening of that file 3 7 3 Automatic Assumption Assignment If you are working on the same device or devices for some time and are not capturing enumeration then you may wish that the device assumption be made automatically You may assign up to two Device Info files to be automatically assigned Click on the Auto Edit Assign button in the Assumed Device IDs dialog and the auto assumption edit box appears User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 48 me USER MANUAL ELECTRONICS Edit Assumed Device Auto Assignment r Available Device Info Files YID PID Description USB Mouse EasyDisk 1GB Mini USB Hub 1 1 Unknown USB Mouse STD Be USB Serial Controller BU 353 Flash Disk w i Ment nt bdo te IICN Clear Assignments Up to 2 device info files can be auto assigned to devices of unknown identity in ascending address order This is useful if you frequently repeat the same capture on devices starting after enumeration Click on up to 2 files in the order required See Help for more detailed information Cancel Follow the instructions given to select up to two Devi
40. B Mouse EasyDisk 1GB Mini USB Hub 1 1 Unknown USB Mouse STD USB Serial Controller BU 353 Flash Disk eed ee eed ee ee P Automatically assign assumptions Edit Auto Assign Re apply Auto Assignments Correct class analysis requires access to the descriptors which are normally only available if the capture file includes the enumeration transfers You may force assumptions on Settable devices by selecting the device in the list on the left a suitable device information file from the list on the right and clicking Get Selected Assumption For more information about Device Info files press F1 Il Show this dialog automatically Cancel a Click on the unknown device in the top list box The lower list box will show you all the Device Info files you have previously created Click on the appropriate one and then on the Set Selected Assumption button User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 46 mgp USER MANUAL ELECTRONICS Assumed Device IDs Devices seen in capture file Add From Evert ToEvent WID PID Status Description e end 0603 6871 ASSUME USB Mouse STD Clear All Assumptions Clear Selected Assumption i m Available Device Info Files VID PID USB Mouse EasyDisk 1GB Mini USB Hub 1 1 Unknown USB Mouse STD USB Serial Controller BU 353 Flash Disk Mente ee bd ks LI ICDAH Automatically assign assumptions Edit Auto Assign
41. D 1 1 Introduction Packet Master is a series of non intrusive Hardware USB Bus Analysers The USB12 is intended for development of Low and Full Speed USB devices and hubs etc whilst the USB480 additionally supports High Speed Each analyser comes complete with our Windows application GraphicUSB for capturing and displaying every detail of the data interactions on a USB link The Packet Master USB500 AG provides the functionality of either a High Full Low Speed Analyser or a High Full Low Speed Generator In Generator mode it can emulate a host to exercise a device under development or it can emulate a device to exercise a host under development User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 8 me USER MANUAL ELECTRONICS 1 2 Installing the Software and Driver We suggest that you first install the software from the CD or download before plugging in your analyser This leads to the simplest procedure as the installer will also pre install the driver 1 2 1 Install the Software from CD e Insert the Installation disk into the CD drive e The disk should auto start e Follow the on screen instructions e lf the disk doesn t auto start then run the file GraphicUsb_ setup exe in the root directory of the CD 1 2 2 Installing the Driver e The first time you plug in the USB cable from your Packet Master analyser assuming that you have already installed the software as above Windows will
42. Electronics Ltd 113 mgp USER MANUAL ELECTRONICS On clicking the Create button the template file is generated Ga GraphicUSB vend1 2ab34cd File Edit View Operations Window Help a O Slane lt gt al SISle Oe B vbus 4 61v 52 08mA f f in this example we define 2 control requests and 1 endpoint i for our vendor device Widget lt Device gt VID 0x12 AaB PID 0x34cD lt Control Request gt bmRequest Type 0x40 bRequest 0x01 bRequest desc Widget Set Parameter bRequest text This requests the device to accept a specified parameter EE ians si amd noniam a dan n Ta smem mm innnan Tm mmin anam v d ax For Help press F1 Ln 1 Col 3 A Min pia d i B The vendor info file opens in an editing window Below it is an output pane used by the built in validation function User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 114 me USER MANUAL ELECTRONICS The template file will have this typical appearance in this example we define 2 control requests and 1 endpoint for our vendor device Widget FileType MQPV lt Device gt VID 0x12Al the Vendor ID PID 0x34C the Product ID lt Control Request gt bmRequestType 0x40 bRequest 0x01 bRequest desc Widget Set Parameter bRequest text This requests the device to accept a specified parameter nThe parameter value is included in the setup bytes windex desc Param
43. N OO III mm Oo oo o o 1111141171 wnn amp wie o m o a a EE et mO mof o o Select an address or range of addresses to show or hide Optionally select specific endpoints m this address range to show or hide At least one endpoint must be selected User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 81 me USER MANUAL ELECTRONICS When we click on OK we find that the rule has been added to the filter rules box the filter was also automatically enabled Custom Display Filter IV Enable Filter Edit Rul Show Unless D It Rule Filter Rules Delete Rule rou can create rules for showing or hiding events according to various criteria Choose Show Unless or Hide Unless to allow the simplest rules to achieve your requirement The elements within a tule are ANDed together and the rules are ORed together to determine whether an event should be shown or hidden OK User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 82 me USER MANUAL ELECTRONICS The other tab of the Add Rule dialog allows event speed to be included in the filter rule Add Filter Rule 1 Address Endpoint Speed Iw Low Speed Iw Full Speed 3 11 2 Custom Filter Enable Vv Custom Filter Enable The filter rules are global to the application and can quickly be turned on and off using the custom filter enable button The Menu item in the View Menu ca
44. No F An h Token Packet 4 M a M SETUP M IN M OUT M PING Device dd V A h Endpoint No F Any h The type device address and endpoint number of a token packet may be specifed The device address is a 2 character hexadecimal number max ZF and the endpoint number is a single character hexadecimal number Cancel Apply Help User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 61 USER MANUAL DO ELECTRONICS 3 9 6 Data Packets The fourth tab in the dialog allows up to four Data Packets to be defined which can then be used as inputs to any of the four Trigger Modules or any of the four sequences A data packet is a DATA DATA1 DATA2 or MDATA packet In the example below Data Packet 1 has been set to respond to any data packet containing 13 bytes and having the bytes 0x80 0x34 and 0x02 sequentially within its data field The mask settings can be used to ignore specific bits within a byte if required Advanced Trigger Settings USB480 Top Level Sequences Token Packets Data Packets Spit Packets Misc Events Settings Data Packet 1 M DATAT M MDATA M Ar M DATAO M DATAZ Mac Kb ER wn FFF ke Size Am Dm bytes Data Packet 3 Clear M DATAI M MDATA M An M DATAO Iw DATAZ Mach EE kees wen ks see Size Lo f bytes Each Data Packet component can specify a pattern of up to 8 bytes to match The Mask allows individual bits to be excluded Dat
45. RONICS 3 22 Vsus Current and Voltage Measurement USB500 AG The Packet Master USB500 AG has built in Vgus voltage and current measurement circuitry This is useful to give an early indication of hardware or software problems related to USB power supply and to indicate correct response to suspend conditions See Technical Data section for accuracy information GraphicUSB will continuously display the voltage and current values on its toolbar G3 GraphicUSB _mouse_ls mqu File Edit View Operations Window Help Seth A Ybus 4 617 52 08ma eas e246 ett Fpa e Control Transte Get Device M Ro F As GraphicUSB may operate two USB500 AG units at the same time one as a Generator and one as an Analyser it is necessary to specify which unit should provide the measurement This is done via the menu item Operations Select Analyser or Generator User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 121 me USER MANUAL ELECTRONICS Select Unit s to Use Serial Number Function USB5004G 30693904 Generator Change Function USB12 10693103 Analyser Cancel Voltage Current Measurement From C Analyser e Generator You may select up to one Analyser and up to one Generator simultaneously Some units have a dual function In this case to change the function of a unit first select just that one unit and click on the Change Function button Then if requ
46. S ca GraphicUSB dev06036871 file Edit view Operations Window Help esi B amp n h nw a vbus 0 00v 0 000uA Z Device Info File originally exported from file _mouse_1ls mqu FileType MOPDEV 1 lt Device gt VID 0x0603 PID 0x6871 Description USB Mouse STD lt Control Transfer gt Event Number 78 SetupData 0x00 0x05 0x01 0x00 Ox00 Ox00 Ox00 Ox00 SetAddress lt Coantral Transfer gt M TA i For Help press F1 Ln 1 Col Although the file can be edited there is usually no need to do so If it is necessary then you need to observe the strict syntax rules described below and to check the file using the built in validation function by selecting menu item Operations Validate Device Info File You now need to save this Device Info file It will be given its own filename and special extension which you must not change and be saved into the folder used by the application for its data files so you should accept the suggested file location In the example above the filename will be dev06036871 mdev User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 44 mgp USER MANUAL ELECTRONICS 3 7 2 Using a Device Information File Without a Device Info file the displayed capture would appear like this ca GraphicUSB Capture2 File Edit View Operations Window Help 0 SE t OS ah na A Vbus 1438 1440 E Unknown Type Tra
47. SC Ee e KEE 105 3 20 37 Invalid SOF TT 105 3 20 4 Invalid Control Transfer 105 3 20 5 Invalid Transachon renn enne rennene 106 3 20 6 Bit Stuffing eebe 106 3 20 7 Byte EE 106 User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 5 me USER MANUAL ELECTRONICS 3 20 8 Spurious Data ebenigeggee eege Ee 106 3 20 9 Both Lines Klee ceztosccncnt tcctebeneseasanecddsdeesecesdidecddesansc 106 3 20 10 Spurious End of backet 106 3 21 Class Analysis Options 1 cccccccssssesseeeeenneeeseeeensnesseeees 107 S212 WREGISU ANON ices era aaas 107 3 21 2 Analysis Uverview EEN 108 3 21 3 Vendor Class Analysis NEE 111 3 22 Veus Current and Voltage Measurement USB500 AG 121 3 23 Firmware Updates 221ccccccceesececeeeenneseeceeeensneseeeenenneessees 123 4 GRAPHICUSB SOFTWARE GENERATOR 128 4 1 Introduction sicsasschesssseeceedsscekteiewuauttcacesnmsasiabesesesencuibiababaaraucts 128 4 2 Generator Operation Host Device Emulation 128 4 3 Generator Operation Retr y ccccccccccccccssnssseseeenennneneeeeees 129 4 4 Creating a Generator Script from a Capture file 129 d Creating a Generator Script from Scratch seess 133 dp Generator Script Language Commands ccccce1seeeeeee 138 4 7 Generator Script Language Pre defined Values 147 d Generator Script Language Syntax Rules seess 150 4 8 1 Command Geouence EEN 150 4 8 2 Case SSNS E 150 4 8 3 Comma
48. Sequence Spit Packet 1 DI Count fi M Trigger Capture Stop Capture D BNCOutOn BNCOutOf Reset D Reset2 IT Reset3 Reset 4 r Module 3 Module 2 Satisfied Component or Sequence J D Count fi F Trigger Capture F Stop Capture J BNC Out On T BNCOutOf M Reset TT Reset2 M Reset3 F Reset4 r Module 4 I7 Module 3 Satisfied Component or Sequence D Count fi VE Trigger Capture F Stop Capture BNC GutGn P BNC GutOf I Reseti F Reset2 M Resets M Reset 4 Triggering is controlled by up to four Trigger Modules Each module can be activated by a particular event or Sequence or a hi counted quantity of this event or Sequence The modules may also require that the previous module is satisfied before checking for the specifed event The module may then cause output which is specified in the check boxes Preset trigger conditions are available by clicking the Presets button User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 56 me USER MANUAL ELECTRONICS Triggering is controlled by up to four Modules each of which can be activated by a user defined event or sequence of events or a counted number of such events or sequences Each module can result in a number of possible outcomes such as triggering capture stopping capture producing an output on the BNC connector or resetting the count on any of the four modules To allow more complex trigger co
49. Sequences are events which must occur one after another to satisfy the condition for example the packets of a transaction Cancel Help User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 59 me USER MANUAL ELECTRONICS Sequences are particularly useful for defining specific transactions Each packet of a SETUP IN OUT PING or SPLIT transaction can be defined in more or less detail Be aware that the packet PRE in low speed transactions counts as a separate event so take care when specifying sequences for LS devices User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 60 USER MANUAL DO ELECTRONICS 3 9 5 Token Packets The third tab in the dialog allows up to four Token Packets to be defined which can then be used as inputs to any of the four Trigger Modules or any of the four sequences A token packet is a SETUP IN OUT or PING packet In the example below Token Packet 1 has been set to respond to IN packets to device address 2 on any endpoint Advanced Trigger Settings USB480 Top Level Sequences Token Packets Data Packets Split Packets Misc Events Settings Token Packet 1 J SETUP Iv IN M OUT PING DeviceAddr Any 2 h Endpoint No W Any h Token Packet 3 F aw M SETUP WIN OUT PING Device Addr V Any h Endpoint No F Any h Token Packet 2 M Ans M SETUP M IN Iw OUT V PING Device dd V 4 h Endpoint
50. a Packet 2 Clear M DATAT M MDATA Mach Es eis e Mask FF foo foo joo foo foo foo foo Sie V Any bytes Clear M DATAI M MDATA M Ar MV DATAO M DATAZ Data Packet 4 Vv Iw DATAO M DATA2 wn ses or wn ke o oo or Size V Any 0 bytes from the test You can also specify the length of the data field which will result in a match OK Cancel Appl Help User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 62 me USER MANUAL ELECTRONICS 3 9 7 Split Packets The fifth tab in the dialog allows up to four Split Packets to be defined which can then be used as inputs to any of the four Trigger Modules or any of the four sequences In the example below Split Packet 1 has been set to respond to any Start Split packet intended for device address 3 Advanced Trigger Settings USB480 Top Level Sequences Token Packets Data Packets Split Packets Misc Events Settings Split Packet 1 Split Packet 2 Device Addr J Any 3 h Device Addr Port E Any h Port SC M Any 0 sc 5 So 5 E VV Any E ET VV Am ET a Ay RW a h a Ka a4 Hill Split Packet 3 Device Addr Port GC 5 ET r Split Packet 4 Device Addr Pot sc 5 E ET Sy aa 90 d xI THT aI The fields of the split packet may be specifed by entering values into the appropriate boxes The device address and port must be entered in hexadecim
51. al format Cancel Apply Help User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 63 me USER MANUAL ELECTRONICS 3 9 8 Miscellaneous Events The fifth tab in the dialog allows an Error Condition and a Start of Frame Packet to be defined which can then be used as inputs to any of the four Trigger Modules or any of the four sequences In the example below Error Condition has been set to respond to any any of the detectable errors and SOF Packet 1 has been set to respond to a SOF packet having the frame number Ox7FF Other Components available as inputs to any of the four Trigger Modules or any of the four sequences are also listed for reference Advanced Trigger Settings USB480 Top Level Sequences Token Packets Data Packets Split Packets Misc Events Settings Error Condition Other Components ACK Packet Bus Reset Vbus Off CRC NAK Packet Suspend Ybus On PID STALL Packet Resume Data Line Low NYET Packet Keep Alive Data Line High Byte Error Not a Handshake Packet Chirp Both Lines High ERR Packet High Speed Handshake Succeeds Bit Stuff PRE Packet High Speed Handshake Fails Spurious Data SOF Packet SOF Packet 1 Frame Number IT Am 7FFL h The error conditions included in the Error Condition component can be specified here The Start of Frame component can specify which frame number causes the trigger Other available components are listed for referen
52. automatically complete the driver installation and inform you that it completed successfully On XP the Found new Hardware Wizard will appear Answer questions as follows Q Can Windows connect to Windows Update to search for software A Not this time Q What do you want the wizard to do A Install the software automatically On Vista the process will proceed without intervention e f you have not installed the application Windows will start the Found new Hardware wizard If it asks to search Windows Update select No not this time e Ensure that you have the Installation CD in a CD drive if the CD auto runs and starts the GraphicUSB installation screen then click Exit to leave it before continuing with the driver installation e For your information If the CD drive is drive D the driver files are located in D drivers and the installation file is called mqpuba inf User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 9 me USER MANUAL ELECTRONICS 1 2 3 Updating the Driver e lf there is a requirement to update the USB Driver for the Packet Master analyser it will automatically be updated when you install the new version of the application See the details above for differences between XP and Vista For your information the driver package is located in C Program Files MQP Electronics GraphicUSB usb drivers Assuming a default location
53. ce Cancel Help User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 64 me USER MANUAL ELECTRONICS 3 9 9 Other Settings The sixth tab in the dialog allows The BNC Connector options and the size of the Pre Trigger Buffer to be defined In the example below the available BNC as Output settings are being displayed BNC as Input has similar options The Pre Trigger Buffer captures a number of bytes before the trigger condition is satisfied as well as the bytes captured after the trigger point The actual size of this buffer can be defined here Advanced Trigger Settings USB480 Top Level Sequences Token Packets Data Packets Split Packets Misc Events Settings BNC Connector Options Pre T rigger Buffer BNC s Input Level Operated Polarity Inverted e BNC s Output Level Output Polarity Normal D Level Output Polarity Normal Level Output Polarity Inverted Pulse Output Polarity Normal Pulse Output Polarity Inverted Buffer Size 4M The BNC Connector options define the Input and Output characteristics Other settings determine which of these is used The input or output operation may be either level or pulse and the polarity may also be chosen You can select the size of the pre trigger buffer here This determines how many bytes are captured before the trigger point occurs Cancel Help User Manual Packet Master 2 07 Copyright 2006
54. ce Info files to assume Back in the Assumed Device IDs dialog make sure that the Automatically Assign Devices checkbox is checked The assumption will be applied to unknown devices in the capture file in order of ascending address User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 49 me USER MANUAL ELECTRONICS 3 7 4 Device Information File Syntax Rules 3 7 4 1 File Syntax 3 7 4 1 1 Comments A comment is introduced by the pair of characters Everything to the right on the same line is part of the comment and ignored 3 7 4 1 2 Indentation The example file uses tabbed indentation to emphasise the structure of the syntax but it is not necessary to do this 3 7 4 1 3 Numbers Numerical values may be expressed in decimal or in hexadecimal introduced by the prefix 0x So 10 and Ox0a represent the same value 3 7 4 1 4 Strings String values must be enclosed in double quote marks e g this is a string Any string must fit on one line and may not include a line break 3 7 4 1 5 FileType The first statement in the file must be FileType E g FileType MQPDEV 1 Type must be MQPDEV and version must be 1 as shown 3 7 4 1 6 lt Device gt lt Device gt The whole file other than the FileType is the description of a device and so must start with the lt Device gt tag and end with lt Device gt 3 7 4 1 7 VID PID Following the lt Device gt ta
55. cs Ltd 28 me USER MANUAL ELECTRONICS 2 13 Measurement Accuracy USB500 AG 2 13 1 Voltage Characteristic Value Measurement Range 0 to 6 25V Accuracy 2 20mV 2 13 2 Current Characteristic Value Condition Measurement Range _ 0 to 600mA Accuracy 2 1 6 mA gt 12 25mA Accuracy 2 32 UA lt 12 25mA User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 29 DO ELECTRONICS USER MANUAL 3 GraphicUSB SOFTWARE ANALYSER 3 1 Overview The Packet Master Analysers owe a large part of their functionality to the GraphicUSB application which is supplied with the unit A simple yet information rich display allows you to view every detail of a capture This shows the organization of the screen after a typical capture Fitter out less significant events Precise p timing for every event Custom filter Bookmarks for fast event location Bandwidth Usage at any point in time Timeline view pinpoints Bb every packet User Manual Packet Master 2 07 Event pane reveak every detail of data and timing which occurs on the bus You see exactly what happened in graphic detail Dm x di S z ll a Dm D E Any selected event is thoroughly analysed in the VBUS monitor display details pane Highlighting an item locates its data in the data Y pane below 4 as Graphkt SA mouse We mau
56. ct timing and quantity of NAKed operations which with some devices may vary from occasion to occasion 4 4 Creating a Generator Script from a Capture file The quickest way to produce a valid generator script is to start from a Capture file mqu previously created by a Packet Master analyser and which represents the sequence of operations which you want to test It might for example have been captured from a working example of a device whose performance you wish to emulate in a device under development With the capture file displayed in GraphicUSB select the menu item File Create Generator File User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 129 me USER MANUAL ELECTRONICS Export Generator File From event to event 7883 All Events Initially Emulate Host C Initially Emulate Device Iw Include Other End Packets as Comments Include N Ked Transactions Iw Include Transfer Descriptions as Comments F Use Original Frame Numbers D Export will create a text file containing the events required for a Generator File You may select which items to include in your export You have the option here of selecting the range of events which you want to turn into a generator script file or simply by default select all events from the capture file Next you should specify which side of the link you wish to emulate host or device There is an option to include or not the events which occur
57. ction e Fomet All data from this event C format 0x12 i Assembler format 12h Plain Hex C Interpret as ASCII Text C Binary Options Iw Comment with ASCII Export will generate a text file containing the current event data You may select Cancel the output format for this data Select the format in which you wish to export the data When you have made your selection click on OK and the text file will be displayed ready for you to edit or save to your chosen location If a binary format is selected you will be invited to choose the name and location of the exported file An example text file is shown below OxEZ 0x00 OxE2 Ox00 OXEA Ox00 OxEa Ox0O0 OxED Ox00 OxED OxO0 OXEA Ox00 OxEa Ox0O0 OxDC Ox00 OxDC Depp Oxc2 Depp oxcz oxoo Ox9c 0x00 Ox9C OxO0 Ox6Cc Ox00 Ox6c Ox0O0 0x34 0x00 0x34 Depp OxF6 OxFF OxF6 OxFF OxB2 OxFF OxB2 OxFF Ox6D OxFF Ox6D OxFF Ox2C OxFF Ox2C OxFF OxFO OxFE OxFO OxFE OxBA OxFE OxBA OxFE 0x89 OxFE Ox89 OxFE 0x60 OxFE Ox60 DPE 0x41 OxFE 0x41 OxFE Ox2D OxFE Ox2D 9 7 3 OxFE Or zm Lomas User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 102 mgp USER MANUAL ELECTRONICS 3 19 Text Editing 3 19 1 Introduction A number of GraphicUSB document types are basically normal text files sometimes with special extensions These include e exported event file txt e exported data file
58. d later frames NEXTFRAME Retries Automatic retries of NAKed transactions will be retried only once in the next and later frames ACK SendPacketLs Specifies the binary value of NAK SendPacketFs the PID in question This STALL SendPacketHs includes the PID invert check bits ready for transmission in a NYET packet DATAO DATAI User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 147 mig p USER MANUAL ELECTRONICS DATA2 MDATA IN OUT SETUP ERR SPLIT PING ACK WaitPacketLs Specifies the particular PID NAK WaitPacketFs to wait for Multiple alternative STALL WaitPacketus PIDs may be specified separated by symbols DATAO DATA1 DATA2 MDATA IN OUT SETUP ERR SPLIT PING NORETRY WaitPacketLs An optional parameter in a WaitPacketFrs WaitPacketLs WaitPacketFs WaitPacketus WaitPacketHs command Must appear between the command keyword and the PID or PIDs It prevents retries for this one command even though retries are enabled User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 148 me ore ELECTRONICS CRCL6L SendPacketLs These specify the two bytes CRC16H SendPacketFs ofa 16 bit CRC They are SendPacketHs included in data packets to allow the compiler to insert the correct crc values rather than the user having to calculate them They are only guaranteed to co
59. dshake Packet any event other than ACK NAK STALL or NYET packet e ERR Packet e PRE Packet e Specified SOF Packet e Reserved PID Packet e Bus Reset e Suspend e Resume e HS Handshake OK e HS Handshake Fail e Chirp e Keep Alive e Data Line High e Data Line Low e Vbus On e Vbus Off e Specified Error Condition e Any of four sequences of up to four of the above events occurring consecutively e A counted quantity up to of any of 65535 of any of the above e A set of up to four of any of the above which occur in a particular order though not necessarily consecutively User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 55 me USER MANUAL ELECTRONICS 3 9 3 Modules The Packet Master USB480 is provided with an advanced trigger capability which is controlled from the Trigger Dialog Select Menu Operations Trigger Setting or the toolbar icon The dialog which appears consists of seven tabbed pages The main page Top Level appears first Advanced Trigger Settings USB480 Top Level Sequences Token Packets Data Packets Split Packets Misc Events Settings Triggering ON BNC Connector OUTPUT Trigger Off i JJ Save to File Load from File m Module 1 3 Component or Sequence Token Packet 1 D Count fi jw Trigger Capture Io D BNCOutOn BNCOutOff Reset D Reset2 Reset3 Reset 4 gt Module 2 T Module 1 Satisfied Component or
60. e Host computer can handle Check that the Host computer has a High Speed USB connection and is sufficiently powerful A test set up using two computers is preferable The data captured contains a large number of CRC or other errors Check the cabling between the Packet Master and the device under test and to the Host under test The cabling should be kept as short as possible with the total length of cable not exceeding 4 metres The data captured just contains a Plugged In message and a Start of Reset message This may happen if after starting capture a high speed device is plugged into the Packet Master USB12 which does not handle high speed The data captured contains a large number of Spurious Data or Both Lines High errors This may be the result of using excessively long cables in the test setup or perhaps trying to analyse a high speed device with the Packet Master USB12 An alternative possibility which we have seen on some non approved devices is that the designer has incorporated reactive elements into the data lines such that on the bus itself the voltage waveform is not readable A quick check with an oscilloscope will confirm this situation as the data lines will not show a clean square appearance but rather mostly ringing shapes One solution to devices of this type is to view their data upstream of a Full Speed Hub User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 170
61. e USER MANUAL ELECTRONICS 3 12 5 Error Search Errors such as Invalid PID Invalid CRC etc may be found by selecting the appropriate boxes A more detailed explanation of these errors is given in the Errors Chapter Search Settings M D D m E S User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 88 me USER MANUAL ELECTRONICS 3 13 Multiple Event Headers Numerous consecutive Start of Frame packets or Keep Alive events make the display difficult to read GraphicUSB inserts multiple Event Headers before such sequences The packets can be hidden by clicking on the Show Packets button with the multiple Events Header still being visible The multiple Events Headers can be hidden by clicking on the Show SOFs button The example below shows 41 SOF s grouped together Event 6 L Syne SOF Frame CRCS EOP IDLE 5 046 177 s 00000001 0x196 Ox1D 0 15 us 997 29 us Event 7 Sync SOF Frame CRCS5 EOP IDLE 5 047 177 s oo000001 0x197 997 27 us Event 8 L Sync SOF Frame CRC5 EOP IDLE 5 048 177 s oo000001 0x198 003 0 17 us 997 27 us Show SOF Packets 5 046 177 s START OF FRAME Hide SOF Packets 3 14 Bookmarks A bookmark allows you to mark an event of interest allowing you to locate it quickly when it is not showing in the window You can add a Bookmark to any event in the display by any of the following methods e Click on the eve
62. e a sixteen bit CRC e End of Packet EOP An EOP is made up of a single ended zero for approximately two bit times followed by a J state The time shown is the length of the single ended zero For High Speed an EOP is signalled by a byte of 01111111 which contains a deliberate bit stuffing error e Finally the idle time before the next event 0 022 248 5 Pin ooo Event 24 Syne N aoa Ener cor DS 0 022 248 s 00000004 0 69 0 04 Ox1 0 08 10 15 us 0 46 us Event 25 Syne NAK EOP IDLE 0 022 251 s_ ooo00004 Ox5A 0 15 el 980 27 us An error e g an incorrect CRC is indicated by the appropriate field being highlighted in red A field highlighted in orange indicates a potential problem or warning User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 31 me USER MANUAL ELECTRONICS This view of a GraphicUSB capture shows data being transferred at two different speeds on the same link Each packet is preceded by a coloured marker indicating Full Speed or Low Speed This makes the function of the PREAMBLE packet very clear Notice also the detailed timing information for Hub Setup time End of Packet duration and IDLE state time 2969 2970 Ls 4 340 410 s eT Nn oeoa O O Event 2969 L Sync PREJ Hub suf LS Sync IN Addr Endp CRCS EOP IDLE 4 340 410 s 00000004 gt 00000001 0 69 0 03 0x1 oxic 2 50 us Event 2970 LS Syne NAK EOP IDLE
63. e of data exchanges The indicator flashes once for each DATAO DATA1 or SETUP packet e Capture Start and Capture Stop buttons control the capturing of USB data and the Capture Indicator shows when capturing is in progress e The USB through connectors are used for connection to the Host and device under test User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 12 mig p USER MANUAL ELECTRONICS e The Packet Master is normally USB Bus Powered for convenience of use e An optional external power input is provided this is not normally required but useful if the host won t configure a high power device e A High Speed USB 480 Mbit s provides the connection to the Host PC e A 10 pin Feature connector provides signals for an oscilloscope or logic analyser User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 13 me USER MANUAL ELECTRONICS 1 5 Front and Back Panels Packet Master USB480 The Power Indicator illuminates when the Packet Master is powered and connected to the Host computer The Activity indicator shows the presence of data exchanges The indicator flashes once for each DATAO DATA1 or SETUP packet The Trigger indicator shows whether the hardware trigger is enabled and whether it is an input red or an output green Capture Start and Capture Stop buttons control the capturing of USB data and the Capture Indicator shows when capturing is i
64. e script may have hung up waiting for a particular event or may have completed After clicking on Exit you will see the script displayed showing the location reached in the emulation After a run you should stop the capture on the associated analyser Traffic Generator Current Address 0x3f2 Highest Address 0x92d Progress Status Waiting for WaitPacket Exit User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 157 me USER MANUAL ELECTRONICS 4 11 2 Same Computer Hosting Analyser It is possible for GraphicUSB to control both generator and analyser from the same computer You should proceed as described above for separate computers This time however before starting to run the script click on the Capture icon The capture progress dialog will open Event Capturing During Capture all events on the USB link will be saved to a buffer ou may plug in or unplug your device while capturing Click here to run traffic generation Generate Capture Filtering Enabled Gi Capture Ki Buffer Full CH Device plug in not detected Packets 0 ACKed Transactions NAKed Transactions Frames Capture Duration Data Size Add Comment PO Insert Click Save to stop capturing and view the D results Click Restart to clear the events captured and start again Click Cancel to abandon the capture Restart Cancel User Manual Packet Master 2 07 Copyright 20
65. e the PID with the one specified If no match the generator stops and displays a warning message If device ignore SOFs If you wish to wait a number of alternative PIDs then the PIDs in question are listed between or symbols e g WaitPacketLs DATAO DATA1 If RETRIES are enabled then if NAK is received instead of the awaited PID the transaction will automatically be retried from the associated SETUP IN or OUT In appropriate cases only this also applies to received NYET packets Unplug Device Only Simulates unplugging by disconnecting any termination conditions WaitUnplug Host Only Waits for device to be unplugged If the link is full speed this command will stop the automatic sending of SOFs and if low speed stops the automatic sending of Keep Alives At high speed SOFs are not stopped as they are used as the mechanism for detecting unplugging User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 145 me USER MANUAL ELECTRONICS SetCount0 lt n gt Host or Device SetCountl lt n gt f SetCount2 lt n gt Counters are available to perform SetCount3 lt n gt loops Each counter may be set to a value of 1 to 65535 and used in conjunction with the DJNZCountn commands SetCount lt n gt Host or Device This command is now deprecated but is still valid having exactly t
66. ed to return the analyser to us for re programming Please follow the instructions carefully to avoid problems After programming you will be prompted to unplug the analyser Cancel It is important to follow the instructions very carefully step by step First click on the Update Firmware button The progress of the update process which takes around 20 seconds will be indicated on the progress bar User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 125 mgp USER MANUAL ELECTRONICS Update Analyser Firmware Model Serial Number Curr Vers Latest Vers USB1 2 q 0693138 vO 00 0 01 WARNING Updating firmware carries a risk so you should only update if really necessary Check the firmware version log on our website for the versions and the reasons for updating Updating firmware must be allowed to run to completion with no interruption of power The process takes up to 20 seconds If the process does not complete then you will need to return the analyser to us for re programming Please follow the instructions carefully to avoid problems After programming you will be prompted to unplug the analyser BRRRRRHSBEDRRBRRREERRREERRR Cancel When updating is complete you will be requested to unplug any connections to the analyser and then click OK GraphicUSB Successful download Please unplug the USB cable AND any external power supply From the unit THEN click OK You
67. ent A typical class analysis example is shown below User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 108 mgp USER MANUAL ELECTRONICS Control Transfer Get HID Report Descriptor Meaning Value Usage Page Generic Desktop Controls Jm o Usage Pointer Jom Usage Page Button Jm 09 Usage Minimum 6 19 ol Logical Minimum a Is 00 Report Count Jee oe Report Count Je ol _Input Constant Array Absolute Bit Field 81 o _Usage Page Generic Desktop Controls 05 01 Logical Minimum 127 Is 81 ReportCount 3 Je oa Input Data Variable Absolute Bit Field This shows a HID Report Descriptor and below is the result of parsing it User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 109 me USER MANUAL ELECTRONICS Input Report Each transfer of a HID report is also analysed as follows Interrupt Transfer Device To Host This is a HID IN report An analysis of the report contents appears below In Report Data Content OU FB FF OO User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 110 me USER MANUAL ELECTRONICS 3 21 3 Vendor Class Analysis 3 21 3 1 Introduction Unlike other USB classes Vendor Class does not have a predetermined specification The class is made up of whatever control requests and data transfer types a vendor finds useful For this reason it is n
68. equired Some chips have been known to wait only 50us To avoid such problems we recommend always plugging the host connection into the analyser first and using the other connection to the device to control the plugging in and plugging out events If the message Device plug in not detected is showing in the capture window then you should remember that the analyser has to have seen a high speed device being plugged in even if it is before a User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 171 me USER MANUAL ELECTRONICS capture is started in order to follow the transition to high speed If this does not happen the analyser will still be monitoring for low full speed signals and not see the high speed traffic Simply unplug and replug the device and remember in future not to plug the device into the analyser until the analyser is powered up The generator is alternately flashing the Generator and Host indicators You have a cable plugged in the front of the generator from a host supplying Vgus The flashing is warning you not to continue until you unplug this connection as the generator will be providing its own Vous supply on the same wire which could result in damage User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 172 me USER MANUAL ELECTRONICS 6 WARRANTY 6 1 Warranty MQP Electronics guarantees that its products are free from defects in ma
69. ernative type of Generator Script has Retries NONE and includes all the NAKs precisely Running this kind of script will depend on an exact reproduction of the original responses from the device and in the case of a manually moved mouse would not be very useful It would be more appropriate if the device behaviour was entirely self determined The message is to use scripts with care and not depend on lengthy automatically generated scripts but rather to use those as a guide and build the script you use section by section treating each device on its merits User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 162 me USER MANUAL ELECTRONICS 4 14 Generator Scripts For On the Go The automatic generation of Generator Scripts from capture files may not produce the desired results when OTG is involved We offer the following sequences for the testing of OTG protocols 4 14 1 Host Negotiation Protocol Full Speed 4 14 1 1 A device transfers control to B device A device script Host Negotiation Protocol A device has sent Set Feature command to enable the B device for HNP Suspendhnp WaitPullupoff stop sending SOFs apply 15k pulldowns wait for B device to remove its pullup resistor ControlMode DEVICE A becomes the device floats data lines Idle 90000 1 5ms must be less than 3ms PullupOn FULLSPEED and connects its pullup WaitR
70. eset B device has become Host wait for it Ne Ne Ne Ne Ne Ne Ne oe to reset the bus 4 14 1 2 A device transfers control to B device B device script G Host Negotiation Protocol WaitSuspend wait for A device to suspends the bus Idle 12000000 Pullupoff B device removes pullup resistor ControlMode HOST WaitPullupOn FULLSPEED and becomes host applying 15k pulldowns wait for A device to connect pullup and become device Ne Ne Ne Ne Idle 12000000 Reset 20000 SOFOn 0 SOFs 20 User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 163 ELECTRONICS USER MANUAL 4 14 1 3 B device transfers control back to A device A device script WaitSuspend Pullupoff ControlMode HOST Idle 6000 WaitPullupOn FULLSPEED results in FS pullup being on A removes its pullup bus floats and returns to being host applies 15k pulldowns allow time for D to go low B connects pullup and returns to being device DH Reset 20000 4 14 1 4 B device transfers control back to A device B device script SuspendHnp ControlMode DEVICE PullupOn FULLSPEED User Manual Packet Master 2 07 DH DH stop sending SOFs apply 15k pulldowns B returns to being the Device floats data lines and connects its pullup Copyright 2006 2009 MQP Electronics Ltd 164 mig p USER MANUAL ELECTRONICS 4 14 2 Host Ne
71. eter Number wValue desc Parameter Value wLength Min 0 wLength Max 0 lt Control Request gt lt Control Request gt bmRequestType 0xC0 bRequest 0x01 bRequest desc Widget Get Parameter bRequest text This requests the device to return a specified parameter n value is 2 bytes sent in a data packet windex desc Parameter Number wValue desc Parameter Value wLength Min 0 wLength Max 0 lt Control Request gt lt Endpoint gt ep code 0x82 ep desc Data Stream from Widget p text Responses in the Widget Protocol are sent by the programmer Typically each response is terminated with a 0x0d 0x0a character pair Most commands are made up of ASCII characters lt Endpoint gt lt Device gt User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 115 me USER MANUAL ELECTRONICS 3 21 3 2 File Syntax 3 21 3 2 1 Comments A comment is introduced by the pair of characters Everything to the right on the same line is part of the comment and ignored 3 21 3 2 2 Indentation The example file uses tabbed indentation to emphasise the structure of the syntax but it is not necessary to do this 3 21 3 2 3 Numbers Numerical values may be expressed in decimal or in hexadecimal introduced by the prefix Ox So 10 and Ox0a represent the same value 3 21 3 2 4 Strings String values must be enclosed in double quote marks e g this is a string A long st
72. exadecimal number is prefixed with Ox e g 45 0x2d and SETUP all represent the same value User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 151 me fre ELECTRONICS 4 8 8 Execution The script instructions are executed in turn starting at the beginning and continuing till the end In the case of a user specified loop execution will continue till the user halts it from the application If a problem is encountered execution halts and an error message is displayed User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 152 me USER MANUAL ELECTRONICS 4 9 Test Configurations Can be same computer PC PC Host for Host for Generator Analyser USB500 AG Used As Generator USB500 AG Used As Analyser EE Recommended for voltage current measurement Generator Emulates Host This is how to connect the generator when emulating a host The analyser shown is marked USB500 AG but can in fact be any suitable analyser The PC which is hosting the generator can be the same as that hosting the analyser provided both are from the Packet Master series If the analyser in question is from a third party manufacturer then you should be cautious about performance when using the same PC we would recommend separate PCs in this case Packet Master USB500 AG has a built in Vgus measuring option If two USB500 AG units are used we
73. f each bookmarked line working in a forward direction through the file Shift F2 takes the caret in turn to the start of each bookmarked line working in a backward direction through the file To remove a bookmark put the caret on that line and then press Ctrl F2 Bookmarks only exist while the file is open 3 19 4 Error Messages In files types with an output pane below this pane is use to display the result of validation or compilation If any error messages are shown then you may cycle through the errors by pressing F4 Each error message will be highlighted and the corresponding source line will be marked In a similar way if you double click on an error message in the lower pane the line in question will be marked in the upper pane User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 104 me USER MANUAL ELECTRONICS 3 20 USB Errors 3 20 1 Invalid PID A Packet Identifier PID is a 4 bit code The 4 bits of the PID are complemented and repeated making an 8 bit PID in total An error in the transmission of the PID will result in an Invalid PID being reported 3 20 2 Invalid CRC A Cyclic Redundancy Check is performed on the data transmitted in a packet Token packets have a 5 bit CRC while Data packets have a 16 bit CRC The CRC is checked by the Packet Master and if incorrect an error is reported 3 20 3 Invalid SOF A Start of Frame packet contains a frame number If a frame number is
74. fer of a size specified by the user From 2K to 4M bytes of event data may be stored prior to the trigger point When the trigger capture conditions are met the Capture LED changes to steady on and event capture continues until either a stop capture condition is satisfied or until the Stop Capture button is pressed The event which caused the Trigger Capture will be marked in the display by a green arrow and the event which caused the Stop Capture will be marked in the display by a red arrow Icons are displayed if the file contains either of these events and clicking the icon takes you straight to the event in question If triggering is not enabled then the Pre Capture Buffer is not used In this case pressing the Start Capture button on the Packet Master analyser causes capturing to commence immediately and the Capture LED to show steady on The Trigger LED is lit green if triggering is enabled In addition its colour will be red if the BNC connector is being used as an input User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 54 me USER MANUAL ELECTRONICS 3 9 2 Events Available For Triggering e Any Event e Start Button Manual e BNC Socket Input On Condition e BNC Socket Input Off Condition e Any of four specified Token Packets e Any of four specified Data Packets e Any of four specified Split Packets e ACK Packet e NAK Packet e STALL Packet e NYET Packet e Not Han
75. filtered out then double clicking on a particular control transfer will reveal the transactions within it as shown below 47 58 Control Transfer Addr Endp Data 8 bytes Status 5 086 194 s Get Device Descriptor O00 00 12 01 00 02 00 00 0008 31 87 Control Transfer Addr Endp Data 0 bytes Status 5 126 195 s Set Address OONO Ox0 OK 31 83 126 195 s 85 87 127 195 s 127 146 Control Transfer Addr Endp Data 18 bytes Status 5 166 196 s Get Device Descriptor O01 Ox0 12 01 00 02 00 00 0008 148 162 Control Transfer Addr Endp Data 9 bytes Status 172 196 s Get Configuration Descriptor 0x01 0x0 09 02 22 00 01 01 00 AD Show Selected Transactions User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 74 mig p USER MANUAL ELECTRONICS Show Packets A transaction contains a number of packets Clicking this button removes shows the packets within the transactions Control Transfer Addr Endp Data 0 bytes Status 5 126 195 s Set Address 0x01 000 ol Lol SETUP 0x00 0x0 00 05 01 00 00 00 00 oof ACK Event 81 SETUP Addr Endp CRCS EOP IDLE 5 126 195 s 00000004 op oao on 0x02 0 17 us 0 33 us Event 82 DATADO Data 8 bytes CRC16 EOP IDLE 5 126 198 5 00000001 00 05 01 00 00 00 00 00 0 gt 25EB 0 50 us Event 83 Syne ACK EOP IDLE 5 126 207 s 00000001 976 44 us Event 85 Syne IN JAddr Endp CRCS EOP IDLE
76. from file _mouse_ls mqu Device end packets were included as comments during export N amp Ked transactions were filtered out during export FileType MOPGEN 1 EmulationMode STANDARD ControlMode HOST Retries SAMEFRAME or NONE or NEXTFRAME VbhusoOn WaitPullupOn LOWSPEED Max For Help press F1 Ln 1 Col 0 It is a good idea to save this file at this point You may now try compiling the file using menu item File Compile or click on the Compile icon in the toolbar S User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 131 me USER MANUAL ELECTRONICS Ga GraphicUSB _mouse_Is mgen E File Edit View Operations Window Help OSH G whew ds 8 XS ee vbus 4 93v 7 835mA Generator File originally exported from file _mouse_ls mqu Device end packets were included as comments during export N amp Ked transactions were filtered out during export FileType MOPGEN 1 EmulationMode STANDARD ControlMode HOST Retries SAMEFRAME or NONE or NEXTFRAME Vbuson LEE EE I Iana Aa TATION eT fet Compiling Compilation Complete 4700 bytes O error s O warning s For Help press F1 Ln 9 Col 42 Edit your file as you require checking its validity with frequent compilations Then you are ready to run your generator script User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 132 me USER MANUAL ELECTRONICS 4 5 Creating
77. g the next two lines must define the Vendor ID and the Product ID of the device User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 50 mgp fre ELECTRONICS 3 7 4 1 8 Description Following the PID statement the next line must be a string describing the device 3 7 4 1 9 lt Control Transfer gt lt Control Transfer gt Each defined control transfer must be introduced by the Control Transfer gt tag and ended with lt Control Transfer gt Between the tags you should define the parameters of the request by specifying the following 8 numbers from 0x00 Specifies the 8 SETUP Specifies the data bytes Mandatory ae frama OKUN transferred in this control transfer User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 51 mgp USER MANUAL ELECTRONICS 3 8 Triggering USB480 Hardware triggering can be controlled from the Trigger Dialog Select Menu Operations Trigger Setting Set Trigger l Trigger Enabled C Trigger is Output If Trigger is Input is selected a logic high driven into the bne trigger connector will enable capturing and a low will stop it If Trigger is Dutput is selected the bne trigger Cancel connector will output a high logic level while capturing is taking place 3 8 1 Trigger As Input To use the trigger as an input first select Trigger is Input and check Trigger Enabled Connect a suitable log
78. gotiation Protocol High Speed 4 14 2 1 A device transfers control to B device A device script Host Negotiation Protocol A device has sent Set Feature command to enable the B device for HNP Suspendhnp stop sending SOFs release high speed termination and apply 15k pulldowns WaitPullupOn FULLSPEED B device reverts to FS WaitPullupoff Waiting for B device to remov its pullup resistor ControlMode DEVICE A becomes the device floats data lines Idle 90000 1 5ms must be less than 3ms PullupOn FULLSPEED and connects its pullup WaitReset B device has become Host SendChirp 1 2000 0 start HS detection handshake WaitChirp 4 14 2 2 A device transfers control to B device B device script Host Negotiation Protocol WaitSuspend wait 3ms of idle then remov termination and apply FS pullup PullupOn FULLSPEED cancels HS Idle 600000 1 146ms Pullupoff B device removes pullup resistor A floats data lines ControlMode HOST applies 15k pulldowns WaitPullupOn FULLSPEED A device connects pullup and becomes devic Idle 12000000 Reset 0 reset bus WaitChirp and start HS detection handshake SendChirp 750 50 50 Idle 180 SOFOn 0 User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 165 DO ELECTRONICS USER MANUAL 4 14 2 3 B device transfers contr
79. he same meaning aS SetCount0 lt n gt DJNZCount0 lt label gt Host or Device DJNZCount1 lt label gt oe DJNZCount2 lt label gt Decrement the count number and if it DJNZCount3 lt label gt is not zero goto the specified label DJNZ lt label gt Host or Device This command is now deprecated but is still valid having exactly the same meaning aS DJNZCount0 lt label gt Goto lt label gt Host or Device This is an unconditional Goto to allow the last part of a script to be continuously repeated Halt Host or Device An option command to terminate execution of the script This can be useful to limit the extent of the script during script development User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 146 me USER MANUAL ELECTRONICS 4 7 Generator Script Language Pre defined Values Parameter Usage Meaning STANDARD EmulationMode Mandatory setting The E ADEVICE and BDEVICE Se settings are for On the Go OTG devices HOST ControlMode The generator should behave as a host DEVICE ControlMode The generator should behave as a device LOWS PEED PullupOn The resistor on D is WaitPullupon specified FULLS PEED Pullupon The resistor on D is WaitPullupon specified NONE Retries Automatic retries of NAKed transactions are not enabled SAME FRAME Retries Automatic retries of NAKed transactions will be retried a number of times in the current an
80. ic signal to the BNC trigger connector This signal will need to go to a logic high to start capturing and low to stop capturing To prime the trigger use the usual Start Capture button The capture dialog will be displayed but capturing will not start The primed state is indicated by the capture led giving a slow flash When the trigger input goes high the capture led will show a steady on state and capturing will start When the trigger input goes low the capture will be saved and the capture led will go out 3 8 2 Trigger As Output To use the trigger as an input first select Trigger is Output and check Trigger Enabled When capturing starts the trigger output will go to a logic high level and when capturing is stopped it will go low again User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 52 me USER MANUAL ELECTRONICS 3 8 3 Trigger Not In Use When not in use ensure that the Trigger Enabled box is unchecked or you will not be able to start capturing User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 53 me USER MANUAL ELECTRONICS 3 9 Advanced Triggering USB480 and USB500 AG 3 9 1 Operation When triggering is enabled pressing the Start Capture button on the Packet Master analyser causes the Capture LED to start flashing to indicate that the trigger is primed At this time Pre Trigger capturing takes place into a circular buf
81. ion box e Click on Insert Sequence User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 136 me USER MANUAL ELECTRONICS Using this system you can build up a script containing correct sequences of commands in no time You can then edit the commands in the script as you require taking into account your special needs Then you are ready to run your generator script User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 137 me fre ELECTRONICS 4 6 Generator Script Language Commands Command Remarks FileType MOPGEN 2 Must come first in script Identifies the file type and version Version must be 2 EmulationMode STANDARD This must come after FileType and EmulattonMode ADEVICE before any other command EmulationMode BDEVICE STANDARD is used for standard USB while ADEVICE or BDEVICE are used for OTG devices as appropriate ControlMode HOST This determines whether the ControlMode DEVICE generator should emulate a host or a device This command must appear at least once in the file immediately following EmulationMode ControlMode HOST results in a 15k pull down resistor being applied to each line ControlMode DEVICE results in the data lines being floated which they will continue to do until the PullupOn command is encountered On the Go Usage This command can also be used during an OTG emulation sequence as part of a Host Nego
82. ired select a unit with a different function If there is a possible choice to make this may be selected under Voltage Current Measurement From User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 122 me USER MANUAL ELECTRONICS 3 23 Firmware Updates It is occasionally necessary to modify the firmware within the analyser unit GraphicUSB has the capability of performing this function in the field Caution Updating firmware is not without its risks If the update process is interrupted by a power failure USB cable disconnection or any other similar problem then it is possible to leave the analyser unit in a non working state So the firmware should only be updated for a valid reason The website www mqp com contains software revision information which includes details on firmware revisions and the reasons for them Please check there before attempting an update and contact us beforehand if uncertain If the process does fail for one of the above reasons then you will have to return the analyser to us for re programming Please contact us in advance for a returns number in this case Firmware updates are controlled from the Operations Select Analyser or Generator menu item User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 123 me USER MANUAL ELECTRONICS Select Unit s to Use Serial Number Function Current Few Latest FAW USB12 10
83. l ees GC a2 06 00 01 02 ele 2 00 us RS Saves fi E Entel EIn o ors 30 Gs vbus oam 0 000uA A Control Transfer Get Device Descriptor A dea neral iformation about a USB device i w that applies globally to the deace and all oft urations A USB deace has ordy one device descriptor vaid Lengh oo interface Desenpk even en Hegscg Descriptor soss SE Kisgscg Costopk ett Copyright 2006 2009 MQP Electronics Ltd me USER MANUAL ELECTRONICS 3 2 Panes 3 2 1 Event Pane The Event Pane graphically shows every detail of data and timing on the bus The example shown below is an IN transaction made up of two packets The left hand column contains an event number and a time stamp The time stamp has a resolution of 20 83ns for the USB12 and 16 66ns for the USB480 and USB500AG A vertical line associates the packets within the transaction Looking in detail at the display for event 24 below the following information is displayed e The speed of the transmission HS is High Speed 480MHz FS is full speed 12MHz and LS is low speed 1 5MHz e The direction of the packet A right pointing arrow is for host to device and a left pointing arrow for device to host e The Synchronisation field The bit pattern received is shown e The Packet ID PID In this case it is an IN token e The Address field e The Endpoint field e The CRC field Token packets have a five bit CRC while data packets hav
84. l T Reset Time Origin Create Events or Data File These are mostly self explanatory Capture Summary is described below 3 3 2 Detail Pane Properties Create Descriptor File Create Descriptor File allows you to produce a text file output of any selected descriptor 3 3 3 Data Pane Properties Create Current Data File Select All Ctrl A4 Create Current Data File allows you to export some or all of the data in the data pane in a variety of formats 3 3 4 Timeline Pane Properties Change Timeline View Ctrl Shift T Set Time Origin t Selection Ctrl T Reset Time Origin Change Timeline View or Ctrl Shift T allows you to show or hide parts of the timeline view User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 35 me USER MANUAL ELECTRONICS 3 4 Capture Summary When viewing a capture a summary of file statistics is available from menu item View Capture Summary The same summary is available by right clicking in the event pane The summary produces a text file giving statistics of each event type of how many errors were detected and of the devices encountered in the capture This file may be saved or printed Ga GraphicUSB mouse_hid E Fie Edit View Operations Window Help Oa 6 ahwnw ee 2 le KKK KKK ko e m Summary of Capture File mouse_hid mqu KKK KKK KKK Number of events 26158 Duration of capture 55 035 073 s
85. me USER MANUAL ELECTRONICS My capture buffer fills up too quickly to collect any useful events Some devices can continuously NAK transfers which leads to a very high bandwidth of not very useful data We suggest that you disable the capture of NAKs in the Edit Options Capture dialog which will reduce the amount of data captured limiting it to transfers which are not NAKed NYETed split transactions to a high speed hub can also be omitted If necessary a further reduction in captured data can be achieved by disabling the capture of SOFs or Keep Alive events You can also increase the buffer size in the same dialog If doing this causes system slowdown problems caused by the system using virtual memory then consider adding RAM to your computer The analyser is not showing any events although the device is functioning correctly One possibility is that you are trying to capture high speed events with a USB12 analyser which can only capture low speed and full speed events A further possibility is that the conditions for the presence of a device are not being seen by the analyser which expects to see VBUS appear and then a stable state with one data line high For example in a test set up using flying leads soldered to a development board the VBUS must be connected and working A host whose connect timing is out of specification can cause problems with capturing if it does not wait 100ms before resetting the device as r
86. mgp A ELECTRONICS Packet Master USB12 Packet Master USB480 Packet Master USB480 Packet Master USB500 AG User Manual MQP Electronics Ltd Unit 2 Park Road Centre Malmesbury Wiltshire SN16 0BX United Kingdom e mail sales mqp com Website www mqp com User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 1 me USER MANUAL ELECTRONICS Contents 1 GETTING STAR RB 8 1 1 introduction ieee eee 8 1 2 Installing the Software and Drivef cc ssccccccereenseeeeeeeeenneees 9 1 2 1 Install the Software from CD sssssssssssssssnsresseerssssrrrrrrrrereree 9 1 2 2 Installing the Driver ssvccessssdcer eege NEEN 9 1 2 3 Updating the ln TE 10 1 2 4 Updating the Goftbware AAA 10 1 3 Sample Capture Files eseesrgegeeeengEeeebeeg Age egEeegeeEeEhde 11 1 4 Front and Back Panels Packet Master USB12 12 1 5 Front and Back Panels Packet Master USB480 14 1 6 Front and Back Panels Packet Master USB500 AG 16 1 7 Test Set Up AnalySef 00 cccccssesccccccneenseeseeeennsesseeeensneseeeeeeans 18 1 8 Eege 19 1 9 Saving the Capture 2ccccccccsssecceeceeenseeeeeeennessseneeaneneseeeeens 20 1 10 Test Set Up Generator 22 cccccccseccceceeeenneseeseeennneseseeeeaes 21 2 TECHNICAL DATA eege Kgetegeee E ENEN 22 K WR E e E 22 2 2 Specifications USBI E 22 2 3 Specifications USBA80 csicissecisstvencsrssveciecesewesscnsieestervexsswers 23 2
87. n progress The USB through connectors are used for connection to the Host and device under test User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 14 mgp USER MANUAL ELECTRONICS e The Packet Master is normally USB Bus Powered for convenience of use e An optional external power input is provided this is not normally required but useful if the host won t configure a high power device e A High Speed USB 480 Mbit s provides the connection to the Host PC e A 10 pin Feature connector provides signals for an oscilloscope or logic analyser e ABNC connector provides a convenient location to connect an external trigger source or external equipment to be triggered User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 15 mig p USER MANUAL ELECTRONICS 1 6 Front and Back Panels Packet Master USB500 AG e The Power indicator illuminates when the Packet Master is powered and connected to the Host computer e The Activity indicator shows the presence of data exchanges The indicator flashes once for each DATAO DATA1 or SETUP packet e The Trigger indicator shows whether the hardware trigger is enabled and whether it is an input red or an output green e The Analyser indicator illuminates when the USB500 AG is configured as an analyser while the Generator indicator is lit when configured as a generator When in generator mode two further indicators H
88. n also be used User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 83 me USER MANUAL ELECTRONICS 3 12 Search The Search function is used to locate particular events within the captured data Events which are not currently being displayed will still be found by the search function and the display filter settings will be adjusted accordingly Select the Search Settings by either clicking the Tool Button or selecting the item on the Edit menu Items may be searched for by Event Transaction Data Setup or Error Once a search has been defined the Search Settings Window may be closed and the Toolbar Search buttons PF gt used instead This provides a clearer view of the data 3 12 1 Event Search The events search allows you to find such items as Reset Preamble etc Search Settings Events Transaction Data Setup Errors F Invalid Events IT Start of Frames Select the type of event you wish to e find ou may search for more than Transaction one event type at the same time You may use the find buttons here or Preamble close this window and use the find I Control Transfer buttons on the toolbar IT Reset IT Suspend Ss Find First l Resume a t IT Keep Alive ehh I Power Event T Upwards User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 84 me USER MANUAL ELECTRONICS 3 12 2 Transaction Search Transactions may be searched fo
89. nd LISS E 150 e EE CN 151 4 8 5 ung oa tiaeccanaatuce esters cass sateen vananscncuonnametcenasatiuet 151 4 8 6 Kl epee CRORE nee eee Cee aer rE r EEE OEA 151 GR Gelee 151 4 8 8 Execution ee ees 152 4 9 Test Configurations E 153 User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 6 me USER MANUAL ELECTRONICS 4 10 Compiling the Generator SCLipt cccccccccceceeeesesseseeeees 156 4 11 Running the Generator SCPipt cccccseeceeeceeresssesseeeeens 157 4 11 1 Different Computer Hosting Analvser 157 4 11 2 Same Computer Hosting Analvser 158 4 12 Generator Error MCSSAGECS cc ccccecccesnseeeseeenenneeneeneens 159 4 13 Generator Script Suggestions SEENEN 161 4 14 Generator Scripts For On Ohe Go ee EEN 163 4 14 1 Host Negotiation Protocol Full Speed 163 4 14 2 Host Negotiation Protocol High Gpoeed 165 4 14 3 Session Request Protocol Full Gpeed 167 4 14 4 Session Request Protocol High Speed 168 4 15 Generator Limitations 11 cccccccsesececeeeennnseeseeenanenssseneees 169 5 TROUBLESHOOTING sroscsiccscecsceseessncetdencncusotatstiwaetences 170 0 RECETTE tegee gue 173 ES Warranty E 173 6 2 Limitations E 173 6 3 Warranty Period 22 cccccccccsceceecennsseseeeensneesssesennsessseesannneees 173 6 4 Obtaining EREM 173 User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 7 me USER MANUAL ELECTRONICS 1 GETTING STARTE
90. nditions to be specified if you check the checkbox Module x Satisfied then the conditions of that module will not be looked for until the previous module x condition has been satisfied So a set of conditions has to be satisfied in turn Note that unlike sequences the events in question do not need to be consecutive A green arrow provides a visual indication of modules linked in this way User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 57 me USER MANUAL ELECTRONICS Advanced Trigger Settings USB480 Top Level Sequences Token Packets Data Packets Split Packets Misc Events Settings Triggering ON BNC Connector OUTPUT i Presets Save to File Load from File Module 1 Component or Sequence JACK Packet D Count fi 1 Trigger Capture Stop Capture BNC Dun BNC OutOf Reset Reset2 Reset3 Reset 4 r Module 2 Yv V Module 1 Satisfied Component or Sequence SOF Packet 1 D Count fi Iw Trigger Capture Stop Capture BNCOutOn BNC OutOff Reset Reset2 Reset3 Reset 4 m Module 3 I Module 2 Satisfied Component or Sequence p Count fi J Trigger Capture 7 Stop Capture J BNCOutGn P BNC GutGt FT Reseti TF Reset2 E Reset3 J Reset 4 Module 4 T Module 3 Satisfied Component or Sequence F 7 Count fi FT Trigger Capture P Stop Capture TF BNC OutGn JF BNC GutOf I Reset F Reset2 F Reset3 P Reset 4
91. nnected upstream of the analyser as traffic from the Host to Hub may be recorded but not the traffic from the Hub to the Host This test equipment by its very nature has to connect to a junction of two USB cables in order to probe the data on the link It is important to keep the cables between the device under test and the host under test as short as possible for example 1m and to use good quality cables 1 8 Data Capture e Connect the Packet Master to the Host computer as shown in the Test Set Up section You must first have installed the GraphicUSB software and Driver e Connect the Host under Test to the analyser as shown in the Test Set Up section Usually do not connect the device under test yet e It may be preferable to use a simple working commercial device such as a low speed mouse for your first data capture e Run the GraphicUSB software e Start capturing by either momentarily pressing the Start button on the Packet Master front panel or clicking Capture on the tool bar e A capture window will open and you should see the capture statistics incrementing e Now is a good time to plug the device under test into the analyser By capturing the moment of plug in you will capture the enumeration sequence which contains information which may help with the rest of the analysis e After a few moments stop capturing by either momentarily pressing the Stop Button on the Packet Master front panel or clicking the Save
92. nsfer Addr Endp Dat Data Transfer of Unknown T 1 151 224 5 e Class Transter Om oaf o Device To Host 1451 Unknown Type Transfer Addr Endp Da 1 159 222 s pClass Transfer 001 Oxi o er S As insufficient information was available 1460 1462 2 Unknown Type Transfer Addr Endp D the type of this data transfer is only a 1 167 226 s Class Transfer 001 eil o best guess 14971 1473 Unknown Type Transfer Addr Endp D 1 175 227 pClass Transfer 001 Ox1 o Data Content 1482 1484 Unknown Type Transfer Addr Endp Da 00 FE 02 1 183 230 s L Class Transfer 001 Oxi o a a v For Help press F1 4036 events Whenever you perform a capture which misses the enumeration phase GraphicUSB will display a dialog inviting you to associate a particular Device Info file with any device addresses in the capture Note that this dialog can be prevented from automatically appearing by unchecking the Show this dialog automatically box The dialog is always available in the Edit Show Assumed Devices menu item User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 45 mgp USER MANUAL ELECTRONICS Assumed Device IDs Devices seen in capture file Addr From Event ToEvent WID PID Status Description lt fle end 0000 0000 Settable Unknown Clear All Assumptions Clear Selected Assumption Set Selected Assumption Available Device Info Files VID PID US
93. nt in question to select it then Menu View Add Bookmark e Click on the event in question to select it then use keyboard Ctrl F2 User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 89 me USER MANUAL ELECTRONICS e Right click on the event in question and choose Add Remove Bookmark from the pop up menu Bookmarked events are marked with a light blue rectangle The following screenshot shows two bookmarked events one of them is also selected ca GraphicUSB resume_trigger mqu File Edit View Operations Window Help Cau S a ZS 7 Wm SZ RH D Min 6068 6073 5 Control Transfer Addr Endp Data 0 bytes Status 6 272 793 s Set Configuration Gool oO st OK m 6282 6287 5 Control Transfer Addr Endp Data 0 bytes Status di ESEKGSE Set Port Feature Hub oxo OO TOK 6292 6297 E Control Transfer Addr Endp Data 0 bytes Status 6 299 300 s Set Pot Feature Hub O01 OO OK 6302 6307 Control Transfer Addr Endp Data 0 bytes Status 6 299 803 s Set Port Feature Hubi d oO OK EL A 6312 6317 Control Transfer Addr Endp Data 0 bytes Status 6 300 300 s Set Port Feature HubJOx01 OO OK Max 7306 7311 Control Transfer Addr Endp Data 0 bytes Status K SE Clear Port Feature utiloal oof OK Vv 7317 7322 3 Control Transfer Addr Endp Data 0 bytes Status B 6 424 459 s Clear Port Feature Hubi d OO OK e 7327
94. ntain the correct byte values if they are included at the end of the packet and in the correct order CRC16L CRC16H AD EP C5 SendPacketLs This special value lt a gt lt e gt SendPacketFs represents the two bytes SendPacketHs fequired in a token packet IN OUT SETUP or PING The tow values in parenthesis are lt a gt the address lt e gt the endpoint The two bytes added into the packet will include those two values correctly positioned plus the 5 bit crc E g SendPacketHs IN AD EP C5 0 0 AD SC P S E ET_ C5 SendPackeths This is similar to the lt a gt lt sc gt lt p gt lt s gt SendPacketFs AD_EP_C5 value but relates lt e gt lt et gt SendPacketHs instead to the bytes required in a SPLIT packet lt a gt the address lt sc gt start complete User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 149 me USER MANUAL ELECTRONICS lt p gt port lt s gt speed lt e gt end lt et gt endpoint type The 5 bit crc is automatically calculated and positioned correctly within the 3 bytes which are inserted into the packet 4 8 Generator Script Language Syntax Rules 4 8 1 Command Sequence The first three commands must appear as follows in this order FileType MQPGEN 1 EmulationMode STANDARD or ADEVICE or BDEVICE ControlMode HOST or DEVICE 4 8 2 Case Sensitivity All commands and pa
95. o check the legality of the file before attempting to use it The syntax of the file can be validated by Operations Validate Vendor File The file must be open in GraphicUSB for this option to be available User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 119 me USER MANUAL ELECTRONICS The file will be validated and the results will be shown in the lower output pane ca GraphicUSB vend1 2ab34cd mven File Edit View Operations Window Help o S B t Slmwme lt gt alee Vbus 4 61v 52 08mA lt Device gt VID 0x12 AaB PID 0x34CD lt Control Request bmRequest Type 0x40 bRequest 0x01 bRequest desc Widget Set Parameter bRequest text This requests the device to accept a specified parameter The parameter value is included in the setup bytes wiIndex desc Parameter Number eee Ae een an ae e ee Wes error at line 7 For Help press F1 Ln 1 Col 17 Double click on the error message in the output pane to locate the line in the edit pane in this case the wrong type of closing bracket was used Only the first syntax error found may be shown each time so run the checker until no errors are flagged When satisfied save the file using the default filename and ensuring that it is being saved in the data folder specified for the application User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 120 mig p USER MANUAL ELECT
96. ol transfer Defaults to 0 Maximum number of bytes which may be transferred in the Data Stage of the control transfer Defaults to 65535 Used to validate the number of bytes transferred in the Data Stage Used to validate the number of bytes transferred in the Data Stage Each defined endpoint must be introduced by the lt Endpoint gt tag and ended with lt Endpoint gt Between the tags you should define the parameters of the endpoint by specifying the following User Manual Packet Master 2 07 Number from 0x01 OxOf for OUT endpoints or from 0x81 Ox8f for IN OI coho EE String to use as the name of this data transfer Must be single line and preferably kept short ee ee eee en to use as the explanation of this request May be several lines of text Specifies the endpoint being described Appears in the Data transfer header of the event pane to name this request Also used as a sub title in the detail pane for the Control transfer header Appears in the detail pane for the Data transfer header Copyright 2006 2009 MQP Electronics Ltd 118 me USER MANUAL ELECTRONICS 3 21 3 2 9 Syntax Checking It would be irritating to have syntax error messages popping up whenever a syntax error in the user file is encountered so during display of a capture file the parsing will fail silently putting up the best interpretation it can We have provided a separate function t
97. ol back to A device A device script WaitSuspend Idle 60000 Pullupoff ControlMode HOST Idle 6000 WaitPullupOn FULLSPEED Idle 120000 Reset 0 WaitChirp SendChirp 750 50 50 Idle 180 SOFOn 0 DH DH results in FS pullup being on A removes this pullup bus floats and returns to being host applies 15k pulldowns time for bus to discharge B connects pullup and returns to being device minimum of 4ms after WaitSuspend to allow correct report from analyser reset bus and start HS detection handshake 4 14 2 4 B device transfers control back to A device B device script SuspendHnp ControlMode DEVICE PullupOn FULLSPEED Idle 200000 WaitReset SendChirp 1 2000 0 WaitChirp User Manual Packet Master 2 07 stop sending SOFs apply 15k pulldowns B returns to being the Device floats data lines and connects its pullup wait for A device to reset bus start HS detection handshake Copyright 2006 2009 MQP Electronics Ltd 166 DO ELECTRONICS USER MANUAL B device requests a session from A device A device script stop sending SOFs 4 14 3 Session Request Protocol Full Speed 4 14 3 1 S Ending original session Suspend 10 A VbusOff end session WaitPullupoff wait for DH S Session Request WaitPullupOn FULLSPEED WaitPullupoff WaitVbusOn VbusOn WaitPullupOn FULLSPEED
98. op Event Clicking the icon will take you to the event in question which is marked with an arrow of the appropriate colour User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 70 me USER MANUAL ELECTRONICS a GraphicUSB Capture1 File Edit View Operations Window Help a bed SB we lt gt a Sr wll p E A Event 2904 HS Syne ACK EOP SEO E 4 202 708 s 0004 0xD2 0 02 us 10 85 us 2905 2907 4 202 719 5 YIN foo ox 12010002 09000140 ACK o Event 2905 b gt HS Syne IN Addr Endp CRCS EOP SEO 4 202 719 5 0004 osa 000 oa 0 02 0 02 us 0 35 us HS Syne DATAA Data 18 bytes CRC16 EOP 0004 Ox4B 1201 00 02 09 00 01 40 04582 0 02 us HS Sync ACK EOP SEO 0001 0xb2 0 02 us 12 33 us Event 2906 SEO 4 202 719 5 0 23 us Event 2907 4 202 720 s User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 71 me USER MANUAL ELECTRONICS 3 10 Display Filters Toolbar buttons allow the filtering out of events that you do not wish to display The following filters are available Show SOF Start of Frame packets on high and full speed devices and Keep Alive events on low speed devices come at approximately one millisecond intervals 125 us for high speed Clicking this tool bar button removes shows these events x Show Bus States Clicking the Bus Sta
99. or DEVICE Hox For Help press F1 Ln 1 Col 0 Notice that the document has a separate output pane beneath for compiler information to be displayed in The first of the two command insertion dialogs is Insert Command It is found in the Edit menu or by typing Ctrl I Add Generator Script Command Command Set C Device Mode Command FileType D MOPGEN 1 D This compiler command must appear before any other command It defines this file as a generator source file and specifies the generator compiler version it is written for D Command will be inserted at start of line with caret Cancel Insert Command This dialog will insert a single correctly constructed command of your choice in front of the line containing the caret It has a variable User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 134 me USER MANUAL ELECTRONICS number of selection and edit boxes depending on the command you select The procedure is e Before entering the dialog ensure that your caret is located at the start of the line you want to insert the command in front of e First select the command set host or device depending on which you are currently emulating The command box will be filled with only those commands appropriate to the mode e Then select the command required from the command selection box The purpose of the command is explained underneath e Now make appropriate selec
100. ormally difficult to provide a useful analysis MQP s vendor class analysis option attempts to overcome this problem by allowing the user to specify characteristics of the vendor class which can usefully be displayed on the capture document screens To do this the vendor class analysis option must be registered The user will need to provide a specification file for their device The file will have a predetermined file name as follows vendVVVVPPPP mven where VVVV is four hexadecimal characters defining the Vendor ID and PPPP is four hexadecimal characters defining the Product ID So for example the file defining the vendor characteristics of a device with Vendor ID 0x12ab and Product ID 0x34cd would be called vend12ac34cd mven The file must be located in the same directory as is specified in Edit Options File Locations Data Directory by default this is the standard location for application data defined by the operating system A template for this file can be quickly created with the correct filename in the correct folder by Operations Create Vendor File Template User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 111 me USER MANUAL ELECTRONICS Create Vendor Info File Template Vendor ID Product ID Target File Name Ox f 2ab Ox ES This allows you to create a template for a a user supplied vendor class information file The file must be named vendvVVVPPPP myven where
101. ost and Device show which hardware function is currently being emulated If the Generator is about to be asked to apply Vsus when Vous is already present on a connected USB cable the Generator and Host are alternately flashed to indicate an error e Capture Start and Capture Stop buttons control the capturing of USB data and the Capture Indicator shows when capturing is in progress e The USB through connectors are used for connection to the Host and device under test User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 16 me USER MANUAL ELECTRONICS e The Packet Master can be USB Bus Powered for convenience of use when in use as an analyser As a generator it is necessary to use the external power supply included with the unit so that sufficient voltage and current are available to the device under test e The supply can also be useful in analyser mode if the host won t configure a high power device which the USB500 AG is e A High Speed USB 480 Mbit s provides the connection to the Host PC e A 10 pin Feature connector provides signals for an oscilloscope or logic analyser e A BNC connector provides a convenient location to connect an external trigger source or external equipment to be triggered User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 17 me USER MANUAL ELECTRONICS 1 7 Test Set Up Analyser To achieve a good capture rate it is important to
102. provide a suitable test environment The Packet Master unit should preferably be hosted by a good performance PC with a high speed USB connection The USB host controller should not be shared by any other USB device while doing the testing This is particularly important with the USB480 and USB500 AG The Packet Master USB12 will function correctly when connected to a Full Speed link but the capacity will be severely reduced and only low rates of USB traffic may be captured from the device under test You should not attempt this with the USB480 or USB500 AG In a similar fashion it is theoretically possible to use the same host computer for the Packet Master unit and for the Host under Test We do not recommend this but if it is absolutely unavoidable then you must at least use a separate USB host controller for the device under test If your computer does not have two host controllers then you will need to buy a plug in USB host controller card PC Host for Analyser High Speed USB Link Packet Master Analyser r USB Link Under Test It is possible to have more than one device under test In this case the devices must first be connected to a Hub and the Hub plugged User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 18 me USER MANUAL ELECTRONICS into the Packet Master Both devices and the Hub are downstream of the Packet Master It is not recommended that a Hub be co
103. r 2 07 Copyright 2006 2009 MQP Electronics Ltd 66 me USER MANUAL ELECTRONICS e Trigger on Ping Transaction e Trigger on Split Setup Transaction e Trigger on Split Bulk In or Out Transaction e Trigger on Split Interrupt In or Out Transaction e Trigger on Split Isochronous In or Out Transaction e Trigger on Specified Data Pattern e Trigger on Chirp e Trigger on Suspend or Resume e Trigger on Error Condition User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 67 me USER MANUAL ELECTRONICS 3 9 11 Manual Triggering Manual Triggering requires a word of explanation In this mode pressing the Packet Master Start Button will prime the trigger ready for the trigger event which in this case is a further press of the Start Button The advantage of this is that the Pre Trigger Buffer is used from the moment of the first button press You may be trying to capture events which occur just before an observable condition occurs on your device So when you trigger the capture with the second button press up to 4 million bytes of event data which occurred before the trigger may be captured Manual triggering can be set by of the Preset Triggering options User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 68 me USER MANUAL ELECTRONICS Advanced Trigger Settings USB480 Top Level Sequences Token Packets Data Packets Split Packets Misc Events Settings
104. r a NAK or a DATAx packet in return depending on whether the mouse was moved or clicked or left alone To reproduce this action exactly from a script the mouse would have to be moved in exactly the same way each time the script was run which is clearly unlikely If we start by doing a capture of the enumeration and for a few seconds after we can create a generator script by selecting from the menu bar File Create Generator Script In the Export generator Script File dialog we will typically not select the option Include NAKed Transactions The result of this is that all the NAKed interrupt transfers will be missing from the script and that the Retries SAMEFRAME command will be included in the script The result of running the script will be that the INs that were originally NAKed will not be generated at all and that the first IN User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 161 me USER MANUAL ELECTRONICS transaction which is generated will be retried about 4 times per frame until a non NAKed response is received So the generator will proceed through its script as long as you move the mouse around but the actual frequency of the IN transactions will sometimes be multiples of the device specified bInterval time and sometimes 4 times per frame This could be reduced to once per frame by changing the Retries SAMEFRAME command to Retries NEXTFRAME The alt
105. r according to their Type IN OUT or SETUP the Response ACK NAK STALL or NONE the Device Address and or Endpoint If no selection is made in any particular column then any transaction meeting the requirements of the other columns will be found Search Settings E Any User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 85 me USER MANUAL ELECTRONICS 3 12 3 Data Search The data to be searched for is entered as a sequence of Hex bytes separated by spaces The size of the data field the Device Address and Endpoint Address can also be specified The example below shows a search for Hex bytes A3 00 in an 8 byte Data field with Device Address 1 and Endpoint 0 If no selection is made in any particular column then any transaction meeting the requirements of the other columns will be found Search Settings User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 86 mig p USER MANUAL ELECTRONICS 3 12 4 Setup Search The example below demonstrates a search for a bRequest of 05h in a standard Setup to a device having Address 0 and Endpoint 0 Masks are available if you wish to test for only a part of a field If no selection is made in any particular column then any transaction meeting the requirements of the other columns will be found Search Settings E A Gu V Bry Vv Bry User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 87 m
106. r test could of course be a PC We do not recommend using the same PC as is hosting either or both generator or analyser If you attempt this then at the very least use a separate USB controller card for the host under test You will have noticed the similarity in the configuration for emulating a host or emulating a device Clearly the same arrangement therefore applies for testing On the Go devices User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 155 me USER MANUAL ELECTRONICS 4 10 Compiling the Generator Script Compile the file using menu item File Compile or click on the Compile icon in the toolbar If there is an error it will be announced in the lower pane Double click on the error message to point at the line in the script containing the error Alternatively press the F4 key to highlight the errors one at a time Ga GraphicUSB _mouse_Is mgen IS File Edit view Operations Window Help GN 2 82 6 wheat 2 SE Sg Vbus 0 00v 0 000uA Generator File originally exported from file _mouse_ls mqu Device end packets were included as comments during export NaKed transactions were filtered out during export SS FileType MQPGEN 2 EmulationMode STANDARD ControlMode HOST Retries SAMEFRAME or NONE or NEXTFRAME Compiling or COOOS in line 6 Generator file type invalid Compilation Complete 2 bytes 1 error s O warning s Mox For Help press F1 Ln
107. r the sake of simplicity the following examples show the commands being issued by use of the older WinExec function You may wish to use a more recent function such as CreateProcess or the NET function Process Start The strings are all supposed to be on one line but will be shown split in this document The filename is shown in the examples without a full path In this case the file will be saved in the Application Data folder for GraphicUSB You can also specify a full pathname in order to save the file in a folder of your choice The available commands which make use of the switches c0 CT and c2 are as follows 3 17 1 Start Capture WinExec c Program Files MQP Electronics GraphicUSB GraphicUSB cl TestCapt mqu SW HIDE This will start GraphicUSB running define TestCapt mqu as the location to save the capture when complete and start the capture If GraphicUSB is already running visibly it will become invisible and start the capture 3 17 2 Restart Capture WinExec c Program Files MQP Electronics GraphicUSB GraphicUSB c2 SW HIDE User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 94 me USER MANUAL ELECTRONICS This assumes that a capture is in progress else an error message is displayed It will abandon the capture in progress and start it again 3 17 3 Stop Capture WinExec c Program Files MQP Electronics GraphicUSB GraphicUSB c0 SW
108. rameters are case insensitive Thus WaitPacketHs is the Same aS WAITPACKETHS DATAO Is the same as daTa0 We use mixed case for commands and all upper case for pre defined values for clarity 4 8 3 Command Lines All commands must start on a new line Commands SendPacketLs SendPacketFs User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 150 me USER MANUAL ELECTRONICS SendPacketHs may take up as many lines as are necessary to specify all the data contained in the packet to be sent Blank lines are allowed 4 8 4 Labels A label is defined as a sequence of alphanumeric characters finishing with a It must appear on its own line of text and should not match any keywords used by the compiler A maximum of 16 labels is allowed in a script A label is used as the target of a GOTO command or a DJINZCountn command An example of a label is Labell2 4 8 5 Comments Comments are introduced by a character and continue till the end of the current line A comment may appear to the right of any command or part command e g SendPacketLs DATAO this is a comment 0x80 0x06 0x00 0x01 0x00 0x00 0x40 0x00 CRC16L CRC16H Comments are completely ignored by the compiler 4 8 6 Tabs Tab characters may be used to make the script tidier a tab will be interpreted as white space 4 8 7 Data Values Data values may be expressed in decimal or hexadecimal or by a pre defined value A h
109. ransactions will always be included in the capture Option Settings File Locations Misc settings Capture Maximum Buffer Size Filter out Keep Alives 93793075 Filter out NAKs pera Size Filter out NYETs Some frequently occuring events can be filtered out during capture in order to reduce file size The maximum buffer size can be set to prevent capture files becoming too large for the system RAM to handle The best way to choose this size is to click the Recommend Size button A larger limit may allow acceptable performance if the USB data does not occupy the full bandwidth of the link Cancel Help The size of the capture buffer defaults to a safe value which should guarantee a reliable capture under most circumstances You may increase this size as required but you should be prepared to decrease it again if you start to have poor response caused by the system using virtual memory to satisfy your requirement The Recommend Size button returns the buffer size to the default value for your system An option well worth considering is to increase the size of the RAM in your PC User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 93 me USER MANUAL ELECTRONICS 3 17 Command Line Capture Control It is possible to control GraphicUSB from another application using a command line syntax This allows another application to perform a capture without GraphicUSB becoming visible Fo
110. red at the other end of the link as comments which may be of assistance is showing the expected response These comments will not affect the operation of the script You need to decide whether to include NAKed transactions in the output This is appropriate if you are trying to simulate an exact exchange of packets including NAKs It is usually more appropriate to exclude the NAKed transactions and use the Retries SAMEFRAME or Retries NEXTFRAME command This allows emulation of the host to automatically retry any NAKed transaction If including NAKed transactions it is appropriate to use Retries NONE in your script The automatically created script will contain the appropriate setting for Retries User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 130 mig p USER MANUAL ELECTRONICS Include Transfer Descriptions as Comments is selected by default This is extremely useful in interpreting your script later on Finally you have the option to use the original frame number from the SOF packets or by default to generate them automatically starting at 0 When happy with your selections click on OK and your generator script file will appear in its own edit window Below it will be an empty output pane This is for compiler output information G3 GraphicUSB _mouse_ls mgen E File Edit view Operations Window Help Oa S a hnw d i Vbus 4 93v 7 835mA Generator File originally exported
111. ring may span several lines of text as long as e each line which is not the end of the string is terminated as the last character with a NV e each subsequent line in the string cannot have any white space at the start of the string which is not part of that string e a line which is part of a string cannot have a comment e a line which is part of a string cannot be blank A string may include a line break by including the symbol n at the required point To have the symbol in the string you must include at the point required See the template file above for examples of long strings 3 21 3 2 5 lt Device gt lt Device gt The whole file is the description of a device and so must start with the lt Device gt tag and end with lt Device gt 3 21 3 2 6 VID PID User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 116 H ELECTRONICS USER MANUAL Following the lt Device gt tag the next two lines must define the Vendor ID and the Product ID of the device 3 21 3 2 7 lt Control Request gt lt Control Request gt Each defined control request must be introduced by the Control Request gt tag and ended with lt Control Request gt Between the tags you should define the parameters of the request by specifying the following FileType bmRequestType bRequest bRequest desc bRequest text wlindex desc wlindexH desc windexL desc wValue desc
112. s Clicking this button removes shows any NAKed transactions This differs from filtering NAKs during capture where NAKed control transactions will always be included Fat Show NYETs Clicking this button removes shows any NYETed transactions Note that successful transactions responded to by NYET are not hidden NYET is only used on high speed links E Show Spurious Data Clicking this button removes shows any spurious data packets Such packets cannot be determined to be valid members of a transaction and may be caused by inadequate cabling or result from data sent by a high speed host as the device is being unplugged The first in any sequence of spurious packets is shown automatically but the ones following may be hidden User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd re OH USER MANUAL ELECTRONICS Min Show Top level Events Only This is a quick way to view a summary of the sequence of events Clicking this button turns off the following buttons in one click e Show SOF e Show Bus States e Show Chirps e Show Transactions in Control Transfers e Show Packets e Show NAKs e Show NYETs e Show Spurious Data It turns on e Show Bus States It has no effect on the Custom Filter Max Show All Events This is a quick way to view every one of the sequence of events Clicking this button turns on the following buttons in one click e Show SOF e Show Bus States e Show Transactions in Control Tran
113. s case Packet Master USB500 AG has a built in Vgus measuring option If two USB500 AG units are used we recommend that the Veus voltage and current measurements are specified as being read by the unit used as an analyser This eliminates any current drawn by downstream analyser units being included in the measurement More detail on configuration and using the generator is given later under GRAPHICUSB SOFTWARE GENERATOR User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 21 me USER MANUAL ELECTRONICS 2 TECHNICAL DATA 2 1 Requirements The minimum requirements for the Packet Master Host are as follows e Pentium 3 600MHz e PC with High Speed USB port should be dedicated to the capturing Actual target device should be connected to a different Host Computer to ensure reliable capture bandwidth e Windows XP Service Pack 1 or better or Vista 32 bit or 64 bit e CD ROM DVD Drive e 1GB RAM e 100MB space on Hard Disk Note A good performance machine is recommended for good capture rate 2 2 Specifications USB12 Weight 165 g Dimensions 129 x 100 x 31 mm Temperature 0 C 40 C Humidity 20 80 non condensing 150mA from USB host Power Optionally zero mA from USB if powered externally User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 22 me USER MANUAL ELECTRONICS 2 3 Specifications USB480 Weight 360 g Humidi
114. sage can accompany a halt in execution of your script perhaps because a particular command is illegal in the current link state It is also possible to receive a message that a particular event is being waited for This would not normally result in halting execution merely pausing it while the wait takes place and in the case that the event in question finally occurs execution will continue User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 160 me USER MANUAL ELECTRONICS 4 13 Generator Script Suggestions A generator is not the same thing as a real host It follows a sequence of commands with the minimum of interaction with the driven device The main object is to stimulate a device in a fairly precise and simple way in order to capture the response In order to allow flexible operation the generator has the capability of automatic retries on NAKs and where appropriate also NYETs It also automatically outputs accurately timed SOFs or Keep Alives without having to define this specifically in the script timing There are certain limitations to a generator which it is as well to understand The generator script makes the assumption that the device is going to behave in a certain way in response to each request Let us take a USB Mouse as an example device In normal operation after enumeration a real host will send an IN packet at regular intervals perhaps every 8 ms and will receive eithe
115. sfers e Show Packets e Show NAKs e Show NYETs It has no effect on the Show Chirps button and also no effect on the Custom Filter User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 78 me USER MANUAL ELECTRONICS 3 11 Custom Filter It is sometimes required to filter out transactions to particular addresses or endpoints in order to simplify the display of events For example a capture may contain spurious part transactions intended for an upstream hub which may perhaps be misinterpreted by the analyser Hiding them allows you to concentrate on the important transactions 3 11 1 Custom Filter Settings Ge Custom Filter Settings When you click on the Custom Filter Settings button or select it from the View menu the following dialog appears Custom Display Filter Enable Filter Add Rule Show Unless v Filter Rules LG ule rou can create rules for showing or hiding events according to D various criteria Choose Show Unless or Hide Unless to allow the simplest rules to achieve your requirement The elements within a tule are ANDed together and the rules are ORed together to determine whether an event should be shown or hidden First decide if your requirement is to Show Unless or to Hide Unless Choose whatever will result in the simplest rules When you User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 79
116. stom Filter Enable A Go to Event number Ze Go to selected Event A Go to Previous Bookmark J Go to Next Bookmark User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 39 me USER MANUAL ELECTRONICS 3 6 Capturing Capturing may be started by either clicking on the Capture button situated on the tool bar of GraphicUSB or by momentarily pressing the Start button on the front panel During capturing an Event Capturing Window opens This window displays the following information e The number of packets received e The number of ACKed transactions e The number of NAKed transactions e The number of frames received e The duration of the current capture e The size of the captured data in bytes e Analyser FIFO usage USB480 and USB500 AG only At any time during the capture devices may be plugged in or out We recommend that this be done using the cable to the device and not the cable to the host to enable the most accurate interpretation of events So the host cable should be connected to the analyser first and then left connected during captures User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 40 me USER MANUAL ELECTRONICS Event Capturing During Capture all events on the USB link will be saved to a buffer ou may plug in or unplug your device while capturing Click here to run traffic generator Generate Capture Filtering Enabled oO Capture Ei Buffer Full
117. t the descriptor you wish to export or click on Export All To assist you in deciding which is the appropriate descriptor the event number and the device address are displayed If you had previously selected a valid descriptor in the capture pane then this descriptor will be pre selected when you open this dialog You should now choose the format in which you wish to export the descriptor By default it will be output as a commented c code structure When you have made your selection click on OK and you will be invited to choose the name and location of the exported file An example file is shown below User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 99 H ELECTRONICS f f Device Descriptor Btatic const unsigned char descriptorss6 H Oxiz 0x01 0x10 0x01 0x00 0x00 0x00 0x08 Ox62 OxOF 0x01 0x10 0x01 0x00 0x01 Danz oxoo 0x01 User Manual Packet Master 2 07 ff ff ff ff ff ff ff ff if ff ff ff ff ff ff if if ff USER MANUAL levent number 56 bLength bDescriptorType beduse ls byte bedause me byte bDeviceClass Defined in Interface bDevicesubc lass bDeviceProtocol bMaxPacketSized idVendor ls byte idvendor ms byte idProduct ls byte idProduct ms byte bedDevice ls byte me byte iManufacturer iProduct iserialNumber bNumContiguration DEVICE bcedbewice Copyright 2006 2009 MQP Electronics Ltd 100
118. terials and workmanship for the warranty period subject to the limitations below MQP Electronics will at its discretion either repair or replace any part that proves defective because of faulty materials or workmanship 6 2 Limitations This warranty does not cover any damage that results from any accident misuse or unauthorized disassembly or repair This product is not authorized for use as a critical component in life support equipment or any application where failure would result in any loss injury or damage to persons or property 6 3 Warranty Period The warranty starts on the day of purchase and covers a period of one year 6 4 Obtaining Service Defective product may be returned to the authorized distributor from whom you purchased the product Defective product may be returned direct to MQP Electronics Please call 44 0 1666 825 666 and request a Return Material Authorization RMA number from customer services User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 173
119. tes button removes shows the following events e Plugged in e Unplugged e Reset e Suspend e Resume gi Show Chirps Clicking the Show Chirps button removes shows chirp events within a High Speed Detection Handshake Chirps are only used on high speed links User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 72 me USER MANUAL ELECTRONICS Show Transactions A Control Transfer contains a number of transactions starting with a SETUP Clicking this button removes shows the transactions within a Control Transfer The example below shows the effect of filtering out the transactions 81 87 Control Transfer Addr Endp Data 0 bytes Status 5 126 195 s Set Address 0x01 0x00 Ox0 OK 81 83 5 126 195 s SETUP Joo 00 00 05 0100 00 00 oo oof ACK 85 87 5 127 195 s L JN ooo oo PACK I 127 146 Control Transfer Addr Endp Data 18 bytes Status 5 166 196 s Get Device Descriptor 001 Ox0 12 01 00 02 000000 08 127 129 5 166 196 s SETUP Tool 00 800600010000 1200 ACK Show Transactions 81 87 Control Transfer Addr Endp Data 0 bytes Status 5 126 195 s Set Address ON 0x00 ol OK 127 145 Control Transfer Addr Endp Data 18 bytes Status 5 166 196 s Get Device Descriptor 0x01 0x0 12010002 00000008 Hide Transactions User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 173 mgp USER MANUAL ELECTRONICS If transactions within control transfers have been
120. tiation Protocol HNP exchange of control ControlMode HOST must only appear e when acting as a device User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 138 me foe ELECTRONICS e after being suspended and e after having floated the data bus using PullupOff ControlMode DEVICE must only appear e when acting as a host e after a SuspendHnp command See sample OTG script fragments in a following section for further information Retries NONE Host Only Retries SAMEFRAME The Retries command determines the Retries NEXTFRAME method used to do transaction retries after a packet with an expected PID fails to arrive If not included in the script the compiler will assume NONE i e that retries should not be attempted In this case execution of the script will hang at this point with a suitable error message The SAMEFRAME setting will attempt up to four retries per frame The NEXTFRAME setting will attempt one retry per frame Reset lt n gt Host Only Apply SEO for lt n gt us A value of 0 for lt n gt is an instruction only to start applying the reset condition This form is used when a high speed handshake chirp sequence is involved User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 139 me USER MANUAL ELECTRONICS Suspend lt n gt Host Only Idles for lt n gt ms This means it
121. tions in the other boxes to the right of the command When happy with your selection click on Insert Command User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 135 mig p USER MANUAL ELECTRONICS The second way of inserting commands is by using the Insert Sequence This is also found in the Edit menu or by typing Ctrl Shift l Add Generator Script Command Sequence Command Set Speed Device Mode e High Full Low Sequence Power Up Establish HS Link D Acting as a host issue commands to power up wait for device to be plugged in negotiate high speed and start the SOFs D Command sequence will be inserted at start of line with caret Cancel Insert Sequence This is a more powerful approach as it allows you to enter all the required commands for a particular operation in one go Typical examples are a complete Power up or Get Device Descriptor sequence The procedure here is e Before entering the dialog ensure that your caret is located at the start of the line you want to insert the sequence in front of e First select the command set host or device depending on which you are currently emulating e Select the required link speed e The command box will be filled with only those command sequences appropriate to the mode and the link speed you have selected e Select the sequence you want to insert the purpose of the sequence is explained below the select
122. tor Session starts Idle 6000000 Reset 0 WaitChirp SendChirp 750 50 50 Idle 180 SOFOn 0 SOFs 875 4 14 4 2 B device requests a session from A device B device script Ending original session WaitSuspend WaitVbusOff detect end of session PullupoOfft remove pullup resistor Idle 600000 H Session Request Protocol PullupOn FULLSPEED Idle 300000 Sms data line pulse Pullupoff VbusOn Idle 300000 Dms Vbus pulse VbusOfft Idle 6000 WaitVbusOn wait for Vbus from A device PullupOn FULLSPEED apply pullup resistor WaitReset wait for A device to reset bus SendChirp 1 2000 0 start HS detection handshake WaitChirp User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 168 mig p USER MANUAL ELECTRONICS 4 15 Generator Limitations The generator can be programmed to behave as e A high speed full speed or low speed host e A high speed full speed or low speed device e The up or downstream facing port of a USB2 0 e The downstream facing port of a USB1 1 hub It cannot however be programmed to behave as the upstream facing port of a USB 1 1 hub User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 169 me USER MANUAL ELECTRONICS 5 TROUBLESHOOTING During capture a Data Overrun message appears This happens when the device under test generates more traffic than th
123. tsndrrrstccgumiwwetentenctancatennes 37 3 5 2 View Filter Toolbar scciiisscscrsissiicrcinsaieententibeidencceusvaannheodtown 39 3 6 Capturing E 40 User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 3 me USER MANUAL ELECTRONICS 3 7 Device Information FileS sicuxcccniiviener enews 42 3 7 1 Creating a Device Information File 43 3 7 2 Using a Device Information File nrnna 45 3 7 3 Automatic Assumption Aesignment 48 3 7 4 Device Information File Syntax Rules anaanneeenaaneeee 50 3 8 Triggering USB480 c1 sccccssssseessseseessssecesensesseasenssaenenseaes 52 3 8 1 Trigger AS MOU E 52 3 8 2 Trigger As e E 52 3 8 3 Trigger Not In lee ENEE 53 3 9 Advanced Triggering USB480 and USB500 AG 54 B95 Operati EE 54 3 9 2 Events Available For Trggermg 55 3 9 3 let eege 56 3 9 4 Sequences E 59 3 9 5 Token Ge 61 3 9 6 Data PACK lS sicncescseeesassaceaerae rset ac cerlecoeece amet 62 SO Split Packets arrcinintdaooenanta nav rae e EEEE AREARE ERRER 63 3 9 8 Miscellaneous Events A 64 3 9 9 Other Settings EE 65 3 9 10 Preset Trigger Settings EEN 66 3 9 11 Manual Triggering ccccccccceeseseeeeeeeeeeeeeeeeeseneeeeeees 68 SECH BNC COnMC CIO ee 69 SS Da E ele E E 70 3 9 14 SAVE SSUIN eege EE 70 3 9 15 Load Settings wrcwiecccuctos ss daar taintddannnnetmndiadeshaiadancaasstisauniens 70 3 9 16 Finding the fgogerbomts 70 3 10 Display PULCIS sas ciciccssice ce necctccccaceeveria
124. txt e exported descriptor file c asm e exported current event data file c asm e generator script mgen e vendor class information file mven e device information file mdev These file types are all opened in the GraphicUSB built in text editor The editor has the following features e contextual colouring e bookmark capability e goto line number e printing and selection printing e find and replace functions e word selection by double mouse click e dragging of selected blocks Additionally a second output pane is associated with certain file types e generator script e vendor class information file e device information file This is used to display validation or compilation output User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 103 me USER MANUAL ELECTRONICS 3 19 2 Editing All the normal text editing functions are implemented in an industry standard way so that using the editor should be instinctive therefore not requiring much description here Available keyboard accelerators are shown against the functions in the menus in the usual way e g Add Bookmark Ctril F2 3 19 3 Bookmarks Any line the text file may be book marked by first putting the caret on that line and then pressing Ctrl F2 A blue marker appears in the grey left hand column to indicate that the line is bookmarked Pressing the F2 button takes the caret in turn to the start o
125. ty 20 80 non condensing 225mA from USB host Power Optionally zero mA from USB if powered externally 2 4 Specifications USB500 AG 20 80 non condensing 300mA from USB host analyser mode only Optionally zero mA from USB if Power powered externally External power supply included required for generator mode operation User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 23 me USER MANUAL ELECTRONICS 2 5 Maximum Capture File Size The maximum size of the Capture file is limited by the available RAM in the Host computer 2 6 Safety CE compliant 2 7 Feature Connector USB12 The signals available on the back panel connector are Pin Signal Notes 1 D De glitched and synchronised with the 48 or 6MHz clock 2 GND 3 D De glitched and synchronised with the 48 or 6MHz clock 4 GND 5 DECODED DATA Decoded NRZI data 6 GND 7 DATA CLOCK ENABLE Data sampling signal phase locked to the incoming signal transitions 8 GND PACKET SYNC PULSE A pulse one clock period wide indicating that the sync pattern has been detected 10 GND User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 24 H ELECTRONICS 2 8 Feature Connector USB480 and USB500 AG in Analyser Mode USER MANUAL The signals available from the transceiver on the back panel connector are
126. uu tun 111 te nition PUN utzziuuu tz Ute TED EFFE Ek DD CB be OE hah PO ae EH kEE KE EE HBK EE E EFFE 34 490 000 s 34 491 000 s 34 492 000 s nn s lt 26158 events For Help press F1 Across the bottom of the window is the timeline and bandwidth utilization pane The bandwidth utilisation or both displays can be hidden using the toolbar icon Initially on Opening a capture file the timeline will span the complete duration of the capture The zoomable timeline pane shows actual bus activity down to packet level allowing a rapid assessment of bus usage The SOF packets or Keep Alive events are shown slightly higher to show immediately where the frames begin and end The bandwidth utilisation indicates the proportion of data throughput compared with the maximum possible User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 33 me USER MANUAL ELECTRONICS 3 2 3 1 Zooming the Timeline Bandwidth Pane Zooming will always remain centered around the selected time There are a number of ways to zoom this pane To zoom without clicking in the pane use the zoom buttons on the toolbar RQ Clicking in the timeline pane enables zooming by means of mouse wheel or by using cursor up or down keys Note that if you click at the bottom of the pane while the cursor looks like a hand the selected time will not be affected 3 2 3 2 Dragging the Timeline Bandwidth Pane While the cursor
127. vel based operation is straightforward and unambiguous For pulsed output operation the pulse length is approx 83 ns and there is of course no way to distinguish BNC Out On from BNC Out Off User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 69 me USER MANUAL ELECTRONICS For pulsed input operation the leading edge of the pulse is used and the pulse must last for at least 50ns The first pulse will be taken to be a BNC Socket Input On and the second to be BNC Socket Input Off 3 9 13 Trigger Off Clicking this button on the Top Level tab or selecting it from the Preset options results in the Trigger being switched off In this mode pressing the Packet Master Start button will result in capturing taking place immediately In this mode the Pre Trigger Buffer is not operational 3 9 14 Save Settings Clicking this button on the Top Level tab will save all the current settings as though you had pressed the OK button and then allow you to save the trigger settings to a file of your choice 3 9 15 Load Settings Clicking this button on the Top Level tab allows you to select a file of previously saved settings to configure the triggering settings 3 9 16 Finding the Trigger Points If the capture file contains a Trigger Start or Trigger Stop event the appropriate icon on the toolbar will be enabled RR Green for Go To Trigger Start Event and red for Go To Trigger St
128. vice wait for end of KJ pairs If a device it switches to high speed terminations after detecting 3 KJ pairs SendChirp lt n gt lt k gt lt j gt Host or Device This sends a series of lt n gt KJ chirp pairs where each K chirp lasts lt k gt us and each J chirp lasts lt j gt us If emulating a device chirp specify User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 142 me USER MANUAL ELECTRONICS lt n gt as 1 and lt j gt as 0 WaitPullupOn LOWSPEED Host Only WaitPullupOn FULLSPEED If the wrong polarity is detected WaitPullupoff execution is halted with an error code SOFOn n Host Onl n is number of first frame Start to transmit regular SOFs or Keep Alives as appropriate If re used it starts next SOF immediately without waiting for correct time If n is omitted frame number of next SOF is not reset The default starting frame number is 0 if this is first SOFOn Note that Suspend is one way to turn SOFs off There are other commands which will have the same result such as Reset VbusOn VbusOft SendPacketLs Host or Device SendPacketFs Sends a packet containing the data SendPacketHs bytes specified within the brackets The PID byte and any CRC bytes must also be specified See the predefined value table below for special values e ACK NAK DATAO etc e CRC16L e CRC16H e AD EP C5
129. zenseecnceiasenvecerencabsventeaes 72 3 11 Custom RTE 79 3 11 1 Custom edd e E 79 3 11 2 Custom Filter Enable c cc ecccccccceccseceeseseeeeseeeeees 83 3 12 Search E 84 3 121 BV GENES SANGIN EE 84 3 12 2 Transaction Search ccc siccescccosccensszscnccdanccscomecieddweceeeensi 85 3 123 Data e E 86 User Manual Packet Master 2 07 Copyright 2006 2009 MQP Electronics Ltd 4 me USER MANUAL ELECTRONICS 3 12 4 Setup Search E 87 3 12 59 Eror SAIC E 88 3 13 Multiple Event Headers 1 cccccccssscccceeneeneeseeeenensneseeeeeens 89 3 14 BOOKIMAPLKS 0cccccssconscnsscnccneenensananeannsersanacnsensenaraaeaaenansansanses 89 3 15 ad 611 11818 Bee ree ee ERE CPE OR OEP eRPER PEE EEE SE RTT OMe nme ea ee Ere ree 91 3 16 EE 91 SCHEI Eege ee 91 3 16 2 Miscellaneous Settings ccccccseeeeeceeeeeeeeeeeeeeeseees 92 3 16 3 e e E 93 3 17 Command Line Capture Control seen 94 3 17 1 Start Captur eerca r EEEE RN 94 3 17 2 Restart Capture E 94 3 17 3 Stop Re ad 95 3 174 Display TE 95 3 18 Export E 96 3 18 1 Exporting Capture Events 96 3 18 2 Exporting Capture Events Data Only e 98 3 18 3 Exporting DESC DONS E 98 3 18 4 Exporting Data from a Specific Event 102 3 19 Text EO E 103 3 19 1 Introduction riscnccedsoennissiaetxsadannsdicmneteresseecalesseiunstdanean telus 103 3 19 22 Tt EE 104 fu LE OR een e 104 3 19 4 Error E et 104 3 20 E Te 105 3 20 1 Invalid PID secerni knna Kanan 105
Download Pdf Manuals
Related Search
Related Contents
maintenance Controlador NC400-6 Sony LCM-F505 Instruction Manual Video Troubleshooting Guide threeDwall EKB-02-111 Instructions / Assembly Weider WESY3873 User's Manual Atlantic 4.5 C Speaker INSTRUKCJA PL ANG. REG ZAPOTRZ 19092013 Material general, estufas y balanzas Copyright © All rights reserved.
Failed to retrieve file