lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 22 Sep 2010 11:02:46 +0530
From:	"Raju Rameshwar Uprade" <rajsingh@...a.tifr.res.in>
To:	Greg KH <gregkh@...e.de>
Cc:	linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org
Subject: Regarding USB-to-serial device driver



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. 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ