Shop OBEX P1 Docs P2 Docs Learn Events
Memory Stick Datalogger WRF command — Parallax Forums

Memory Stick Datalogger WRF command

BronsonBronson Posts: 44
edited 2014-09-06 19:19 in BASIC Stamp
Hi,

How do you send 23 characters (including CR+LF, original message is 21 char) to Flashdisk using WRF command?
This is my current code, is it right?
SEROUT TX\CTS, Baud, ["WRF ", $00, $00, $00, $17, CR, "123456789012345678901", CR, LF]

I am asking this because sometimes my BS2 project hangs when sending WRF command (It hangs once or twice every 30-100 tests).

Regards,
Bronson

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2014-09-05 08:07
    I think part of the problem customers are experiencing is that over time the firmware has changed and with it the command set syntax has changed slightly. The changes are to make things easier, however they're causing some issues. For example, in the original firmware that was out when Parallax started carrying this module your code would be correct. However if you look at the current firmware user manual you will find that you no longer need the trailing carriage return you used to need. For what you're doing your code looks correct. Is it possible to attach the entire program? I wonder if something else may be happening that is causing the issue.
  • BronsonBronson Posts: 44
    edited 2014-09-05 20:50
    Chris,

    You are right! The culprit is not the WRF code. It was something else causing the problem. Thanks for your input.

    Bronson
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2014-09-06 19:19
    Glad to hear you got it solved.
Sign In or Register to comment.