2017 © Pedro Peláez
 

library msp-protocol

PHP implementation of the SMP protocol + serial communication adapter

image

volantus/msp-protocol

PHP implementation of the SMP protocol + serial communication adapter

  • Saturday, June 3, 2017
  • by SkydiveMarius
  • Repository
  • 2 Watchers
  • 0 Stars
  • 47 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

MSP Protocol in PHP

A PHP implementation of the MSP (serial multiwii) protocol, (*1)

Usage

Complete device communication is handled by CommunicationService, which gets a SerialInterface injected., (*2)

    use Volantus\MSPProtocol\Src\Protocol\CommunicationService;
    use Volantus\MSPProtocol\Src\Protocol\Request\MotorStatus as MotorStatusRequest;
    use Volantus\MSPProtocol\Src\Protocol\Response\MotorStatus as MotorStatusResponse;
    use Volantus\MSPProtocol\Src\Serial\SerialInterface;

    $serialInterface = new SerialInterface('/dev/ttyUSB0', 115200);
    $service = new CommunicationService($serialInterface);

    /** @var MotorStatusResponse $response */
    $response = $service->send(new MotorStatusRequest());

    // Status of the first motor (Value between 1000 and 2000)
    $response->getStatuses()[0];

Requests/Response

The current request/response implementation set is not complete yet. Especially custom packages from Clean-/Betaflight are missing. Contributors are highly welcome., (*3)

All request and responses are encapsulated into objects, which includes interpretation logic about their respective payload structure. * Request namespace: Volantus\MSPProtocol\Src\Protocol\Request * Response namespace: Volantus\MSPProtocol\Src\Protocol\Response, (*4)

For a complete list of available (orginal MultiWii) packages please consult the official documentation., (*5)

Contribution

Contributors a highly welcome. Please respect the following basic rules:, (*6)

Code style

The project follows the ZEND code style with a extended flexible line size., (*7)

Tests

Please create/extend/modify unit and integration tests. System dependencies should always be mocked., (*8)

Workflow

  1. Fork the repository
  2. Create feature branch from master
  3. Create pull request

The Versions

03/06 2017

dev-master

9999999-dev

PHP implementation of the SMP protocol + serial communication adapter

  Sources   Download

GNUv3

The Requires

 

by Marius Meißner

02/06 2017

1.2.0

1.2.0.0

PHP implementation of the SMP protocol + serial communication adapter

  Sources   Download

GNUv3

The Requires

 

by Marius Meißner

27/05 2017

1.1.1

1.1.1.0

PHP implementation of the SMP protocol + serial communication adapter

  Sources   Download

GNUv3

The Requires

 

by Marius Meißner

27/05 2017

1.1.0

1.1.0.0

PHP implementation of the SMP protocol + serial communication adapter

  Sources   Download

GNUv3

The Requires

 

by Marius Meißner

27/05 2017

1.0.3

1.0.3.0

PHP implementation of the SMP protocol + serial communication adapter

  Sources   Download

GNUv3

The Requires

 

by Marius Meißner

24/05 2017

1.0.2

1.0.2.0

PHP implementation of the SMP protocol + serial communication adapter

  Sources   Download

GNUv3

The Requires

 

by Marius Meißner

24/05 2017

1.0.1

1.0.1.0

PHP implementation of the SMP protocol + serial communication adapter

  Sources   Download

GNUv3

The Requires

 

by Marius Meißner

24/05 2017

1.0.0

1.0.0.0

PHP implementation of the SMP protocol + serial communication adapter

  Sources   Download

GNUv3

The Requires

 

by Marius Meißner