vti / elemntary

Wahoo Elemnt Configuration
GNU General Public License v3.0
57 stars 4 forks source link

consistent versions #9

Open pdelteil opened 1 year ago

vti commented 1 year ago

That's an interesting functionality. I'd merge no problem (with some cleanup though if you don't mind). But it needs some work :)

Screenshot_2023-05-03_07-39-32

Also I don't think creating a new card is justifiable, maybe just extend the "Software" to "Software & Hardware" and add couple lines there.

vti commented 1 year ago

Here's my dump from Bolt v1. Instead of logging everything I recommend adding some tests, you can find some examples already written. And move log level to debug for that kind of things. Info level should be really for something useful to the end user.

cat /proc/cpuinfo
Processor   : ARMv7 Processor rev 3 (v7l)
processor   : 0
BogoMIPS    : 1993.93
Features    : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xc07
CPU revision    : 3

Processor   : ARMv7 Processor rev 3 (v7l)
processor   : 1
BogoMIPS    : 1993.93
Features    : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xc07
CPU revision    : 3

Hardware    : MT2601
Revision    : 0000
Serial      : 0000000000000000
vti commented 1 year ago

Ok, so for Bolt v1 sort is not available apparently:

/system/bin/sh: sort: not found

vti commented 1 year ago

And here is Bolt v2 dump

processor   : 0
model name  : ARMv7 Processor rev 5 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xc07
CPU revision    : 5

processor   : 1
model name  : ARMv7 Processor rev 5 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xc07
CPU revision    : 5

processor   : 2
model name  : ARMv7 Processor rev 5 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xc07
CPU revision    : 5

processor   : 3
model name  : ARMv7 Processor rev 5 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xc07
CPU revision    : 5

Hardware    : Qualcomm Technologies, Inc APQ8009
Revision    : 0000
Serial      : 0000000000000000
Processor   : ARMv7 Processor rev 5 (v7l)
vti commented 1 year ago

Roam v2

processor  : 0
model name  : ARMv7 Processor rev 5 (v7l)
BogoMIPS  : 38.40
Features  : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer  : 0x41
CPU architecture: 7
CPU variant  : 0x0
CPU part  : 0xc07
CPU revision  : 5

processor  : 1
model name  : ARMv7 Processor rev 5 (v7l)
BogoMIPS  : 38.40
Features  : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer  : 0x41
CPU architecture: 7
CPU variant  : 0x0
CPU part  : 0xc07
CPU revision  : 5

processor  : 2
model name  : ARMv7 Processor rev 5 (v7l)
BogoMIPS  : 38.40
Features  : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer  : 0x41
CPU architecture: 7
CPU variant  : 0x0
CPU part  : 0xc07
CPU revision  : 5

processor  : 3
model name  : ARMv7 Processor rev 5 (v7l)
BogoMIPS  : 38.40
Features  : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer  : 0x41
CPU architecture: 7
CPU variant  : 0x0
CPU part  : 0xc07
CPU revision  : 5

Hardware  : Qualcomm Technologies, Inc APQ8009
Revision  : 0000
Serial    : 0000000000000000
Processor  : ARMv7 Processor rev 5 (v7l)
pdelteil commented 1 year ago

Hello there @vti,

I'm sorry, I added the hardware card to the PR by mistake. I just finished some basic testing last night.

In my case it looks like this (reformatted the version number as well) :

image

I think using sort, grep or another linux tool is as robust as processing the output on the app side.