wabisabit / ble-osc Goto Github PK
View Code? Open in Web Editor NEWReceiving data from Bluetooth LE and forwarding it through OSC to Max
Receiving data from Bluetooth LE and forwarding it through OSC to Max
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 } ]
More testing in crowded places needs to be done as other wireless connections could be blocking the correct communication.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.