Write

Description

You can write up to 512 bytes at a time with the Write command. If num is omitted, then 512 bytes will be expected.

After the command is received, num (or 512) bytes are expected to be received. Data is received raw (i.e. no escape sequences are required).

By default, there is no time-out for how long it takes to send the data. This means that the uMMC will wait indefinitely for all the data to be sent.

If the value of the Write Time-out setting is greater than 0 (zero), then if the time taken between sending bytes exceeds that value (in tens of milliseconds), the Write command will terminate, write the accepted bytes to the file, and return to the command prompt. No error will be returned.


Format

W fh [num]


Parameters

  • fh is a file handle (1 - 4). Use the Free Handle command to get a free file handle.
  • num is the number of bytes to write to the file (1 → 512). Optional (if not given, 512 is assumed).

Response Format

NULL | Enn


Example

I 1

0/0

W 1 18

13:22:02 ADC1=4.9V

I 1

18/18

  • Bookmark at
  • Bookmark "Write" at del.icio.us
  • Bookmark "Write" at Digg
  • Bookmark "Write" at Google
  • Bookmark "Write" at StumbleUpon
  • Bookmark "Write" at Technorati
  • Bookmark "Write" at Facebook
  • Bookmark "Write" at Twitter
  • Bookmark "Write" at Slashdot
  • Bookmark "Write" at Yahoo! Bookmarks
  • Bookmark "Write" at Furl
  • Bookmark "Write" at Reddit
  • Bookmark "Write" at Ask
  • Bookmark "Write" at BlinkList
  • Bookmark "Write" at blogmarks
  • Bookmark "Write" at Ma.gnolia
  • Bookmark "Write" at Netscape
  • Bookmark "Write" at ppnow
  • Bookmark "Write" at Rojo
  • Bookmark "Write" at Shadows
  • Bookmark "Write" at Simpy
  • Bookmark "Write" at Socializer
  • Bookmark "Write" at Spurl
  • Bookmark "Write" at Tailrank
  • Bookmark "Write" at Live Bookmarks
  • Bookmark "Write" at Wists
  • Bookmark "Write" at Yahoo! Myweb
  • Bookmark "Write" at BobrDobr
  • Bookmark "Write" at Memori
  • Bookmark "Write" at Faves
  • Bookmark "Write" at Favorites
  • Bookmark "Write" at Newsvine
  • Bookmark "Write" at myAOL
  • Bookmark "Write" at Fark
  • Bookmark "Write" at RawSugar
  • Bookmark "Write" at LinkaGoGo
  • Bookmark "Write" at Mister Wong
  • Bookmark "Write" at Wink
  • Bookmark "Write" at BackFlip
  • Bookmark "Write" at Diigo
  • Bookmark "Write" at Segnalo
  • Bookmark "Write" at Netvouz
  • Bookmark "Write" at DropJack
  • Bookmark "Write" at Feed Me Links
  • Bookmark "Write" at funP
  • Bookmark "Write" at HEMiDEMi
ummc/documentation/command/write.txt · Last modified: 2009/10/27 19:54 by bhagman
Valid CSS Recent changes RSS feed Valid XHTML 1.0