Re: Revised draft of " [OT?] a SIMPLISTIC RS232 data logger using some flash device --- does it exist commercially?"



On Thursday, in article <11bm45r5dnt9kc2@xxxxxxxxxxxxxxxxxx>
rowlett@xxxxxxxxxxxxx "Richard Owlett" wrote:

>My thanks to the group for providing useful input in response to a
>poorly defined question.
>
>I had broken my problem statement into three parts.
>1. what I wanted to accomplish
>2. a view of possible solution
>3. thoughts on what hardware might satisfy needs/desires/aesthetics
>
>Unfortunately my original post pureed all into amorphous glob.
>My apologies.
>
>I'll break things down in above groupings.
>
>1. What am I looking for
>It might be described as "data logger" or a "very large FIFO".
>
>The input will be an RS232 data stream terminated by <CR><LF> of no more
>than 100 bytes at 4800 BAUD occurring once per second.
>
>It shall buffer/store at least 10 mega bytes
>
>The output shall be via USB
> 1. I wish to take advantage of USB speed
> 2. My computer has available USB port(s)
> 3. My computer does *not* have available serial port(s)

USB to serial port adapters exist, they are not expensive.

>
>2. Possible solutions
>Flash devices are large and do not require power to maintain data.
>There are environments such as FORTH which can presume any mass storage
>device/system to be a sequence of nnn byte blocks/sectors/whatever

Flash to store the data in whether flash chips, CF card or other type
is perfectly OK, as long as the logger can address the device either
directly or by keeping track of which sector it is on.

Your own internal flash chips sodler on the board reduces reliability problems
of connectors or wrong type of CF card installed.

>3. available hardware
>Let's just forget how badly I mangled this one ;{
>
>
>Is this a better problem definition?

Alternative 1
=============

As myself and others said before look at FTDI USB<->serial adapters, then
have the flash inside the device log the data via RS232 at 4800baud.

Then when you need to talk to the PC use the USB to RS232 adapter at very
much higher baud rate (115000 or higher should be possible on most micros)
Use a simple application on the PC to read the device using a USB pseudo
serial port.

This has the advantage of you DON'T have to add USB hardware and software
as well as the RS232, and you only need ONE serial port. The flash can be
soldered on board a smaller and more portable and SEALABLE weatherproof
device.

Also you don't have to get your USB checked on hundreds of USB combinations
and buy IDs etc..

Alternative 2
=============

Using a CF card in a PC without a file system and doing raw read/writes
has a basic problem. Windows allows raw read/writes when a physical drive
exists and has a drive letter. CF card does not have a drive letter until
the Plug and Play from detecting the CF enumerates it and does an auto mount
including mount a filesystem. Until you either bypass that mounting of file
system or only allow format of device options that windows has on automounting
of a device, you wont be able to do raw read/write on a drive that may not
yet exist to the system. Floppies and other devices can do raw read/write
because the drive physically exists and exists as far as system is concerned.

As someone else has said know what the format of the device is and skip the
filesystem blocks is one way, but bear in mind as the CF cards get larger
they maybe formatted as FAT16 or FAT32 depending on size of the CF card.
That in turn will affect your coding.

CF cards and connectors means all sorts of other reliability issues of the
connectors, CF card brands supported, mechanical considerations for sealing
and durability.



Those are the basic choices, decide what you want from the product as a
whole in usability, reliability and other aspects, using the same serial port
in playback mode means less openings and connections to deal with.

--
Paul Carpenter | paul@xxxxxxxxxxxxxxxxxxxxxxxxxxx
<http://www.pcserviceselectronics.co.uk/> PC Services
<http://www.gnuh8.org.uk/> GNU H8 & mailing list info
<http://www.badweb.org.uk/> For those web sites you hate

.



Relevant Pages

  • Re: Home brew Z80 CP/M computer
    ... and ECB prototyping board PCBs available. ... But the flash drives are all USB. ... don't need level converters and all to talk to a simple serial port. ...
    (comp.os.cpm)
  • Re: Driving and Sailing ... where to go from here(?)
    ... ..So I bought an USB to Serial converter. ... adapter is plugged in. ... serial ports is to use a PCMCIA (aka PC Card or Card Bus) serial port ... I have Socket and Qlynx brand PCMCIA serial port adapters and they both ...
    (sci.geo.satellite-nav)
  • Re: Driving and Sailing ... where to go from here(?)
    ... I own three different serial to USB adapters and all of them worked on the first try. ... The setup process for those adapters is invariably that I have to run a setup.exe program from a CD-ROM that came with the adapter to install a driver before I plug the device in. ... Another way to get USB devices attached to a laptop without hardware serial ports is to use a PCMCIA (aka PC Card or Card Bus) serial port card. ...
    (sci.geo.satellite-nav)
  • Re: Building your own flash drive
    ... USB flashdrives? ... If you're "rolling your own" interface and code, compact flash looks just ... SD card readers use an IC that makes the SD card appear, again, as an IDE ... the interface ICs for SD cards or USB memory sticks are ...
    (sci.electronics.design)
  • Re: Anyone used the Velleman K8055 USB experiment
    ... card from plain C programs written with DevCpp. ... USB but appear as a virtural serial port. ... easy using many different programming applications. ...
    (comp.robotics.misc)