View previous topic :: View next topic |
Author |
Message |
ellieakim
Joined: 09 Sep 2015 Posts: 15
|
Posted: Thu Oct 15, 2015 9:31 am Post subject: I want to ask my plan with BASCON-AVR and USB Add on |
|
|
I want to make firmware.
But I don't know is this possible.
I read USB Add on sample, but I think those sample is direct connect to PC.
So I don't know what I do.
Please help me if my trial is possible or not.
Thanks
(BASCOM-AVR version : 2.0.7.8 ) |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5921 Location: Holland
|
Posted: Thu Oct 15, 2015 12:50 pm Post subject: |
|
|
I will close your ticket in support since you write similar info here.
- the USB add on is for device mode. which means you can create an usb device like virtual COM, HID like keyboard or mouse. ALl these devices need to be connected to a host device, in most cases a PC.
- what you want is to use an USB stick which is a device. So you would need support for USB HOST mode. That is not supported by the add on.
like i wrote earlier, you can solve it simple by using an SD card instead of the usb stick. or you would need some special usb chip from FTDI. _________________ Mark |
|
Back to top |
|
|
ellieakim
Joined: 09 Sep 2015 Posts: 15
|
Posted: Fri Oct 16, 2015 5:16 am Post subject: Very basic question |
|
|
I don't know what is host mode and device mode correctly.
Why my plans’ USB is host mode.
I read and write data from USB stick?
HIS keyboard and mouse use as input device.
Please explain to me more detail.
Thanks |
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Fri Oct 16, 2015 7:58 am Post subject: Re: Very basic question |
|
|
ellieakim wrote: | I don't know what is host mode and device mode correctly. |
Before asking for private lessons, I advise to look up the Internet, which provides tons of information about "host mode".
Or look up VDIP2, which provides host functionality. |
|
Back to top |
|
|
ellieakim
Joined: 09 Sep 2015 Posts: 15
|
Posted: Fri Oct 16, 2015 8:30 am Post subject: I found It |
|
|
OK
I find only "host mode and device mode in BASCOM"
I found document as host mode.
I want to find solution quickly, I am inattentive.
I am sorry for my hasty. |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5921 Location: Holland
|
Posted: Fri Oct 16, 2015 8:53 am Post subject: |
|
|
you can see host/device as server/client mode. a web browser which is a client, can only connect to a host/web server. you can not connect 2 browser to each other, or 2 servers.
usb host mode is implemented on a PC. this means that you can only connect usb devices such as mouse, keyboard, game controller, usb stick, etc.
you want to communicate with a usb device which means you need to use usb host mode. but the add on is only for usb device mode.
the FTDI VDIP2 chip offers host mode.
but like i mentioned before, instead of using usb stick you could also use a normal memory card like an SD card and use the AVR-DOS file routines to access the card. _________________ Mark |
|
Back to top |
|
|
Evert :-)
Joined: 18 Feb 2005 Posts: 2156
|
|
Back to top |
|
|
enniom
Joined: 20 Oct 2009 Posts: 537
|
Posted: Fri Oct 16, 2015 9:56 pm Post subject: |
|
|
Hi Evert,
Just saw your post. I haven't laughed so hard in a long time!!
Thanks |
|
Back to top |
|
|
|