lmsformats

module
v0.0.0-...-8bb3b75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: BSD-3-Clause

README

Reverse engineering the EV3 Color sensor

This contains reverse-engineered EV3 color sensor firmware source code. See ev3color for details.

EV3 sensor communication on a logic analyzer

This contains Sigrok/Pulseview recordings of the EV3 sensor communication. See ev3sensors for details.

LMS2012 formats

RBF (Robot Bytecode File)

Ev3dev already has a new assembler, see lmsasm.

RPF (Robot Program File)

This is just a templated RBF file (see template.lms)

Some sort of viewer might be useful. TODO

RGF (Robot Graphics File)

Done.

Small utility + library in Go
  • /rgf - Go library for loading and saving RGF images.
  • /lmsbmp - Go utility built around the rgf library. See the /lmsbmp/lmsbmp.md manpage for details.
ImageMagick way

You can also use ImageMagick to achieve the same thing. To convert as with --bt601=true, use the following command line:

convert source.png -crop WxH+X+Y -grayscale rec601luma -dither FloydSteinberg -remap pattern:gray50 destination.rgf

To convert the image like with --bt601=false, use the following command line:

convert source.png -crop WxH+X+Y -dither FloydSteinberg -remap pattern:gray50 destination.rgf
RSF (Robot Sound File)

Done.

This is the same format as the NXT RSO. FFmpeg already contains a muxer; SoX with RSO/RSF support can be found here.

One strange thing is that ADPCM playback on EV3 sounds really loud and distorted.

RDF (Robot Datalog File)

TODO (see cnvlog.c)

RAF (Robot Archive File)

This is just a tarball (see c_memory.c)

tar -czf archive.raf <files> # create
tar -xzf archive.raf # extract
RTF (Robot Text File)

This is a simple text file.

RCF (Robot Config File)

This is also a text file.

Typedata parser might be useful. TODO (see c_input.c)

Disclaimer

LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this software.

Directories

Path Synopsis
This program can convert to and from the EV3 RGF format.
This program can convert to and from the EV3 RGF format.
Package rgf provides functionality for reading and writing EV3 RGF files.
Package rgf provides functionality for reading and writing EV3 RGF files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL