Giter VIP home page Giter VIP logo

android-controllerserver's Introduction

android-ControllerServer

android smartphone as sensor-based input device for control of an automotive simulator (server part).

Usage

Once you have cloned the project, navigate to the android-ControllerServer directory. From there open the masterRun.sh and change the 17th line in order to match your java version (if you skip this and the java version is not the same, you will get the error "jni.h" not found!). After that just run the servers with the command from below and follow the instructions printed to the console:

./masterRun 

Keep in mind, that the server should run before you open Speed Dreams 2 otherwise Speed Dreams 2 won't be able to find and use the newly created Joystick pointer of the uInput device.

Required packages for Ubuntu

This server application is tested on Ubuntu 15.10 with openjdk version "1.8.0_91" (OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~15.10.1-b14) & OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)). You will have to install in addition the bluecove library on you machine with the following command:

sudo apt-get install libbluetooth-dev 

Known errors

If you are getting the error:

javax.bluetooth.ServiceRegistrationException: Can not open SDP session. [2] No such file or directory

you will have to edit line 9 in the file /etc/systemd/system/bluetooth.target.wants/bluetooth.service (you will need root permissions for this) from:

ExecStart=/usr/lib/bluetooth/bluetoothd

to

ExecStart=/usr/lib/bluetooth/bluetoothd -C

After changing the line, you will have to reload and restart the bluetooth device with:

#reload
systemctl daemon-reload

#restart
sudo service bluetooth restart

Bluetooth Server

For the bluetooth server you have to make sure that the client (the android application) and the server (the ubuntu PC) are paired.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.