>Because I don't know the parameters to set the right
>Set_Request setup packet with the right data content. The only
>chance is to copy it from the sniffer log, but I don't find this
>information! There is no 21 hex and A1 hex communication
>packets in the sniffer!
I'm still not completely sure I understand what you're asking, but I think
you are asking what in the sniffer log indicates what values to use for the
set-request and get-request commands?
Your sniffer log shows exactly what to put into the control setup packet,
it's shown as (for example):
SetupPacket =
00000000: 21 0a 00 00 00 00 00 00
See the USB spec for specific details on the setup packet; essentially, byte
0 is the bmRequestType, byte 1 is bRequest, bytes 2 and 3 are wValue, bytes
4 and 5 are wIndex, and bytes 6 and 7 are the transfer buffer length. Note
that all the 2-byte fields are little-endian.
Is that what you were asking?
2010/12/1 Tóth András <ma...@sch.bme.hu>
> Hello,
>
> Excuse me, but one question !
>
>
>
> Hello,
>
> Brian Weischedel is the maintainer of javax.usb now, I am not directly
> involved in it anymore. You should send future questions to the mailing
> list and/or him.
>
> To address below, I don't quite understand what you are asking, although
> I'll point out what may be a key misunderstanding:
>
> >The device has one control channel and it's type is interrupt.
>
> Actually all USB devices have a "Default Control Pipe" (DCP), which is
> almost always the only Control-type pipe/endpoint on the device. Many
> devices also have other pipes/endpoints. HID-type devices, which it sounds
> like may be what you have, usually have a single interrupt-in pipe in
> addition to the DCP (although the HID specification allows for more
> interrupt pipes).
>
> >In this topic I found that I have to send a SET_Request message ,
> >after this I can get the data with Get_Request command.
>
> Those are Control-type commands; you would not use those on the interrupt
> pipe. You have to execute those commands on the DCP.
>
> >I have analyzed
> >the log from the USB Sniffer and I didnt find this conversation steps.
> >I found a command witch has stated with 21 hex but I has not been
> >followed with a1 command.
>
> You have to send both the commands yourself. You create a UsbControlIrp
> with the appropriate setup packet fields, then submit it to the UsbDevice.
> First submit the SET command, then the GET command. Also, some devices
> refuse to operate unless their interrupt-in endpoint is being polled so you
> should make sure to always have an outstanding UsbIrp waiting for data on
> the device's interrupt in endpoints.
>
>
> I really understand and thank you very much for these information, but this
> step I couldn't found in the sniffer log. Because I don't know the
> parameters to set the right Set_Request setup packet with the right data
> content. The only chance is to copy it from the sniffer log, but I don't
> find this information! There is no 21 hex and A1 hex communication packets
> in the sniffer!
>
>
> Excuse me, kind regards
> András Tóth
>
>
>
> If you have more questions, reply back to the mailing list and hopefully
> Brian and/or someone else on the list can help.
>
>
> 2010/11/30 Tóth András <ma...@sch.bme.hu>
>
>> Excuse me Mr Streetman
>>
>> I'm a PHD student at Budapest University of Technology and Economics in
>> Hungary. I'm working on a Human Scale device USB communication protocol in
>> an AAL project. We would like to use a public scale device of Beurer Inc,
>> but this device has no datasheet about it's USB protocol. The first step of
>> its method is measuring the humen weight and fat percent and so on. After
>> the measure phase we can connect the device to the PC via USB port. The
>> scale device was packed together with an MFC program witch can read all of
>> the information about the patient. At university I have the task to connect
>> this device to Linux. The main plan was that to develop a data reading
>> method witch can realize the scale device has connected to the device and
>> start the reading process at the PC.
>>
>> We are working in OSGi system, but i would like to prove a solution with a
>> simple javax JSR80 JAVA application first. If it can solve this problem we
>> can implement it in OSGi environment. So as I mentioned I try to implement
>> it with javax API. I have a lot of log file about the communication. I used
>> google to get some information, there I have met your name.
>>
>> As read your experiences and help for the mates on the Internet. I can
>> solve the communication between the PC and Scale device. I can send the
>> control commands to the device and a have got answers too. But I cant read
>> the stored data.
>>
>> The device has one control channel and it's type is interrupt. In this
>> topic I found that I have to send a SET_Request message , after this I can
>> get the data with Get_Request command. I have analyzed the log from the USB
>> Sniffer and I didnt find this conversation steps. I found a command witch
>> has stated with 21 hex but I has not been followed with a1 command.
>>
>> Please Excuse me for disturbing you. I would be very thankful, if you can
>> help me. i can't understand how indicate the application the scale device to
>> start sending data. The other problem is, I can't guess what should I do in
>> JSR80 API to copy this method. I will copy a part of my log to the end of
>> my letter. Can you help me to get the answer witch commands can be good for
>> getting the magic informations or how can I make the scale device to send
>> those?
>>
>> Tank you very much
>> András Tóth
>> PhD Student
>>
>
>
>
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel