Что такое формат файла LLSP?
Файл с расширением .llsp - это проект LEGO Education SPIKE, созданный во второй версии приложения LEGO Education SPIKE App. Он содержит программу для робототехнических хабов SPIKE Prime или SPIKE Essential, а также переменные и настройки. Среда кодирования построена на базе Scratch 3, поэтому проект может быть написан с помощью перетаскиваемых блоков слов или на MicroPython.
По сути, файл .llsp представляет собой ZIP-архив. Если переименовать копию в .zip и извлечь её, вы обнаружите дескриптор проекта, векторный скриншот .svg, используемый в качестве миниатюры, и встроенный файл scratch.sb3. Этот файл .sb3 является стандартным проектом Scratch 3, а его project.json содержит плоский список стеков блоков и переменных в том виде, в каком они отображаются в редакторе. В 2023 году SPIKE App 3 заменило этот формат на .llsp3, и эти два формата не являются взаимозаменяемыми в старых версиях приложения.
Безопасность и защита
РИСК: LOWAn .llsp file is a data project, not an executable. It holds Scratch-style block code, variables, an SVG preview, and optional sound assets, none of which run on your computer outside the SPIKE App. As a ZIP archive it could in theory carry unexpected members, so extract files from unknown sources with a normal archive tool and check what is inside. Corruption of the internal project.json is a known cause of a project that will not load.
Детали формата
в двух словах- MINDSTORMS Robot Inventor projects - The LEGO MINDSTORMS Robot Inventor (set 51515) app shares the same Scratch-3-based engine and can produce and read .llsp-style word-block projects, though its own projects usually carry the .lms extension.
Программы, открывающие файлы LLSP
Технические подробности
глубокая спецификация| Encoding | ZIP-compressed binary container holding JSON, SB3, and SVG members |
| Byte order | N/A (ZIP structure is little-endian) |
| Container | ZIP archive (renamed .zip) |
| Compression | DEFLATE (standard ZIP) |
| Encryption | None; contents are stored unencrypted and can be extracted with any ZIP tool |
| Typical size | 10 KB to a few MB, depending on program size and any embedded sound assets |
| Structure | Outer ZIP contains a project descriptor/manifest (JSON), an SVG vector screenshot used as the project thumbnail/preview, and an embedded scratch.sb3 file. The scratch.sb3 is itself a ZIP that holds project.json, which stores the flat stack of code blocks and variables shown in the editor. |
| Integrity | Per-member CRC-32 stored in the ZIP directory; no separate signature or hash for the project as a whole |
| Platforms | Windows, macOS, iOS, iPadOS, Android, Chrome OS |
| Notes | Created by the word-block (icon-block) and Python programming modes of the LEGO Education SPIKE App 2 for the SPIKE Prime (45678) and SPIKE Essential (45345) sets, and also used by MINDSTORMS Robot Inventor. SPIKE App 3 replaced this format with the .llsp3 extension, and .llsp3 files are not backward-compatible with older app versions. Because the code lives inside an embedded Scratch 3 project.json, community tools can read the blocks directly. |
| Выпущен | 2019 |
| Последняя версия | SPIKE App 2 project format (superseded by .llsp3 in SPIKE App 3) |
| Спецификация | spike.legoeducation.com |
Конвертации LLSP
Вопросы и ответы сообщества
спрошено пользователямиВопросов пока нет - станьте первым, кто спросит о файлах LLSP.
Часто задаваемые вопросы
Как мне открыть файл .llsp?
В чем разница между .llsp и .llsp3?
.llsp - это формат проектов SPIKE App 2, а .llsp3 - формат SPIKE App 3. Они имеют разную структуру и не взаимозаменяемы в старых версиях приложений, хотя SPIKE App 3 может импортировать .llsp и сохранять его как .llsp3.Можно ли увидеть содержимое .llsp без приложения LEGO?
Можно ли конвертировать программу .llsp в Python?
pyspikon читает project.json внутри .llsp и выдает файл .py, хотя он пропускает События и Мои блоки.