Two communication USB with V-usb

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Trindade
Posts: 5
Joined: Fri Mar 08, 2013 3:49 pm

Two communication USB with V-usb

Post by Trindade » Fri Apr 05, 2013 3:51 pm

Hi,

i'm trying to make a system that receive data from usb and send it from another usb with the same atmega. It is possible to do it with V-usb??

I thought I could duplicate the functions that configure the pins of atmega where the usb will connect. But when I was studying the code i notice that the files .INC can't be changed because they are configure for wich frequency. I have little experience so I also thought about using another atmega to receive data, send it for the second atmega that will send by usb to one host. This is my plan b.

vouvoume

Re: Two communication USB with V-usb

Post by vouvoume » Sat Apr 06, 2013 4:12 pm

Perhaps you use two cheap MCUs (ATmega8) with VUSB in each.
Via tWI (I2C) or SPI you can interconnect them to implement your function.

Best regards

Trindade
Posts: 5
Joined: Fri Mar 08, 2013 3:49 pm

Re: Two communication USB with V-usb

Post by Trindade » Sun Apr 07, 2013 12:04 am

thanks ;)

One more question. I'm looking for a software that i could use to send data from host to microcontroler. I have seen the usb hid terminal but this one is for PIC microcontroler. I'm doing my search right now and so far nothing appears. If someone can give me a name i would be very appreciated :)

Trindade
Posts: 5
Joined: Fri Mar 08, 2013 3:49 pm

Re: Two communication USB with V-usb

Post by Trindade » Sun Apr 07, 2013 12:38 am

Trindade wrote:thanks ;)

One more question. I'm looking for a software that i could use to send data from host to microcontroler. I have seen the usb hid terminal but this one is for PIC microcontroler. I'm doing my search right now and so far nothing appears. If someone can give me a name i would be very appreciated :)


I'm making confusion... forget this question. I already have my answer

Thanks

vouvoume

Re: Two communication USB with V-usb

Post by vouvoume » Sun Apr 07, 2013 3:19 pm

Hi again!

TinyUSBboard (http://matrixstorm.com/avr/tinyusbboard/) is an exaple V-USB board.
Its project page has many examples and one of them is a template for interacting with a computer via USB.
This template contains a firmware as also platform independed code for your computers end.
(http://matrixstorm.com/avr/tinyusbboard/#examples : VUSB skeleton/example)

Of course you could also use avrBridge.
(http://matrixstorm.com/avr/tinyusbboard/#firmwares : tinyUSBboard as avrBridge)

Best regards,

Post Reply