Shop OBEX P1 Docs P2 Docs Learn Events
usb stick datalogger (usbsdl) — Parallax Forums

usb stick datalogger (usbsdl)

rhuggrhugg Posts: 14
edited 2008-02-21 16:24 in BASIC Stamp
Anybody have any experience with the usbsdl sold by Parallax. Mine seems to hang at random places after a couple of hours of recording. Tried different sticks, different CPU's, different pins, different programs - with the same result including the test program. Any comments would be appreciated.

Rob

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-02-18 04:41
    You would need to give an example of one of the programs that hangs up along with some information about the "hang up". For example, what's the minimum and maximum time frames involved. What are you actually doing in terms of writing? Without one of the programs, it's hard to tell what's going on.

    The chip that does all the work in the datalogger is the Vinculum USB host from FTDI. I've run one of these for several weeks reading files and reading music (the VMusic2 uses the same processor with an MP3 decoder). Clearly it's not the same circumstances, but the chip itself seems to work well.
  • rhuggrhugg Posts: 14
    edited 2008-02-18 05:43
    Thanks MIke - the code i used is attached and is a slight modification of their test code. I will probably order another couple of modules this week to see if the probelm persists. I'm using this to collect some climate data so pretty low sample rate -··a few times per minute. Do you think the PAUSES are critical?
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2008-02-18 05:59
    Hi Rob, scanned the code real quick and I would have thought that the following line should have $06 and not $07, but if your logging for two hours it seems the $07·should have given problems earlier. Just a thought.

    SEROUT usbTX\usbCTS, Baud, [noparse][[/noparse]"WRF ", $00, $00, $00, $07, CR, DEC5 nbvar, ",",CR]·

    Jeff T.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-02-21 16:24
    One other thing…Does the test code cause it to ‘hang’ as well? If not then that would indicate a code problem.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.