Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

I want to ask my plan with BASCON-AVR and USB Add on

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
ellieakim

Bascom Member



Joined: 09 Sep 2015
Posts: 15

south_korea.gif
PostPosted: Thu Oct 15, 2015 9:31 am    Post subject: I want to ask my plan with BASCON-AVR and USB Add on Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Thu Oct 15, 2015 12:50 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
ellieakim

Bascom Member



Joined: 09 Sep 2015
Posts: 15

south_korea.gif
PostPosted: Fri Oct 16, 2015 5:16 am    Post subject: Very basic question Reply with quote

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
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 2262

blank.gif
PostPosted: Fri Oct 16, 2015 7:58 am    Post subject: Re: Very basic question Reply with quote

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
View user's profile
ellieakim

Bascom Member



Joined: 09 Sep 2015
Posts: 15

south_korea.gif
PostPosted: Fri Oct 16, 2015 8:30 am    Post subject: I found It Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Fri Oct 16, 2015 8:53 am    Post subject: Reply with quote

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
View user's profile Visit poster's website
Evert :-)

Bascom Expert



Joined: 18 Feb 2005
Posts: 2156

netherlands.gif
PostPosted: Fri Oct 16, 2015 1:18 pm    Post subject: Reply with quote

Maybe this can help you.
_________________
www.evertdekker.com Bascom code vault
Back to top
View user's profile Visit poster's website
enniom

Bascom Member



Joined: 20 Oct 2009
Posts: 537

PostPosted: Fri Oct 16, 2015 9:56 pm    Post subject: Reply with quote

Hi Evert,

Just saw your post. I haven't laughed so hard in a long time!!

Thanks
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum