Skip to content
/ DS202 Public

Attempt to port Gabonators LA104/DS203/DS213 to DS202

License

Notifications You must be signed in to change notification settings

nieldk/DS202

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Cloud Build Status

LA104 pocket logic analyser operating system

LA104 is another nice piece of handheld hardware coming from e-design / miniware company similar to their previous product - pocket digital storage oscillosope DS203.

This time they designed wholly digital device without analog circuitry featuring 4 general purpose IO signals and 4 digital inputs processed by AG1K FPGA chip, the processor used is the same as in DS203 - STM32F103VCT6. Device is battery powered, charged through USB micro connector, its display (ILI9341) offers resolution of 320x240 pixels and the storage EEPROM has this time capacity of 8MB. Check the scheme here

Product brief

When I was developing alternative firmware for DS203, I was trying to design some simple operating system that would allow me to upload easily new programs to the devie with ability to switch between them without flashing it again. Something similar that jpa did before with his PAWN interpreter on DS203 with a little difference that the application will be native C/C++ compiled code offering full computational power of the device. Unfortunately the GCC toolchain I was using had some bug which produced ARM32 instructions in PLT section which are not supported by STM32F103 and I was not able to force the compiler to use Thumb instruction set. So the dynamic relocation of imported symbols was an impossible task to implement. Now after few years, this problem was fixed and finally I could continue developing this operating system I have started before.

Installation

Go to release section of this page, find latest version for your device (there are releases for LA104, DS203 and DS213) and download system.hex. Power on the LA104 while holding first button. Connect the device using USB cable with your computer. New disk drive should appear, copy the system.hex file there. The disk should disconnect and reconnect shortly after the upload was finished. If you are lucky, you will see system.rdy on the disk. Turn the unit off and on and copy remaining files from zip archive la104apps.zip to your device. After power cycle a gui should appear. For Linux/OSX systems use tools/dfuload script to copy the firmware, if the file system does not appear stable, you can format it using tools/dfuload/format.sh script.

Building

Refer to this tutorial

Online demo

WASM build

Repository structure

  • resources - old projects, screenshots used in this document and tutorials
  • tools
    • dfuload - copies the firmware to the device, works for DS203, DS213 and LA104 on linux/osx
    • elfstrip - reduces the size of ELF images, used by all application building scripts
    • fpga - FPGA images and scripts for downloading images using openocd
    • midiconv - converts multichannel midi files into single channel (single data stream), so it can be played without seeking
    • openocd - notes on how to flash DS213 over SWD interface and how to debug the apps in Microsoft Visual Code
    • rtl433 - rtl433 clone modified to be used as WASM binary in web browser/javascript
    • shellicons - icons used in LA104 visual shell
    • stm32flash - recovery tool for DS203
  • system
    • apps - working applications mainly for LA104
    • apps_ds213 - applications for DS213/DS203
    • apps_experiments - arduino sample code interfacing some sensors and experimental applications. Use this as reference code for your projects. Mostly just simple console applications
    • apps_featured - advanced applications with full visual interface
    • apps_shell - file lister and graphical application switcher
    • apps_usb - apps simulating various USB peripherals
    • os_host - system source code, actually an application which loads ELF files from filesystem, matches the imported symbols and loads them
    • os_library - dummy library exposing all functions of the system. Necessary for building all applications
    • os_platform - support files for building for other platforms than Arm (Win32, OSX XCode or WASM)
    • scripts - building scripts

Applications in LA104 package

Icon Group App name App project / video
17analys.elf Logic analyser apps/test17_official
61devin.elf Device info apps_featured/61_devinfo
29fileman_la104.elf File manager apps_shell/test29_fileman
14apds1.elf devices APDS9960 color gesture sensor apps_experiments/test14_apds9960
11i2c.elf devices BMP085 Barometric sensor apps_experiments/test11_i2c_api
92bmp180.elf devices BMP180/BMP085 barometer apps_experiments/92_bmp180
9dht.elf devices DHT11/DHT22 temperature humidity apps_experiments/test9_dht_app
56ds1307.elf devices DS1307 real time clock apps_experiments/test56_ds1307
57ds3231.elf devices DS3231 real time clock apps_experiments/test57_ds3231
36espwww.elf devices ESP8266 uart wifi server apps/test36_esp_server
84maxdis.elf devices MAX7219 display driver apps_experiments/84_max7219
87mlx906.elf devices MLX90614 non cotact thermo apps_unfinished/87_mlx90614
106mpr12.elf devices MPR121 12 channel toch sensor apps_experiments/106_mpr121
34scope.elf devices PCF8591t I2C ADC apps/test34_scope
95sht20.elf devices SHT20 temperature humidity apps_experiments/95_sht20
45simcom.elf devices SIMCOM gprs modem apps/test45_simcom
96tm1637.elf devices TM1637 7-segment display apps_experiments/96_tm1637
13mp3.elf devices YX5300 MP3 player apps/test13_mp3
90eink.elf display eInk display image loader apps_featured/90_epd_image
81image.elf display Image viewer apps/81_image
102oled.elf display SSD1306 oled test apps_experiments/102_ssd1306
99cube04.elf fun Rotating cube apps/99_3d
39lcd.elf fun Scroll test apps_experiments/test39_lcd
4snake.elf fun Snake game apps/test4_snake
2import.elf fun Sierpinski triangle apps_experiments/test2_import
85eetest.elf i2c I2C EEPROM memory viewer apps_featured/85_i2ceeprom
37icscan.elf i2c I2C bus scanner apps_featured/test37_i2cscan
80rftool.elf rftools RF analyser synthesizer apps_featured/80_rftool/test
https://youtu.be/Gwyi00NKBNg
82sanal.elf rftools Spectrum analyser apps/82_specan
https://youtu.be/Gwyi00NKBNg
79ccosc.elf rftools WebUSB rf analyser apps/79_cc1101osc
https://youtu.be/Gwyi00NKBNg
105avrfl.elf tools Atmel firmware flasher apps/105_avrprogrammer
https://youtu.be/yC3a1zbonJ0
15charla.elf tools Character map apps/test15_charmap
30dcf77.elf tools DCF77 decoder apps/test30_dcf77
33temper.elf tools DS1820 temperature grapher apps_featured/test33_temper
49gpio.elf tools GPIO and PWM controller apps_featured/test49_gpio
21mplayl.elf tools MIDI player apps_featured/test21_midiplay
https://youtu.be/f3DCqy-3lNo
22seqen.elf tools Sequencer and analyser apps/test22_sequencer
https://youtu.be/D8OnXzE7OwU
103servo.elf tools Servo controller PCA9685 apps_featured/103_servo
https://youtu.be/heYFrqVF1P4
72uartm.elf tools UART monitor apps_featured/72_uartmon
74invt.elf tools Invt VFD RS485 visualizer apps_featured/74_invtvisual
https://youtu.be/0Ns7AHVvmX0
63ws_104.elf tools WS2812 addressable led tester apps_featured/test63_ws2812
https://youtu.be/4fWqZBbjQPc
104avris.elf usb Atmel ISP programmer apps_usb/104_avrisp
24ncdc.elf usb Serial link apps_usb/test24_usbcdc
25hid.elf usb Human interface device apps_usb/test25_hid
26midi.elf usb Midi to uart apps_usb/test26_midi

News

Avrisp programmer
  • Can be used for flashing Atmel MCUs - either for flashing HEX files directly over ICSP connector 105_avrprogrammer, or use LA104 as AVRISP USB programmer compatible with Arduino IDE 104_avrisp

AVRISP programmer

Docker integration
EInk display image loader
  • Application 90_epd_image loads BMP images and transfers them into the eink display
RF Toolkit

Ultimate toolkit for hacking OOK/ASK wireless devices (weather stations, wireless keys...) using CC1101 transceiver

LA104 RF Toolkit

(LA104) Variable frequency drive visualizer

This app uses RS485 adapter to talk to Invt Good drive inverters. Read more here, besides the visualization tool, there is also application which emulates GD100 VFD (as seen on the picture)... Watch video:

VFD talking to LA104 over RS485

image

WASM experimental evironment

LA104 OS running in your browser using WASM technology

WASM build

(DS203) Web USB Oscilloscope

Proud to announce the first oscilloscope in the world using the WebUsb technology (correct me if I am wrong)! Read more here

Watch video here:

WebUsb Oscilloscope video

Addressable RGB led strip tester

Addressable LED tester with advanced functions. Supports up to 32x WS2812/WS2812/SK6812 and other compatible addressable LED modules. More than 15 static and dynamic color presets, speed control, 8 different filter post-process options... Possible to build for OSX as desktop application, or LA104 native app or as WASM based HTML application. Try it online here! Watch video below:

Addressable LED tester video

Addressable LED tester screenshot

Temperature grapher

Shows temperature of up to 8 DS1820 sensors in form of graph. Automatic export of measured values into html, source code.

temperature measure tool 1 temperature measure tool 2

One firmware to rule them all

Operating system developed as a part of this project was ported to other handheld devices from miniware (DS203 rev. 2.60, DS213, LA104). Still in early development stage, but looks very promising. one system to rule them all

Dream SAM2695

LA104 playing midi on SAM2695 wavetable synthesizer through UART:

Logic sequencer video

Simcom driver

Simcom 800L driver with nice interface, sends 6 HTTP (get/post/json) requests in one minute. test45_simcom

GPIO Tool

Allows to monitor logic level on all 8 pins, the P1-P4 pins can be used as outputs. In PWM tab it is possible to set the PWM frequency and PWM levels for P1-P4 pins, including exponential compensation curve or automatic quasi-periodic animation of all outputs.

GPIO tool - logic

GPIO tool - pwm

Wave alchemy

Currently in development stage. App sniffs for wireless transmission using CC1101 transceiver, automatically decodes the protocol (wireless weather station, KEELOQ keyfob packets, fixed code remote controls, rolling code remote controls). To aid the decoding process, app displays the sniffed signal in form of histogram for easy identification of protocol (manchester encoding, pause length encoding) and its timing. Recorded signal can be stored in flash or transferred to PC for further analysis. Stored signals can be replayed to perform replay attack in case of fixed code sequence. Besides support of CC1101 chip, this app can be used in conjunction with infrared receiver and infrared diode to record and replay IR control codes for TV set or another consumer electronics.

Wave alchemy settings

Wave alchemy record

Wave alchemy export

I2C Scanner application

I2C Scanner including database of 245 I2C devices, automatically shows description of identified device.

I2C scanner

Pulseview compatibility

Added USB application which emulates sigrok SUMP protocol. By choosing "Openbench logic sniffer (ols)" in Pulse view configuration, LA104 can transfer measured signals to pulse view for deep analysis. Pulseview support wide range of protocols and offers intuitive user interface. Currently only 50kHz sampling is supported on P1..P4 pins, samplerate is sufficient for decoding of 9600 baud serial link.

Pulse view

Graphical application chooser

Shell

Shell

Stock logic analyser integration

Logic analyser

Logic sequencer app

16 channel logic analyser and sequencer. Generator of 4 bit pattern attached to CD4543 BCD to seven segment decoder. PCF8574 used as 16 bit expander

Logic sequencer video

Logic sequencer 1

Logic sequencer 2

Midi player - midi parser and player

Connect your midi keyboard with two wires (3V and P1 through 100-330 ohm resistor).

Midi player video

Logic sequencer 1

Logic sequencer 2

About

Attempt to port Gabonators LA104/DS203/DS213 to DS202

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published