Coder Social home page Coder Social logo

Comments (8)

0r10nV avatar 0r10nV commented on May 28, 2024

If you are working in Linux check permissions.
Same issue was solved here.

http://www.karosium.com/2016/08/hacking-bq8030-with-sanyo-firmware.html?showComment=1511814009888#c8945243386522181427

from smbusb.

tremez avatar tremez commented on May 28, 2024

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.

tremez avatar tremez commented on May 28, 2024

Tried sigrok on same VM - all works like a charm

from smbusb.

tremez avatar tremez commented on May 28, 2024

error -11 sound like LIBUSB_ERROR_NO_MEM

from smbusb.

tremez avatar tremez commented on May 28, 2024

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.

tremez avatar tremez commented on May 28, 2024

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.

0r10nV avatar 0r10nV commented on May 28, 2024

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.

karosium avatar karosium commented on May 28, 2024

@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)

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.