EmbeddedRelated.com
Forums

USB Breakout

Started by }{ February 13, 2008
"andrew queisser" <andrew.queisser@hp.com> wrote in message 
news:fovmoe$akd$1@usenet01.boi.hp.com...
> > >> I have a machine that can accept data and perform as follows, if char 5 >> == char 6 then do something. The new machine cannot do this, but can do, >> if char == 1 then do something. >> > Just curious - what kind of machines are these? Seems odd to have such > specific behaviour in what sounds like relatively expensive equipment. >
They sort items according to a read in barcode. The story goes like this My customer has some top of the range machines(250,000 - 750,000) from my division Decided to buy another machine with less capability(<150,000) for a specific job but using the same barcode spec Provided Sales with Samples Sales send samples to the other division who confirm their machine can handle it(it wasn't sales fault for once!) Machine supplied by other division but to be looked after by my guys Machine didn't work as expected Quite rightly, customer shouldn't pay for the upgrade and doesn't want the extra footprint My division don't want to pay for the upgrade Other division would have to pay, but customer still doesn't want the increase in machine size I am bending over backwards for this customer because they are VERY good.
> I agree with the other poster that modifying the data stream with a micro > would best be done at some other spot than USB, if possible.
This may be my last option before giving up on this one, Thanks for all your help guys.
> > Andrew >
"Nobody Here" <nobby@invalid.invalid> wrote in message 
news:13r6kv5k2cml0e4@corp.supernews.com...
> }{ <snoozegroup@blueyonder.co.uk> wrote: >> It was a f**k up between 2 departments in my work that will cost in >> excess >> of 15,000 to put right by getting custom software and additional >> hardware(which would double the machines size), or hopefully 10 for a >> couple of PICs. > > If your company is big enough to have 2 departments that can't talk to > each > other properly then it's big enough to lose the 15,000 and learn a > salient lesson from the ordeal, surely? > > Nobby
I agree entirely, but the customer concerned doesn't want the increase in size that the upgrade would bring and they are one of our biggest customers.
}{ a &#4294967295;crit :
> "andrew queisser" <andrew.queisser@hp.com> wrote in message > news:fovmoe$akd$1@usenet01.boi.hp.com... >>> I have a machine that can accept data and perform as follows, if char 5 >>> == char 6 then do something. The new machine cannot do this, but can do, >>> if char == 1 then do something. >>> >> Just curious - what kind of machines are these? Seems odd to have such >> specific behaviour in what sounds like relatively expensive equipment. >> > > They sort items according to a read in barcode. The story goes like this > > My customer has some top of the range machines(250,000 - 750,000) from my > division > Decided to buy another machine with less capability(<150,000) for a specific > job but using the same barcode spec > Provided Sales with Samples > Sales send samples to the other division who confirm their machine can > handle it(it wasn't sales fault for once!) > Machine supplied by other division but to be looked after by my guys > Machine didn't work as expected > Quite rightly, customer shouldn't pay for the upgrade and doesn't want the > extra footprint > My division don't want to pay for the upgrade > Other division would have to pay, but customer still doesn't want the > increase in machine size > I am bending over backwards for this customer because they are VERY good. > >> I agree with the other poster that modifying the data stream with a micro >> would best be done at some other spot than USB, if possible. > > This may be my last option before giving up on this one, Thanks for all your > help guys.
You could see what you can do with this protocol analyser and pattern generator, or perhaps ask the customer support. http://www.ellisys.com/products/usbex260/technical.php http://www.ellisys.com/products/download/usbex260_gen_manual.pdf
Ulf Samuelsson wrote about someone's need to diddle the contents of
a data stream between a USB host and device:
> You could conceivably put an MCU with a USB host and a USB device > in between, and let the MCU process the packet before sent out/in to > the downstream device. > > There will be some latency involved, but that may or may not be a problem.
Probably OK as long as the bandwidth isn't approaching the limit and you're not worried about isochronous transfers. The Cypress EZ-Host (CY7C67300) and EZ-OTG (CY7C67200) also come to mind, for compact, low-cost solutions. They each have two USB SIEs that can each be configured as device or host. They can boot from an I2C EEPROM. The main drawback is that they use the Cypress CY16 core, so there aren't many choices for development tools. On the other hand, they're very inexpensive.
"Don McKenzie" <look@mysig.com> skrev i meddelandet 
news:61i6d6F1v548pU1@mid.individual.net...
> Ulf Samuelsson wrote: > >> You could conceivably put an MCU with a USB host and a USB device >> in between, and let the MCU process the packet before sent out/in to >> the downstream device. >> >> There will be some latency involved, but that may or may not be a >> problem. >> If it is a one off project, you could get an AT91SAM9260 board >> with a device and a host somewhere, maybe at www.olimex.com. > > SAM9-L9260 DEVELOPMENT BOARD FOR AT91SAM9260 MICROCONTROLLER > Olimex hasn't got them yet Ulf. :-( > > Nice looking board. I tried to order a bunch recently but no luck. > Give him a couple of months I think. > > Cheers Don... > >
Have some customers using the board, so maybe you need to be nicer to Tsvetan. -- Best Regards, Ulf Samuelsson This is intended to be my personal opinion which may, or may not be shared by my employer Atmel Nordic AB
donald wrote:
>I would like to use a USB stick on a project.
I've had good results with one of these: http://www.alfat.co.uk/usbwiz.html Andy
Ulf Samuelsson wrote:
> "Don McKenzie" <look@mysig.com> skrev i meddelandet > news:61i6d6F1v548pU1@mid.individual.net... >> Ulf Samuelsson wrote: >> >>> You could conceivably put an MCU with a USB host and a USB device >>> in between, and let the MCU process the packet before sent out/in to >>> the downstream device. >>> >>> There will be some latency involved, but that may or may not be a >>> problem. >>> If it is a one off project, you could get an AT91SAM9260 board >>> with a device and a host somewhere, maybe at www.olimex.com. >> SAM9-L9260 DEVELOPMENT BOARD FOR AT91SAM9260 MICROCONTROLLER >> Olimex hasn't got them yet Ulf. :-( >> >> Nice looking board. I tried to order a bunch recently but no luck. >> Give him a couple of months I think. >> >> Cheers Don... >> >> > > Have some customers using the board, so maybe you need to be nicer to > Tsvetan.
:-) not sure what I have to do Ulf. Trouble is his boards are too popular. I just keep ordering what customers request, and hope they come. Explained at: http://www.dontronics-shop.com/Dontronics-Stock-Levels-sp-62.html#olimex Cheers Don... -- Don McKenzie Affiliate Program: http://www.dontronics.com/affiliate Site Map: http://www.dontronics.com/sitemap E-Mail Contact Page: http://www.dontronics.com/email No More Damn Spam: http://www.wizard-of-oz.com Parallax Propeller Powered .96" OLED module http://tinyurl.com/2vr2gr
On Feb 13, 5:30=EF=BF=BDpm, "}{" <snoozegr...@blueyonder.co.uk> wrote:
> I am planning a project and would appreciate any guidance you guys could > give. > > At the moment, I have a measurement device connected to a decoder box - th=
e
> decoder box is connected to another PCB using a USB cable. > > If practical, I would like to break into the USB cable running between the=
> decoder box and the PCB to modify the values on the fly. Specifically, if > two digits(say char 5 and char 6) are the same, a 1 would be appended, > otherwise a 0 would be appended. > > So if 123456789 were transmitted from the decoder, I would like to interce=
pt
> and change it to 1234567890. > > Likewise if 123455789 were transmitted, I would change this to 1234557891 > and send on. > > I have some experience programming PICs and RS232 but no experience using > USB(2 in this case). > > Initially, I was thinking about using a PIC with a USB input connected to > the decoder, the same connected to the PCB and SPI between the two PICs. > > Firstly, is this possible, and do you have any pointers on PICs & USB2. > > Thanks.
Cant you use a usb to rs232 converter, pic, rs232 to usb converter. You can get them ready made or just use the chips.
In article <d9c3e27a-b3ee-4b69-9dcd-da12751e99d8
@p43g2000hsc.googlegroups.com>, cbarn24050@aol.com says...
> On Feb 13, 5:30=EF=BF=3D3Fpm, "}{" <snoozegr...@blueyonder.co.uk> wrote: > > I am planning a project and would appreciate any guidance you guys coul=
d
> > give. > > > > At the moment, I have a measurement device connected to a decoder box -=
the
> > decoder box is connected to another PCB using a USB cable. > > > > If practical, I would like to break into the USB cable running between =
the
> > decoder box and the PCB to modify the values on the fly. Specifically, =
if
> > two digits(say char 5 and char 6) are the same, a 1 would be appended, > > otherwise a 0 would be appended. > > > > So if 123456789 were transmitted from the decoder, I would like to inte=
rcept
> > and change it to 1234567890. > > > > Likewise if 123455789 were transmitted, I would change this to 12345578=
91
> > and send on. > > > > I have some experience programming PICs and RS232 but no experience usi=
ng
> > USB(2 in this case). > > > > Initially, I was thinking about using a PIC with a USB input connected =
to
> > the decoder, the same connected to the PCB and SPI between the two PICs=
.
> > > > Firstly, is this possible, and do you have any pointers on PICs & USB2. > > > > Thanks. >=20 > Cant you use a usb to rs232 converter, pic, rs232 to usb converter. > You can get them ready made or just use the chips. >=20 >=20
The USB part of the RS232 converter has to connect to a PC or other host device that can handle all the enumeration and control signals. IIRC, the device described by the OP, has only one host and one slave device---not the two hosts your converters would require. Mark Borgerson
On Feb 15, 2:24 pm, Mark Borgerson <mborger...@comcast.net> wrote:
> In article <d9c3e27a-b3ee-4b69-9dcd-da12751e99d8 > @p43g2000hsc.googlegroups.com>, cbarn24...@aol.com says... > > > On Feb 13, 5:30=EF=BF=3D3Fpm, "}{" <snoozegr...@blueyonder.co.uk> wrote:=
> > > I am planning a project and would appreciate any guidance you guys cou=
ld
> > > give. > > > > At the moment, I have a measurement device connected to a decoder box =
- the
> > > decoder box is connected to another PCB using a USB cable. > > > > If practical, I would like to break into the USB cable running between=
the
> > > decoder box and the PCB to modify the values on the fly. Specifically,=
if
> > > two digits(say char 5 and char 6) are the same, a 1 would be appended,=
> > > otherwise a 0 would be appended. > > > > So if 123456789 were transmitted from the decoder, I would like to int=
ercept
> > > and change it to 1234567890. > > > > Likewise if 123455789 were transmitted, I would change this to 1234557=
891
> > > and send on. > > > > I have some experience programming PICs and RS232 but no experience us=
ing
> > > USB(2 in this case). > > > > Initially, I was thinking about using a PIC with a USB input connected=
to
> > > the decoder, the same connected to the PCB and SPI between the two PIC=
s.
> > > > Firstly, is this possible, and do you have any pointers on PICs & USB2=
.
> > > > Thanks. > > > Cant you use a usb to rs232 converter, pic, rs232 to usb converter. > > You can get them ready made or just use the chips. > > The USB part of the RS232 converter has to connect to a PC or other > host device that can handle all the enumeration and > control signals. IIRC, the device described by the OP, > has only one host and one slave device---not the two hosts > your converters would require.
For the sake of arguing, you can use a usb device to rs232 converter (ftdi), pic and rs232 to usb host converter (avr).
> > Mark Borgerson