question regarding storing data from barcode (usb)

i need to store data from bar-code reader ( usb (data- , data +)) to micro sd card in ethernet shield.
how can i made it ?

You may be able to use a USB Host Shield to communicate with the USB barcode reader but it would be much easier to use a TTL Serial barcode reader or even one with an RS232 interface which only needs level shifting.

If you must use the USB device you might be better served with something like an old PC or a cheap Linux machine like the Raspberry Pi.

ok.
am i unable to feed usb pin ( D+) as a input to the board and store the data in micro sd card ?

rajeetharan:
am i unable to feed usb pin ( D+) as a input to the board and store the data in micro sd card ?

Correct. USB is a complex protocol with multiple data streams over the same pair of wires. You need something to interpret the protocol and receive the data. A PC or Raspberry Pi has that capability. Even an fairly ancient PC or laptop that nobody wants should be sufficient.

thanks u sir.
the fact is i proposed arduino uno for my project thats why i keen in that.
so
if i used arduino usb shield i will be able to achieve that work ?

regards

and i can get the bar code output from RJ45 ?
can i be achievable by RJ45 ?

rajeetharan:
and i can get the bar code output from RJ45 ?
can i be achievable by RJ45 ?

RJ45 is a connector definition not a protocol description. It's normally used for networking cables but could be used for anything you like.

Don't despair. If you really have your heart set on using an Arduino for this project, the Due might be what you are looking for.

The Due has a second USB connector that can be used as a USB host, and there is library support for mice and keyboards. It is very likely that your USB barcode reader when connected to a computer looks like a keyboard. (Most do.) To verify this, connect your barcode reader to your computer and open any text entry program. (Your favorite text editor, notepad, work, Open/LibreOffice, even the ArduinoIDE. Make sure the cursor is active in that window, and scan a barcode. If you see the barcode numbers appear in your text entry program the barcode reader acts like a keyboard for any device it is attached to. (Looking deeper at the drivers used for the barcode reader, you should see Keyboard or HID, or a combination of the two. HID just stands for "Human Interface Device".)

Just remember with the Due, all the I/O pins are 3.3V. So without using level shifting an existing circuit that uses 5V logic will fry the Due.

(Unfortunately, that's about all I know about the Due. I haven't worked with one yet.)