Yahoo Groups archive

Emax

Index last updated: 2026-04-28 23:23 UTC

Message

Re: RS422 fun

2008-11-26 by edbleepin

> installed a driver that was supplied with the firmware, and I can see 
> that in windows system, it's come up as a generic serial port, with 
> settings for:
> 
> Bits per second: (75-128000)
> data bits: (4-8)
> parity: (odd, even, none, mark, space)
> stop bits: (1, 1.5, 2)
> flow control: (Xon/Xoff, hardware, none)
> 
> Also, I can open and close this port in hyperterminal, and adjust the 
> settings in hyperterminal.... 
> 
> Now, I imagine that wheen it is connected to my PC, this port gets 
> listed somewhere inside windows in an appropriate place, and 
> applications looking for serial ports find its information, and can
then 
> request to connect/disconnect, and and send config information - just 
> like any other serial port.... but if I needed to add extra 
> functionality, like a synchronous BPS setting, I have no idea where to 
> put that... but maybe I could find out?


Are you using USBtoSerial.c from MyUSB library?
This uses the standard windows usbser.sys driver.

The baudrate setting is sent from the host PC to the firmware by
Set_Line_Coding request. The implementation has already
USB_UnhandledControlPacket event handler in USBtoSerial.c. 
In this handler you'll see SET_LINE_CODING case, after 
LineCodingData struct is set using Endpoint_Read_Control_Stream_LE()
Set the baudrate of your USART.

Ideally that Baud rate setting in hyperterminal is your BPS for RS422
interface, not for your USB data rate. Hyperterminal only has a subset
of baud rates that it thinks it's interface can handle without testing.


 
> I'm still waiting for the 422 chips, so will start seeing what I can 
> find out about the driver, and the application-driver interface, plus 
> the driver-board  interface. and see what would need to be modified to 
> make this do exactly what we want.
> 
> But yeah. my ideal finished product would be a USB connected board that 
> connects to a PC, and windows sees it as a standard serial interface 
> with standard interface parameters including synch/asynch control 
> (whatever standard for that is!) and your program could therefore 
> connect to it just like it would connect to any other serial interface, 
> and work with it the same way for any sampler....
> 
> Also, I'm not interested in holding any kind of IP here - I'm really 
> just mucking about with configuration and possibly making small 
> adjustments to existing open-source code...... if I create a solution, 
> I'll provide all assembly instructions/code completely open for anyone 
> who wants to use it however they wat.
> 
> One thing - you already have EII comms working with a standard off the 
> shelf USB connector, don't you???
> 
> 
> 
> anyway - we should probably take this discussion off-list. it's getting 
> a bit OT for the emax community in general I think.
> :-)

Keep it on list. 
I find it interesting and some people might have some knowledge that
they can impart?

Cheers,
Ed.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.