Shop OBEX P1 Docs P2 Docs Learn Events
USB datalogger not working — Parallax Forums

USB datalogger not working

si8si8 Posts: 20
edited 2012-03-24 13:56 in BASIC Stamp
HI,

I just tried to update my datalogger using file ftrfb.fdt which i got from http://www.ftdichip.com/Firmware/Precompiled.htm but i dont think it worked.
now nothing seems to work, no lights come on. cant communicate with it :S
is there some way to fix this????

thanks
si

PS any quick reply will be very appreciated and will earn many good karma points!

Comments

  • FranklinFranklin Posts: 4,747
    edited 2012-03-22 21:41
    Did you get the correct file and follow the instructions here?http://www.ftdichip.com/Firmware/Precompiled/UM_VinculumFirmware_V205.pdf
  • si8si8 Posts: 20
    edited 2012-03-23 01:54
    I believe so, I downloaded vdap disc and peripheral v3.68, reflash (ftd).
    i renamed it then put out on usb. Plugged it in, switched it on then...nothing!
    Have I somehow fried it? How would I go about the other method mentioned in the pdf?

    Thanks again
    si
  • si8si8 Posts: 20
    edited 2012-03-23 04:24
    OK, so its not working

    Could someone do me a great big favour and test this code (or help me where it has gone wrong)
    It is based on code talked about in these forums:
    http://forums.parallax.com/showthread.php?112872-Datalogger-BS2-or-SX-(-115200-)
    http://forums.parallax.com/showthread.php?135280-USB-Mem-stick-datalogger-w-BS2-upgraded-firmware-initialization-question

    C
    ode:
    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
    
    
    DLTX            PIN     8
    DLRX            PIN     7
    DBaud           CON     188
    tC             VAR     Word ' temp - Celcius
    rhTrue          VAR     Word ' humidity; compensated
    SrcLSB  VAR byte
    counter VAR word
    
    
    GOSUB initialiseDL
    tc= 222
    rhtrue = 333
    SrcLSB = 1
    counter= 1
    
    
    InitialiseDL:
      LOW DLTX
      SEROUT DLTX, 84, ["IPA", CR]
      PAUSE 200
      SEROUT DLTX, 84, ["SCS", CR]
      PAUSE 200
      SEROUT DLTX,84, [$14,$20,$71,$02,$00,$0D]  'SET BAUD TO 4800
      SERIN DLRX,Dbaud,[WAIT(">")]
    RETURN
    
    
    OPEN_WRITE:
      DEBUG "."
      SEROUT DLTX, DBaud,[$9,$20,"data1.csv", $0D]
      SERIN DLRX, DBaud,[WAIT (">")]
      DEBUG "File data1.csv open", CR
    
    
      DEBUG "Writing ",CR
    
    
        SEROUT DLTX, DBaud, [$8,$20,$0,$0,$0,DEC 16 ,CR,DEC1 SrcLSB, ",",DEC5 counter,",",DEC3 Tc,",",DEC3 rhTrue,CR]
        SERIN DLRX, DBaud,[WAIT (">")]
        DEBUG "."
    
    
      DEBUG CR
    
    
      SEROUT DLTX, DBaud,[$0A,$20,"data1.csv", CR]
      SERIN DLRX, DBaud,[WAIT (">")]
      DEBUG "File ","Reading.csv",".txt closed", CR
    RETURN
    
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2012-03-23 15:18
    Hi, was the data logger working before the firmware upgrade, what was the reason for the upgrade.

    An upgrade can be done, as you probably know, by copying a file to a memory module and placing it in the drive or alternatively making a hardware connection and using a PC utility to upgrade the firmware. If the firmware was not right and your datalogger will not read from a memory module then you may have to go the PC utility route to recover. Most memory modules have an led to indicate read and write activity, if you plug in a memory module do you see any activity on the led. Try powering up the logger with a module inserted and look for led activity.

    Jeff T.
  • si8si8 Posts: 20
    edited 2012-03-24 05:22
    Hi,
    Yes the Data logger was working, i upgraded to get the latest firmware as suggested in previous forums.
    Nothing seems to work, none of the LED light up. I tried to downgrade the firmware via USB but to no avail!

    Si
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2012-03-24 13:56
    I'm afraid if you can't load a different firmware version using a USB memory module then the only feasible alternative would be to upgrade via UART as described in this ap note http://www.ftdichip.com/Support/Documents/AppNotes/AN_159%20Vinculum-II%20Firmware%20Flash%20Programming.pdf

    Section 4 describes the procedure and at minimum you would need the TTL 3.3v UART cable.

    You may or may not think it is worth the trouble to buy a cable, and even then you don't know for sure whether that will fix the problem.

    If it were me I would buy the cable ( I actually have one ), they run around the $20 mark. If you fix your datalogger you will feel it was worthwhile and you will have learnt by it. If you don't fix the datalogger the cable is still a good tool to own ( USB to 3.3v serial ) and again you will learn by it although the feeling might not be the same as fixing it, but I would bet there is nobody on this forum that hasn't accidently rendered some piece of electronic device useless.

    Jeff T.
Sign In or Register to comment.