Comments (8)
If you are working in Linux check permissions.
Same issue was solved here.
from smbusb.
I am running under root in the Virtualbox VM
There are no errors in dmesg
[Thu Nov 28 13:55:10 2019] usb 1-1: new high-speed USB device number 3 using ehci-pci
[Thu Nov 28 13:55:11 2019] usb 1-1: New USB device found, idVendor=04b4, idProduct=8613
[Thu Nov 28 13:55:11 2019] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
lsusb
Bus 001 Device 003: ID 04b4:8613 Cypress Semiconductor Corp. CY7C68013 EZ-USB FX2 USB 2.0 Development Kit
root@bubuntu:# smbusb_sbsreport#
Error Opening SMBusb: libusb error -11
root@bubuntu:
from smbusb.
Tried sigrok on same VM - all works like a charm
from smbusb.
error -11 sound like LIBUSB_ERROR_NO_MEM
from smbusb.
After some random manipulations i see that device ID have changed to SMBUsb and following dat a was received
SMBusb Firmware Version: 1.0.1
Manufacturer Name: ERROR
Device Name: ERROR
Device Chemistry: ERROR
Serial Number: 4294967287
Manufacture Date: 8390587.15.23
Manufacturer Access: fffffff7
Remaining Capacity Alarm: 4294967287 mAh(/10mWh)
Remaining Time Alarm: 4294967287 min
Battery Mode: fffffff7
At Rate: -9 mAh(/10mWh)
At Rate Time To Full: 4294967287 min
At Rate Time To Empty: 4294967287 min
At Rate OK: 4294967287
Temperature: -274.05 degC
Voltage: 4294967287 mV
Current: -9 mA
Average Current: -9 mA
Max Error: 4294967287 %
Relative State Of Charge 4294967287 %
Absolute State Of Charge 4294967287 %
Remaining Capacity: 4294967287 mAh(/10mWh)
Full Charge Capacity: 4294967287 mAh(/10mWh)
Run Time To Empty: 4294967287 min
Average Time To Empty: 4294967287 min
Average Time To Full: 4294967287 min
Charging Current: 4294967287 mA
Charging Voltage: 4294967287 mV
Battery Status: fffffff7
Cycle Count: 4294967287
Cell 0 voltage: 0 mV
Cell 1 voltage: 0 mV
Cell 2 voltage: 0 mV
Cell 3 voltage: 0 mV
from smbusb.
Ok, I won it
Problem was due to virtual box usb settings, i had to select USB3 instead USB2.
Hope it helps for the future
from smbusb.
Good to know!
Meanwhile have looked through the code and noticed error -11
in that particular case means error downloading firmware to device
and not the LIBUSB_ERROR_NO_MEM
.
It comes from InitDevice()
function and defined in libsmbusb.h header,
#define ERR_FIRMWARE_DOWNLOAD -11
@karosium
Could we redefine it to something unique to avoid confusion?
from smbusb.
@tremez:
Glad you could get it to work
@0r10nV:
I'll look into this when I have some free time. I've been meaning to add human-readable error messages since the release.
from smbusb.
Related Issues (20)
- writing program to bq8030 doesn't work HOT 9
- Add support for CP2112 development board HOT 2
- Eeprom verification bypassed? HOT 3
- Firmware seems unstable, help? HOT 6
- adding support for /dev/i2c on linux? HOT 5
- I am using degilent jtag usb cable,can it be supportted? HOT 7
- armv7l/gcc - Build failed HOT 2
- connection issue - smbusb firmware error HOT 2
- Can we use this solution to reset a laptop battery? HOT 3
- TODO: Support for newer sdcc versions HOT 3
- Add xxdi as an alternative to xxd
- Python bindings compatible with 'smbus' module HOT 1
- Can't complete make command HOT 4
- Test command write
- can this be used with ch341a chip i2c mode to read smbus on battery? thx
- possible virus attack?
- Can't compile from sources
- PLEASE RELEASE
- Fix for SDCC 4.2.3 (makes the firmware compile with SDCC at least up to current SDCC 4.4.0)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smbusb.