<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.E-MailFormatvorlage21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:694816670;
mso-list-template-ids:-1840370906;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l1
{mso-list-id:2046633821;
mso-list-template-ids:-1738538988;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level3
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level5
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level6
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level8
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level9
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE-CH" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p><span lang="EN-US">I'm trying to certify USB on our device that is running Linux 4.14. For windows systems we were using
</span><a href="https://www.usb.org/usb2tools"><span lang="EN-US">https://www.usb.org/usb2tools</span></a><span lang="EN-US">. For linux the only option I have found is a kernel module called EHSET. Unfortunately I can't manage to get it working, can You please
help?<o:p></o:p></span></p>
<p><span lang="EN-US">I have added the following configuration:<o:p></o:p></span></p>
<ul type="disc">
<li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo3">
<span lang="FR-CH">CONFIG_USB_HCD_TEST_MODE=y<o:p></o:p></span></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo3">
USB_EHSET_TEST_FIXTURE=m<o:p></o:p></li></ul>
<p><span lang="EN-US">Then on the system I type in </span><code><span lang="EN-US" style="font-size:10.0pt">modprobe ehset</span></code><span lang="EN-US">. After this looking at the
</span><a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/usb/misc/ehset.c?h=v4.14"><span lang="EN-US">source code of ehset.c</span></a><span lang="EN-US"> I assumed that inserting USB stick with VendorID: 0x1a0a and ProductID:
0x0104 would start the Packet command, but it doesn't do anything (not output visible on the oscilloscope). The device is loaded as a regular USB stick.<o:p></o:p></span></p>
<p><span lang="EN-US">The output I see is:<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1059.904034] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1<o:p></o:p></span></p>
<p><span lang="PL">[ 1059.935515] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1059.941700] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1059.948523] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1059.955776] usb usb1: Product: EHCI Host Controller<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1059.960680] usb usb1: Manufacturer: Linux 4.14.87-rt50 ehci_hcd<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1059.966627] usb usb1: SerialNumber: ci_hdrc.0<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1059.974486] usb usb1: usb_probe_device<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1059.982387] hub 1-0:1.0: usb_probe_interface<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1059.986735] hub 1-0:1.0: USB hub found<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1059.990614] hub 1-0:1.0: 1 port detected<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1060.475521] usb 1-1: new high-speed USB device number 2 using ci_hdrc<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1060.677970] usb 1-1: New USB device found, idVendor=1a0a, idProduct=0104<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1060.684709] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1060.691877] usb 1-1: Product: USB DISK 3.0<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1060.696005] usb 1-1: Manufacturer: <o:p></o:p></span></p>
<p><span lang="EN-US">[ 1060.700215] usb 1-1: SerialNumber: 190073AE389B2300<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1060.708279] usb 1-1: usb_probe_device<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1060.716351] usb-storage 1-1:1.0: usb_probe_interface<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1060.724692] usb-storage 1-1:1.0: USB Mass Storage device detected<o:p></o:p></span></p>
<p><span lang="EN-US">[ 1060.745330] scsi host1: usb-storage 1-1:1.0<o:p></o:p></span></p>
<p><span lang="EN-US">Thanks in advance!<o:p></o:p></span></p>
<p><span lang="EN-US">Radek<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>