<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>8-bit MicrocontrollersのトピックGeneric HID with HCS08JM</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Generic-HID-with-HCS08JM/m-p/150000#M8019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am trying to use the USB with Generic HID to move some data from my development board to my PC.&lt;/DIV&gt;&lt;DIV&gt;I successfully have the Freescale demo board running and delivering 1 byte of data based on the 2 switches on the eval board.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My problem is that I cannot figure out how to increase the 1 byte to multiple bytes. I tried changing a few of the&amp;nbsp;values, such as the 1 in the following code:&lt;/DIV&gt;&lt;DIV&gt;out_report=hid_add_report(rpt_out, 0, 1);&lt;/DIV&gt;&lt;DIV&gt;in_report=hid_add_report(rpt_in, 0, 1);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As well as the constant EP0_PACKET_SIZE (which is 8 by default.)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any changes I have tried have caused the board to run off into the weeds when I try to USB send.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would appreciate if someone can help me out.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Which values should I modify?&lt;/DIV&gt;&lt;DIV&gt;Do I need to modify my descriptor?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Ultimately, I would like to send a payload of 64 bytes.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advanced.&lt;/DIV&gt;&lt;DIV&gt;Tim&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Feb 2009 06:15:46 GMT</pubDate>
    <dc:creator>ETCTim</dc:creator>
    <dc:date>2009-02-06T06:15:46Z</dc:date>
    <item>
      <title>Generic HID with HCS08JM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Generic-HID-with-HCS08JM/m-p/150000#M8019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am trying to use the USB with Generic HID to move some data from my development board to my PC.&lt;/DIV&gt;&lt;DIV&gt;I successfully have the Freescale demo board running and delivering 1 byte of data based on the 2 switches on the eval board.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My problem is that I cannot figure out how to increase the 1 byte to multiple bytes. I tried changing a few of the&amp;nbsp;values, such as the 1 in the following code:&lt;/DIV&gt;&lt;DIV&gt;out_report=hid_add_report(rpt_out, 0, 1);&lt;/DIV&gt;&lt;DIV&gt;in_report=hid_add_report(rpt_in, 0, 1);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As well as the constant EP0_PACKET_SIZE (which is 8 by default.)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any changes I have tried have caused the board to run off into the weeds when I try to USB send.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would appreciate if someone can help me out.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Which values should I modify?&lt;/DIV&gt;&lt;DIV&gt;Do I need to modify my descriptor?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Ultimately, I would like to send a payload of 64 bytes.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advanced.&lt;/DIV&gt;&lt;DIV&gt;Tim&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 06:15:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Generic-HID-with-HCS08JM/m-p/150000#M8019</guid>
      <dc:creator>ETCTim</dc:creator>
      <dc:date>2009-02-06T06:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Generic HID with HCS08JM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Generic-HID-with-HCS08JM/m-p/150001#M8020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Tim,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You are almost there. I am assuming you are having problems sending back data larger than just a few bytes. If so, you will also have to change your endpoint descriptor in the hid_usb_config.c file.&amp;nbsp; Modify USB_FILL_EP_DEC to something like the following USB_FILL_EP_DESC(0x1, 1, 3, 64, 4). Where 64 indicates that you want to be able to send 64 bytes max back to the host.&lt;/DIV&gt;&lt;DIV&gt;Along with what you have changed already, this should just work.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Goz&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 18:34:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Generic-HID-with-HCS08JM/m-p/150001#M8020</guid>
      <dc:creator>Goz</dc:creator>
      <dc:date>2009-02-09T18:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Generic HID with HCS08JM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Generic-HID-with-HCS08JM/m-p/150002#M8021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;don't forget MaxReportLength in HID.c&amp;nbsp; this sets the array sizes when setting up reports.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 01:57:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Generic-HID-with-HCS08JM/m-p/150002#M8021</guid>
      <dc:creator>TurboBob</dc:creator>
      <dc:date>2009-02-10T01:57:56Z</dc:date>
    </item>
  </channel>
</rss>

