lkml.org 
[lkml]   [2010]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRegarding USB-to-serial device driver
    Date


    Greg,
    I am facing some problem in data copying.
    I am having a const unsigned char *buf which contains 02 08 00 00 00 00 00 00 f8.
    which is copied in port->write_urb->transfer_buffer and sent on ttyUSB0 using
    usb_submit_urb(port->write_urb, GFP_ATOMIC).

    But I want to send the data bytes is a particular fashion.

    1. I want to Add Mark parity.
    2. Send the data byte 02 ( Address of a device )

    3. Add Space parity .
    4. send the data byte 08 00 00 00 00 00 00 f8 ( Null cmd + check sum )

    Kindly help me.I am facing the problem in separating the data bytes so that I can send
    the data bytes separately using usb_submit_urb.

    Thanks,
    Raj.


    \
     
     \ /
      Last update: 2010-09-22 07:35    [W:2.868 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site