To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 26446
26445  |  26447
Subject: 
Re: Bluetooth Direct and System Commands
Newsgroups: 
lugnet.robotics
Date: 
Mon, 18 Sep 2006 01:29:41 GMT
Viewed: 
6653 times
  
In lugnet.robotics, <dickswan@sbcglobal.net> wrote:
> OPEN WRITE LINEAR
> OPEN READ LINEAR (INTERNAL COMMAND)
> OPEN WRITE DATA
> OPEN APPEND DATA
> Opens files in the flash file system. Some file types (executable files,
> wav/rso files need to be stored in a contiguous block of flash because
> the programs that use them require contiguous data. The other files are
> stored in a linked list of flash sectors

By way of clarification, the two open write commands above (as well as the
OpenWrite command) cannot be used to open existing files.  They both return
error messages if the specified file already exists.  Although they are named
"OpenWrite..." they really are "Create" functions.

The standard NXT firmware requires that executable files and icons are linear
(since they are both opened using the OpenReadLinear function) but all other
types of files (including sound files) can be non-contiguous (i.e., fragmented).

Contrary to what I said in my previous post, you would normally only use
OpenWriteData for data files rather than other sorts of NXT files.  For most NXT
files you can use OpenWrite.  I only use OpenWriteData for .rdt (datalog) files
(a feature of the NXT firmware that was removed from the retail version before
it shipped but is present in the Robolab 2.9 and, I believe, the RobotC
firmware).

John Hansen



Message is in Reply To:
  RE: Bluetooth Direct and System Commands
 
From: Brian Bagnall There are some Bluetooth commands that are a little cryptic and sparsely documented in the official Lego docs. I was wondering if anyone could point me to some talk on this or shed some light on what these are used for: See (...) (20 years ago, 18-Sep-06, to lugnet.robotics)

4 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR