Ognian / sdmon

get SD card health data
https://www.ogi-it.com/portfolio/sdmon/
GNU General Public License v2.0
100 stars 18 forks source link

VIOFO MicroSD #13

Closed vladkozlov69 closed 1 year ago

vladkozlov69 commented 1 year ago

Hi guys,

I just got from Amazon some Viofo Industrial cards - 32G and Viofo 64G.

Viofo Industrial 32G output looks pretty similar to Apacer so I believe it's just a rebranded card:

{
"version": "v0.5.0-2 (aab6b51) arm64",
"date": "2023-10-02T13:14:17.000Z",
"device":"/dev/mmcblk1",
"addTime": "false",
"read_via_cmd56_arg_1":"read successful but signature 0xff 0xff",
"idata.response[]":"0x900 0x00 0x00 0x00",
"flashId": ["0x89","0xa4","0x08","0x32","0xa1","0x00","0x00","0x00","0x00"],
"icVersion": ["0x1f","0xc3"],
"fwVersion": [17,156],
"ceNumber": "0x01",
"spareBlockCount": 13,
"initialBadBlockCount": 13,
"goodBlockRatePercent": 98.71,
"totalEraseCount": 2,
"enduranceRemainLifePercent": 99.94,
"avgEraseCount": 1,
"minEraseCount": 1,
"maxEraseCount": 1,
"powerUpCount": 11,
"abnormalPowerOffCount": 0,
"totalRefreshCount": 0,
"productMarker": ["0x00","0x00","0x00","0x00","0x00","0x00","0x00","0x00"],
"laterBadBlockCount": 0,
"success":true
}

However Viofo Industrial 64G is not so bright... :(

{
"version": "v0.5.0-2 (aab6b51) arm64",
"date": "2023-10-02T13:22:22.000Z",
"device":"/dev/mmcblk1",
"addTime": "false",
"signature":"0x70 0x58",
"manufactureYYMMDD": "2�",
"healthStatusPercentUsed": 78,
"featureRevision": "0x91",
"generationIdentifier": 0,
"productString": "",
"success":true
}

Dangled manufactureYYMMDD attribute suggests that CMD56 output blob format is different so I dumped it:

"rawData":"CMD56 data block dumping:
000:  70 58 32 96 03 00 00 00 4e c6 6f 91 3c 00 00 00
016:  10 00 00 00 00 00 00 00 42 6e 00 00 00 00 00 00
032:  50 00 00 00 03 00 00 00 00 f0 5d 07 64 00 00 00
048:  4e 13 03 00 b8 0b 00 00 00 00 00 00 00 00 00 00
064:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
080:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
096:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
112:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
128:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
144:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
160:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
176:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
192:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
208:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
224:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
240:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
256:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
272:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
288:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
304:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
320:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
336:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
352:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
368:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
384:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
400:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
416:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
432:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
448:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
464:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
480:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
496:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
",

Any ideas what it could be?

Ognian commented 1 year ago

according to #8 this could be a "longsys 173" since it has the same signature... Unfortunately I'm at the moment to busy ("making money for a living") but I'm happy for every pull request ...

vladkozlov69 commented 1 year ago

Looks like we already have support for these cards in this opened PR: https://github.com/Ognian/sdmon/pull/12

{
"version": "",
"date": "2023-10-04T10:19:07.000Z",
"device":"/dev/mmcblk1",
"addTime": "false",
"signature":"0x70 0x58",
"Longsys":"true",
"SMARTVersions": 3,
"sizeOfDevSMART": 60,
"originalBadBlock": 16,
"increaseBadBlock": 0,
"writeAllSectNum": 28226 Sector(512Byte),
"replaceBlockLeft": 80,
"degreOfWear": 0.00 Cycle,
"sectorTotal": 123596800,
"remainLifeTime": 100%,
"remainWrGBNum": 196.83TB,
"lifeTimeTotal": 3000.00 Cycle,
"phyWrGBNum": 0.00TB,
"success":true
}

Then this issue can be closed after merging that PR

Ognian commented 1 year ago

@vladkozlov69 ups, so I merged the pull request and fixed the logic... Can you please check if the newly build Development version work with your card?

vladkozlov69 commented 1 year ago

@Ognian yes, newly build Development version works with my card just fine! Thanks.