Coder Social home page Coder Social logo

wabisabit / ble-osc Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 1.0 10 KB

Receiving data from Bluetooth LE and forwarding it through OSC to Max

JavaScript 13.48% Arduino 41.03% Max 45.49%
accelerometer arduino bluetooth-arduino bluetooth-le bluetooth-low-energy max maxmsp osc

ble-osc's People

Contributors

wabisabit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

swipswaps

ble-osc's Issues

Cannot find module 'xpc-connection'

Hi Roman,

I seem to get a problem with the npm install to do with the xpc-connection. Is this something that I should have installed?

Any help would be great...

Thanks,

Asha

connecting and disconnecting

Hi Roman,

I have the same hardware as you: the HM-10 and the MPU-6050 connected to an Arduino Uno. The SCL is in A5 of the Arduino and the SDA in the A4. The TX of the HM-10 is on pin 7 and the RX on pin 8. I am getting the following info after uncommenting the console.log lines in the ble-osc.js file.

Are those the same connections you are using?

Below is the info I get from the terminal

poweredOn
Discovered: MLT-BT05
Connected to MLT-BT05
[ Characteristic {
    _noble: 
     Noble {
       state: 'poweredOn',
       address: '6c:40:08:a8:c1:7b',
       _bindings: [Object],
       _peripherals: [Object],
       _services: [Object],
       _characteristics: [Object],
       _descriptors: [Object],
       _discoveredPeripheralUUids: [Object],
       _events: [Object],
       _eventsCount: 3,
       _allowDuplicates: false },
    _peripheralId: '4d9eadafbbb841679690bb747e418f6c',
    _serviceUuid: '180a',
    uuid: '2a23',
    name: 'System ID',
    type: 'org.bluetooth.characteristic.system_id',
    properties: [ 'read' ],
    descriptors: null },
  Characteristic {
    _noble: 
     Noble {
       state: 'poweredOn',
       address: '6c:40:08:a8:c1:7b',
       _bindings: [Object],
       _peripherals: [Object],
       _services: [Object],
       _characteristics: [Object],
       _descriptors: [Object],
       _discoveredPeripheralUUids: [Object],
       _events: [Object],
       _eventsCount: 3,
       _allowDuplicates: false },
    _peripheralId: '4d9eadafbbb841679690bb747e418f6c',
    _serviceUuid: '180a',
    uuid: '2a24',
    name: 'Model Number String',
    type: 'org.bluetooth.characteristic.model_number_string',
    properties: [ 'read' ],
    descriptors: null },
  Characteristic {
    _noble: 
     Noble {
       state: 'poweredOn',
       address: '6c:40:08:a8:c1:7b',
       _bindings: [Object],
       _peripherals: [Object],
       _services: [Object],
       _characteristics: [Object],
       _descriptors: [Object],
       _discoveredPeripheralUUids: [Object],
       _events: [Object],
       _eventsCount: 3,
       _allowDuplicates: false },
    _peripheralId: '4d9eadafbbb841679690bb747e418f6c',
    _serviceUuid: '180a',
    uuid: '2a25',
    name: 'Serial Number String',
    type: 'org.bluetooth.characteristic.serial_number_string',
    properties: [ 'read' ],
    descriptors: null },
  Characteristic {
    _noble: 
     Noble {
       state: 'poweredOn',
       address: '6c:40:08:a8:c1:7b',
       _bindings: [Object],
       _peripherals: [Object],
       _services: [Object],
       _characteristics: [Object],
       _descriptors: [Object],
       _discoveredPeripheralUUids: [Object],
       _events: [Object],
       _eventsCount: 3,
       _allowDuplicates: false },
    _peripheralId: '4d9eadafbbb841679690bb747e418f6c',
    _serviceUuid: '180a',
    uuid: '2a26',
    name: 'Firmware Revision String',
    type: 'org.bluetooth.characteristic.firmware_revision_string',
    properties: [ 'read' ],
    descriptors: null },
  Characteristic {
    _noble: 
     Noble {
       state: 'poweredOn',
       address: '6c:40:08:a8:c1:7b',
       _bindings: [Object],
       _peripherals: [Object],
       _services: [Object],
       _characteristics: [Object],
       _descriptors: [Object],
       _discoveredPeripheralUUids: [Object],
       _events: [Object],
       _eventsCount: 3,
       _allowDuplicates: false },
    _peripheralId: '4d9eadafbbb841679690bb747e418f6c',
    _serviceUuid: '180a',
    uuid: '2a27',
    name: 'Hardware Revision String',
    type: 'org.bluetooth.characteristic.hardware_revision_string',
    properties: [ 'read' ],
    descriptors: null },
  Characteristic {
    _noble: 
     Noble {
       state: 'poweredOn',
       address: '6c:40:08:a8:c1:7b',
       _bindings: [Object],
       _peripherals: [Object],
       _services: [Object],
       _characteristics: [Object],
       _descriptors: [Object],
       _discoveredPeripheralUUids: [Object],
       _events: [Object],
       _eventsCount: 3,
       _allowDuplicates: false },
    _peripheralId: '4d9eadafbbb841679690bb747e418f6c',
    _serviceUuid: '180a',
    uuid: '2a28',
    name: 'Software Revision String',
    type: 'org.bluetooth.characteristic.software_revision_string',
    properties: [ 'read' ],
    descriptors: null },
  Characteristic {
    _noble: 
     Noble {
       state: 'poweredOn',
       address: '6c:40:08:a8:c1:7b',
       _bindings: [Object],
       _peripherals: [Object],
       _services: [Object],
       _characteristics: [Object],
       _descriptors: [Object],
       _discoveredPeripheralUUids: [Object],
       _events: [Object],
       _eventsCount: 3,
       _allowDuplicates: false },
    _peripheralId: '4d9eadafbbb841679690bb747e418f6c',
    _serviceUuid: '180a',
    uuid: '2a29',
    name: 'Manufacturer Name String',
    type: 'org.bluetooth.characteristic.manufacturer_name_string',
    properties: [ 'read' ],
    descriptors: null },
  Characteristic {
    _noble: 
     Noble {
       state: 'poweredOn',
       address: '6c:40:08:a8:c1:7b',
       _bindings: [Object],
       _peripherals: [Object],
       _services: [Object],
       _characteristics: [Object],
       _descriptors: [Object],
       _discoveredPeripheralUUids: [Object],
       _events: [Object],
       _eventsCount: 3,
       _allowDuplicates: false },
    _peripheralId: '4d9eadafbbb841679690bb747e418f6c',
    _serviceUuid: '180a',
    uuid: '2a2a',
    name: 'IEEE 11073-20601 Regulatory Certification Data List',
    type: 'org.bluetooth.characteristic.ieee_11073-20601_regulatory_certification_data_list',
    properties: [ 'read' ],
    descriptors: null },
  Characteristic {
    _noble: 
     Noble {
       state: 'poweredOn',
       address: '6c:40:08:a8:c1:7b',
       _bindings: [Object],
       _peripherals: [Object],
       _services: [Object],
       _characteristics: [Object],
       _descriptors: [Object],
       _discoveredPeripheralUUids: [Object],
       _events: [Object],
       _eventsCount: 3,
       _allowDuplicates: false },
    _peripheralId: '4d9eadafbbb841679690bb747e418f6c',
    _serviceUuid: '180a',
    uuid: '2a50',
    name: 'PnP ID',
    type: 'org.bluetooth.characteristic.pnp_id',
    properties: [ 'read' ],
    descriptors: null },
  Characteristic {
    _noble: 
     Noble {
       state: 'poweredOn',
       address: '6c:40:08:a8:c1:7b',
       _bindings: [Object],
       _peripherals: [Object],
       _services: [Object],
       _characteristics: [Object],
       _descriptors: [Object],
       _discoveredPeripheralUUids: [Object],
       _events: [Object],
       _eventsCount: 3,
       _allowDuplicates: false },
    _peripheralId: '4d9eadafbbb841679690bb747e418f6c',
    _serviceUuid: 'ffe0',
    uuid: 'ffe1',
    name: null,
    type: null,
    properties: [ 'read', 'writeWithoutResponse', 'write', 'notify' ],
    descriptors: null } ]

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.