Hi,
I need to send data from my PIC micro controller through USB terminal to a device. The communication protocol as per image attached.
The device only receive data/instruction from my controller (through USB). So i need to have USB to USB communication. I intend to use PIC18F4550.
1.Can anybody share idea and do i have to use USB with HID or USB CDC
2.Is there any code example that has almost close similarity that was successfully done that i can make reference.
Tq.
USB to USB communication
USB to USB communication
- Attachments
-
- usb_hasomed.jpg (96.86 KiB) Viewed 3780 times
Re: USB to USB communication
What you describe is impossible.
USB communication requires a host at one end and a device at the other.
PIC18F4550 can only operate as a device, never a host.
You do not say what FTDI device you are using, but I bet it also can only ever be a device.
A USB device can not talk to a USB device.
USB communication requires a host at one end and a device at the other.
PIC18F4550 can only operate as a device, never a host.
You do not say what FTDI device you are using, but I bet it also can only ever be a device.
A USB device can not talk to a USB device.
Start every day with a smile...... (get it over with)
Re: USB to USB communication
Thanks hexreader,
How i do solve the problem? What device that can work as host.
Many thanks.
How i do solve the problem? What device that can work as host.
Many thanks.
Re: USB to USB communication
Many ARM, PIC24 and PIC32 MCU have USB host capability, but problems will still remain:
1) You would need to buy a new compiler
2) You would need the correct driver program for the chosen MCU - I do not know of any, or whether such a thing even exists. You would have to pay someone a huge amount of money to write a driver from scratch.
I suggest that you forget the whole idea.
1) You would need to buy a new compiler
2) You would need the correct driver program for the chosen MCU - I do not know of any, or whether such a thing even exists. You would have to pay someone a huge amount of money to write a driver from scratch.
I suggest that you forget the whole idea.
Start every day with a smile...... (get it over with)
Re: USB to USB communication
Thanks hexreader,
Do you think raspberry pi can do that?
Many thanks,
Do you think raspberry pi can do that?
Many thanks,
Re: USB to USB communication
I do not know, but my guess is that it probably could.saharul wrote: Do you think raspberry pi can do that?
You would have to do some research on Linux drivers for your exact device.
Start every day with a smile...... (get it over with)
Re: USB to USB communication
Thanks hexreader,
Is there anyway that i can convert the signal back to serial.?..
or by hardwire changes such as do some bypass
with jumper wire or anything.
Many thanks.
Is there anyway that i can convert the signal back to serial.?..
or by hardwire changes such as do some bypass
with jumper wire or anything.
Many thanks.
Re: USB to USB communication
Maybe.....
But without knowing anything about your "device" it is hard to guess.
But without knowing anything about your "device" it is hard to guess.
Start every day with a smile...... (get it over with)
Re: USB to USB communication
Just spotted this device:
http://www.hobbytronics.co.uk/usb-host-serial
Maybe - just maybe - it would do what you want. You would need to do your own research to determine if it is suitable.
.... but the hardware is currently out of stock
http://www.hobbytronics.co.uk/usb-host-serial
Maybe - just maybe - it would do what you want. You would need to do your own research to determine if it is suitable.
.... but the hardware is currently out of stock
Start every day with a smile...... (get it over with)
Re: USB to USB communication
Thanks hexreader.
I will try.
Many thanks
I will try.
Many thanks