badzz / wd03-utils Goto Github PK
View Code? Open in Web Editor NEWTools for the Ravpower wd03
License: GNU General Public License v2.0
Tools for the Ravpower wd03
License: GNU General Public License v2.0
What are the prerequisites to use this? From the source it looks like the package kmod-i2c-ralink is needed. Are there any others? Does the /dev/i2c-0 device need to be manually created as it is not showing up for me after I installed kmod-i2c-ralink? All I see in dmesg about i2c is:
[ 17.316092] i2c /dev entries driver
Thanks
I tried OpenWrt then I wanted to go back to stock firmware so I sadly uploaded it from OpenWrt and bricked.
As I did't found your email I am trying to contact you because I found this thread
Hope you can help me and sorry about bothering you this way
EDIT: Some people said the method is the same as WD03
Hello Matthias,
i am using the Ravpower WD03 and got managed to run OpenWRT on it. I would like to get also some battery status of the device.
I would like to ask if you can give a quick how to of using your utils.
I already installed kmod-i2c-core but stuck using your header and the c file.
Would be happy if you can help out here with a quick how-to.
Many Thanks
Andreas
Hi,
Sorry, not so much a problem / issue, but not sure how else to ask this - and likely good to capture? How to include this utility in an OpenWrt build? Just copy the directory somewhere, and "enable" it (somehow)?
Thanks!
Every once in a while a reading comes back wrong. Looking into this I found that the wrong reading is actually the result from the previous mode. To correct this a delay is needed after setting the mode and before reading the value. Doing some experimentation it looks like 10ms is enough (could go to 15 to be cautious). So with a delay of:
#define DELAY_NS 10000000
in a nanosleep after the i2c_smbus_write_byte_data call I have seen no incorrect readings.
req.tv_sec = 0;
req.tv_nsec = DELAY_NS;
if(nanosleep(&req, NULL)) printf("nanosleep failed\n");
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.