Forum Index » Windows Development » node.js sdk, high cpu usage on windows   XML
 
Author Message
Bernhard2



Joined: 17/04/2018 04:27:59
Messages: 0
Offline

We started implementing the new node.js sdk and it looks great.

But we are seeing very high cpu usage on windows as soon as any device is plugged in.
We see the same behavior if the device is plugged in via usb-cable or dongle (or even just dongle without connected headset).
We don't see this behavior on MacOS.

How to recreate:
Platform: Windows 10, electron 1.8.3
Device: Jabra EVOLVE 65 & Jabra LINK 360

Create a simple electron-app and add:

const createJabraApp = require('jabra');
const jabra = createJabraApp(/*appID*/);

Run app.
Attach jabra device.
See CPU-usage in activity monitor.

We are seeing about 30% cpu usage until we detach the device.

Below is console log file:

2018-03-07T08:30:55.863Z jabra plateformInfo: {"os":"win32","osarch":"x64","node":"8.2.1","v8":"5.9.211.38","modules":"57","chrome":"59.0.3071.115","electron":"1.8.3"}
2018-03-07T08:30:55.863Z jabra platformLibraryLocation: isAsar:false isAsarUnpacked:false path:C:\Users\Briteback2\repos\electron-quick-start\node_modules\jabra\shared-lib\win64\libjabra.dll
2018-03-07T08:30:55.936Z jabra JabraConstructor-> appIDsmiliexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (removed)
2018-03-07T08:30:55.937Z jabra JabraConstructor-> Jabra_Initialize:true
2018-03-07T08:30:55.937Z jabra JabraConstructor-> JabraSDKVersion:1.2.0.24
2018-03-07T08:30:58.239Z jabra onDeviceFirstScan
2018-03-07T08:31:10.903Z jabra onDeviceAttach-> deviceID:0 deviceName:Jabra LINK 360 ESN:1C48F9ED1E22 ErrorStatus:0(NoError)
2018-03-07T08:31:13.449Z jabra onDeviceAttach-> deviceID:1 deviceName:Jabra EVOLVE 65 ESN:501AA5210EAB ErrorStatus:0(NoError)
2018-03-07T08:31:13.450Z jabra onDeviceBtnPress-> deviceID:0 btnType:33(HeadsetConnection) bool:true
henrikbjorn



Joined: 18/06/2018 03:59:01
Messages: 3
Offline

We see the same.
JabraJohn1



Joined: 23/04/2018 04:54:57
Messages: 50
Offline

we recently posted a new NPM package, based on a new windows SDK, can you re test?
henrikbjorn



Joined: 18/06/2018 03:59:01
Messages: 3
Offline

this version? 1.0.5-85.ae81226a it is not clear what package should be used the jabra one with @next or jabra-dev ?
 
 
Go to: