gabonator / LA104

LA104 logic analyser alternative firmware and experiments
MIT License
549 stars 82 forks source link

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 schematics for supported devices:

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

Review video

LA104 OS Review video

Online demo

WASM build

Repository structure

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
118basic.elf devel Basic apps_featured/118_basic
113cirpy.elf devel Circuit python apps_featured/113_circuitpython
123fpga.elf devel FPGA Loader apps/123_fpga
117rt.elf devel Gabuino apps_featured/117_gabuino/examples
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
https://youtu.be/8FxnDp6G_iQ?t=603
110co2.elf devices MH-Z19B apps/110_mhz19b
87mlx906.elf devices MLX90614 non cotact thermo apps_experiments/87_mlx90614
106mpr12.elf devices MPR121 12 channel toch sensor apps_experiments/106_mpr121
34scope.elf devices PCF8591t I2C ADC apps/test34_scope
120keyb.elf devices PS2 Keyboard apps/120_ps2keyboard
109radse.elf devices Radsens dosimeter apps/109_radsense
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
https://youtu.be/8FxnDp6G_iQ?t=580
13mp3.elf devices YX5300 MP3 player apps/test13_mp3
90eink.elf display eInk display image loader apps_featured/90_epd_image
https://youtu.be/8FxnDp6G_iQ?t=524
81image.elf display Image viewer apps/81_image
https://youtu.be/8FxnDp6G_iQ?t=626
102oled.elf display SSD1306 oled test apps_experiments/102_ssd1306
https://youtu.be/8FxnDp6G_iQ?t=501
99cube04.elf fun Rotating cube apps/99_3d
https://youtu.be/8FxnDp6G_iQ?t=645
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
https://youtu.be/8FxnDp6G_iQ?t=446
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
https://youtu.be/8FxnDp6G_iQ?t=331
49gpio.elf tools GPIO and PWM controller apps_featured/test49_gpio
https://youtu.be/8FxnDp6G_iQ?t=190
115huntr.elf tools Hunter X-core controller apps/115_hunter
21mplayl.elf tools MIDI player apps_featured/test21_midiplay
https://youtu.be/f3DCqy-3lNo
121pastr.elf tools Pasteurisation calculator apps_featured/121_pasteur
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
https://youtu.be/8FxnDp6G_iQ?t=281
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

New applications
Avrisp programmer

AVRISP programmer

Docker integration
EInk display image loader
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