Skip to content

The base code for connecting STM32 Nucleo F767ZI based instruments to the MSM Max patch using OSC over UDP.

Notifications You must be signed in to change notification settings

MPRlab/OSC-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

OSC-Client

This repository contains the starting code for any STM32 Nucleo F767ZI based instruments and allows them to connect to the MSM Max patch using OSC over UDP.

OSC Controller

For the latest version of the MSM patch visit: https://github.com/MPRlab/MPR-Lab-Robot-Interface

This has been tested with version 12.6.2 (coming soon).

Compiling and Developing

  • Ubuntu 16.04

    • Download the GNU ARM Embedded Toolchain

      (Used version 7-2018-q2-update linux 64-bit)

      Download Link

    • Extract the files into /opt

      cd /opt
      sudo tar -xf ~/Downloads/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2 
      
    • Make symlinks

      sudo ln -s /opt/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-cpp /usr/bin/arm-none-eabi-cpp
      sudo ln -s /opt/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-g++ /usr/bin/arm-none-eabi-g++
      sudo ln -s /opt/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc /usr/bin/arm-none-eabi-gcc
      sudo ln -s /opt/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-objcopy /usr/bin/arm-none-eabi-objcopy
      
    • Clone this repository to any location

      git clone https://github.com/MPRlab/OSC-Client.git
      cd OSC-Client/
      
    • Edit the main.cpp file

    • Add any new .cpp files to the Makefile

      In the "Objects and Paths" section add a new "MYCPP+=_______" with the name of the file followed by ".o"

    • Compile the code

      make
      
    • Program the Nucleo

      Copy the BUILD/osc.bin file to the Nucleo using the file explorer or mv

Things to work on

  • Currently, if the Max patch is restarted, the instrument will need to be reset in order to register it with the controller again. There should be a way to have the controller broadcast a message asking for all instruments to re-connect.

About

The base code for connecting STM32 Nucleo F767ZI based instruments to the MSM Max patch using OSC over UDP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages