Comments (13)
No problem! You give faster support than some of the companies I deal with.
from rdp-battmon.
Hi Peter,
Can you please try the attached version & see if it works for you?
BattMon v1.0.1.5 Client+Server.zip
from rdp-battmon.
@peterberbec, when you get a chance, please try this. On the server side, it should create a file in the same directory as the EXE called "EventLog.txt." Please let it run for a minute, then send me the output. It should show me if it's receiving any battery information at all.
No rush; I am going to sleep for the night & will try again tomorrow. Thanks for your debugging help!
Client (v1.0.1.4 Debug).zip
Server (v1.0.1.4 Debug).zip
from rdp-battmon.
Thank you for your coding! My debugging is the least I can do.
EventLog.txt
<Properties>
<Dictionary name="Value">
<Items>
<Item>
<Simple value="BatteryInfo" />
<Collection type="System.Collections.Generic.List`1[[FieldEffect.Interfaces.IBatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<Properties>
<Simple name="Capacity" value="2" />
</Properties>
<Items>
<Complex type="FieldEffect.BatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Simple name="ClientName" value="LAPPY2010" />
<Simple name="EstimatedChargeRemaining" value="100" />
<Simple name="EstimatedRunTime" value="828.12:06:28" />
<Simple name="BatteryStatus" value="2" />
</Properties>
</Complex>
<Complex type="FieldEffect.BatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Simple name="ClientName" value="LAPPY2010" />
<Simple name="EstimatedChargeRemaining" value="94" />
<Simple name="EstimatedRunTime" value="828.12:06:28" />
<Simple name="BatteryStatus" value="2" />
</Proper
2018-03-06 10:07:40,212 [1] DEBUG FieldEffect.Models.BatteryDataRetriever [(null)] - <Complex name="Root" type="FieldEffect.VCL.CommunicationProtocol.Response, RDP-BattMon Comm Protocol, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Dictionary name="Value">
<Items>
<Item>
<Simple value="BatteryInfo" />
<Collection type="System.Collections.Generic.List`1[[FieldEffect.Interfaces.IBatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<Properties>
<Simple name="Capacity" value="2" />
</Properties>
<Items>
<Complex type="FieldEffect.BatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Simple name="ClientName" value="LAPPY2010" />
<Simple name="EstimatedChargeRemaining" value="100" />
<Simple name="EstimatedRunTime" value="828.12:06:28" />
<Simple name="BatteryStatus" value="2" />
</Properties>
</Complex>
<Complex type="FieldEffect.BatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Simple name="ClientName" value="LAPPY2010" />
<Simple name="EstimatedChargeRemaining" value="94" />
<Simple name="EstimatedRunTime" value="828.12:06:28" />
<Simple name="BatteryStatus" value="2" />
</Proper
2018-03-06 10:08:00,334 [1] DEBUG FieldEffect.Models.BatteryDataRetriever [(null)] - <Complex name="Root" type="FieldEffect.VCL.CommunicationProtocol.Response, RDP-BattMon Comm Protocol, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Dictionary name="Value">
<Items>
<Item>
<Simple value="BatteryInfo" />
<Collection type="System.Collections.Generic.List`1[[FieldEffect.Interfaces.IBatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<Properties>
<Simple name="Capacity" value="2" />
</Properties>
<Items>
<Complex type="FieldEffect.BatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Simple name="ClientName" value="LAPPY2010" />
<Simple name="EstimatedChargeRemaining" value="100" />
<Simple name="EstimatedRunTime" value="828.12:06:28" />
<Simple name="BatteryStatus" value="2" />
</Properties>
</Complex>
<Complex type="FieldEffect.BatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Simple name="ClientName" value="LAPPY2010" />
<Simple name="EstimatedChargeRemaining" value="94" />
<Simple name="EstimatedRunTime" value="828.12:06:28" />
<Simple name="BatteryStatus" value="2" />
</Proper
2018-03-06 10:09:30,550 [1] DEBUG FieldEffect.Models.BatteryDataRetriever [(null)] - <Complex name="Root" type="FieldEffect.VCL.CommunicationProtocol.Response, RDP-BattMon Comm Protocol, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Dictionary name="Value">
<Items>
<Item>
<Simple value="BatteryInfo" />
<Collection type="System.Collections.Generic.List`1[[FieldEffect.Interfaces.IBatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<Properties>
<Simple name="Capacity" value="2" />
</Properties>
<Items>
<Complex type="FieldEffect.BatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Simple name="ClientName" value="LAPPY2010" />
<Simple name="EstimatedChargeRemaining" value="100" />
<Simple name="EstimatedRunTime" value="828.12:06:28" />
<Simple name="BatteryStatus" value="2" />
</Properties>
</Complex>
<Complex type="FieldEffect.BatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Simple name="ClientName" value="LAPPY2010" />
<Simple name="EstimatedChargeRemaining" value="94" />
<Simple name="EstimatedRunTime" value="828.12:06:28" />
<Simple name="BatteryStatus" value="2" />
</Proper
2018-03-06 10:09:50,275 [1] DEBUG FieldEffect.Models.BatteryDataRetriever [(null)] - <Complex name="Root" type="FieldEffect.VCL.CommunicationProtocol.Response, RDP-BattMon Comm Protocol, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Dictionary name="Value">
<Items>
<Item>
<Simple value="BatteryInfo" />
<Collection type="System.Collections.Generic.List`1[[FieldEffect.Interfaces.IBatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<Properties>
<Simple name="Capacity" value="2" />
</Properties>
<Items>
<Complex type="FieldEffect.BatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Simple name="ClientName" value="LAPPY2010" />
<Simple name="EstimatedChargeRemaining" value="100" />
<Simple name="EstimatedRunTime" value="828.12:06:28" />
<Simple name="BatteryStatus" value="2" />
</Properties>
</Complex>
<Complex type="FieldEffect.BatteryInfo, BatteryInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<Properties>
<Simple name="ClientName" value="LAPPY2010" />
<Simple name="EstimatedChargeRemaining" value="94" />
<Simple name="EstimatedRunTime" value="828.12:06:28" />
<Simple name="BatteryStatus" value="2" />
</Proper
from rdp-battmon.
from rdp-battmon.
federalizing deserializing... Autocorrect
from rdp-battmon.
Haven't forgotten this issue... Still working on it, just been busy.
from rdp-battmon.
By Jove I think he's got it! This is amazing. Thank you so much for your effort and a truly wonderfully useful piece of code.
from rdp-battmon.
Push to prod?
from rdp-battmon.
Fantastic! Glad itβs working! Awesome meme
from rdp-battmon.
Can I use your screenshot on the README page as a sample screenshot of the app? 2 batteries is more interesting to look at than the one I have.
from rdp-battmon.
from rdp-battmon.
Thanks!
from rdp-battmon.
Related Issues (20)
- Add an icon when battery level is unknown HOT 1
- Crash in Win32BatteryManagementObjectSearcher::GetAllBatteries()
- Turn RDP Virtual Channel library into a NuGet package HOT 1
- Make pollinginterval user settable
- Make server logging work the same way as client logging
- Move all strings into .resx files
- AC charging appears as "Unknown" HOT 9
- Exception occurs when client computer falls asleep (hibernates?) HOT 15
- Percentage reported over 100% HOT 9
- System.ArgumentOutOfRangeException: Index was out of range. HOT 4
- Tray App: Parameter is not valid.
- Prebuilt binaries for Windows RT HOT 2
- "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\" Registry Entry Not On My Client Machine HOT 20
- Write a client-side installer HOT 4
- is this project still active? HOT 1
- Idea: automatically copy and execute the server-side battery display
- Logging doesn't work HOT 2
- Multiple Battery Support HOT 30
- Give battery icon some contrast on white background
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 rdp-battmon.