tools/muxpi.git
6 years agoAdd Interface to stm package 81/168981/5
Aleksander Mistewicz [Tue, 9 Jan 2018 12:48:13 +0000 (13:48 +0100)]
Add Interface to stm package

It makes possible to replace underlying implementation. Package default
interface has been removed. GetDefaultSTM() should be used instead.

FOTA and STM were modified to work after this change.

Change-Id: I291a9d22bda7253556a4a13229b9db3400fe6ef5

6 years agoFix a type of LED2 and Background constants 82/168982/4
Aleksander Mistewicz [Thu, 1 Feb 2018 13:01:19 +0000 (14:01 +0100)]
Fix a type of LED2 and Background constants

Change-Id: Ib19c3a880b5651bff73d038d0555e487bf42dc1f

6 years agoAdd MuxPi add-on template 32/174832/2
Adam Malinowski [Wed, 4 Apr 2018 10:52:32 +0000 (12:52 +0200)]
Add MuxPi add-on template

Change-Id: I31b9178743a43b3d35f47b79372e0b549c0c1d1f

6 years agoAdd alternative product for DyPer relays 31/174831/1
Adam Malinowski [Fri, 16 Mar 2018 07:19:11 +0000 (08:19 +0100)]
Add alternative product for DyPer relays

Currently there is no way to buy relays originally choosen for
DyPers. Different product is added as a replacement which is widely
available at this moment.

Change-Id: If8e95ebd23554d36e86e7d23ec86ffcc953ed6df

6 years agoAdd detailed info to MuxPi electronic components 30/174830/1
Adam Malinowski [Tue, 13 Mar 2018 18:01:42 +0000 (19:01 +0100)]
Add detailed info to MuxPi electronic components

The additional information includes manufacturer names and
manufacturer symbols for all components except ceramic capacitors
and resistors. It allows to create BOM (Bill Of Materials) with
actual product names.

Change-Id: Id1c518bba60322d4b8b132ad14261806070abc27

6 years agoAdd hardware decumentation of MuxPi board
Adam Malinowski [Thu, 1 Feb 2018 14:39:25 +0000 (15:39 +0100)]
Add hardware decumentation of MuxPi board

The documentation was created with nightly build version of KiCad:
(2018-01-31 revision e69ddf0e1)

Change-Id: If4a1afd280c9b68589a063e161d02ec063f36596

6 years agoMove FOTA and STM sources to comply with README 71/158871/2
Aleksander Mistewicz [Fri, 3 Nov 2017 13:19:37 +0000 (14:19 +0100)]
Move FOTA and STM sources to comply with README

Change-Id: I7f3e393540d78fb768873fb7b83d54d9d5ca21dc

6 years agoAdd FOTA tools 68/142768/5
Aleksander Mistewicz [Tue, 18 Jul 2017 13:00:07 +0000 (15:00 +0200)]
Add FOTA tools

Package fota implements Flash Over The Air utilities.

Usage of fota:
  -card string
     path to SDcard
  -map string
     path to JSON formatted mapping
  -md5 string
     URL to MD5SUMS file
  -q suppress logging

Change-Id: I84f4168047f2f9488f0ed42efb1f8143410ac341

6 years agoMerge "Add STM command-line tool"
Adam Malinowski [Tue, 5 Dec 2017 10:56:43 +0000 (10:56 +0000)]
Merge "Add STM command-line tool"

6 years agoMerge "Add tests for stm GO library"
Adam Malinowski [Tue, 5 Dec 2017 09:25:12 +0000 (09:25 +0000)]
Merge "Add tests for stm GO library"

6 years agoMerge "Add convenience functions for the muxPi"
Adam Malinowski [Tue, 5 Dec 2017 09:23:38 +0000 (09:23 +0000)]
Merge "Add convenience functions for the muxPi"

6 years agoMerge "Add most functions provided by STM"
Adam Malinowski [Tue, 5 Dec 2017 09:23:26 +0000 (09:23 +0000)]
Merge "Add most functions provided by STM"

6 years agoMerge "Add stm GO library"
Adam Malinowski [Tue, 5 Dec 2017 09:23:12 +0000 (09:23 +0000)]
Merge "Add stm GO library"

6 years agoAdd directory structure description in README file 20/157020/2
Adam Malinowski [Mon, 23 Oct 2017 06:34:32 +0000 (08:34 +0200)]
Add directory structure description in README file

Change-Id: If4e6be3c5cf7e8593941aefe77eaa1a10b57e06a

6 years agoAdd STM command-line tool 67/142767/6
Aleksander Mistewicz [Fri, 4 Aug 2017 13:28:10 +0000 (15:28 +0200)]
Add STM command-line tool

Only basic functions are available as LED and OLED control
is reserved for administrator or Boruta system.

Usage of stm:
  -dut
     connect SD card to DUT
  -m duration
     time delay for tick command (default 1s)
  -tick
     power off the DUT, wait 'm' seconds and switch it on again
  -ts
     connect SD card to test server

Change-Id: I6fd035c3b07169b40e861f95b90d6bd9d4d7e732

6 years agoAdd tests for stm GO library 46/138546/6
Aleksander Mistewicz [Wed, 12 Jul 2017 12:28:46 +0000 (14:28 +0200)]
Add tests for stm GO library

Steps to reproduce:
    # Compile tests.
    GOARCH=arm GOARM=7 GOOS=linux ginkgo build ./...
    # Copy stm/stm.test to MuxPI.
    # Run on MuxPI.
    ./stm.test -ginkgo.v

Tests fail if there is no "OK" response. Person running them should also
observe OLED display, blinking LEDs and relay switching (it is audible).

Change-Id: I86992a1356382645d156053c15d14d9a57603b71

6 years agoAdd convenience functions for the muxPi 45/138545/5
Aleksander Mistewicz [Wed, 12 Jul 2017 09:53:55 +0000 (11:53 +0200)]
Add convenience functions for the muxPi

The stm package is intended to be used with MuxPi.
It is common to implement functions as package's public that call
methods on structure with default values set. It is safe to call
these methods accross packages and goroutines as long as developer
is aware that Open with corresponding Close should be called once.

Change-Id: Ic5c2fb35b2ec7f41eaedc24a7d78edf09745c1b8

6 years agoAdd most functions provided by STM 44/138544/5
Aleksander Mistewicz [Tue, 11 Jul 2017 17:00:10 +0000 (19:00 +0200)]
Add most functions provided by STM

Following commands are implemented:
    power       - PowerTick
    led         - LED1 and LED2
    clr         - ClearDisplay
    text        - PrintText
    dut         - DUT
    ts          - TS

Link to documentation of all functions:
https://wiki.tizen.org/MuxPi#Features_accessible_thorugh_Cortex-M0

Change-Id: I4dac5c828d8062761a2014ef679192125f0a9154

6 years agoAdd stm GO library 43/138543/3
Aleksander Mistewicz [Tue, 11 Jul 2017 16:48:29 +0000 (18:48 +0200)]
Add stm GO library

It uses non-standard GO library for serial communication
(BSD 3-clause License). Fetch it with:
    go get "github.com/tarm/serial"

Change-Id: I7b57d063d0296b66de880a61a1878ce2abd1f606

6 years agoAdd license file 90/144890/1
Adam Malinowski [Fri, 18 Aug 2017 08:03:21 +0000 (10:03 +0200)]
Add license file

Change-Id: I5bf32969e6bd5a318bf3eddb46460c70d9ca27cd

7 years agoInitial empty repository
Tizen Infrastructure [Thu, 6 Jul 2017 08:05:33 +0000 (08:05 +0000)]
Initial empty repository