GithubHelp home page GithubHelp logo

zero-log-parser's Introduction

     Hello.

     You appear to have wandered into my corner of this digital bazaar.

     For those prepared to wander outside, you'll find a selection of other
     projects at https://simple.industries/tools.html.

     Enjoy your stay.

                                                                               ◢

zero-log-parser's People

Contributors

cornejo avatar kimburgess avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

zero-log-parser's Issues

MBB board rev 3, firmware 24 outputs unexpected values in log start / end byte addresses

I got the latest code from here, and it has this error stack:

Parsing 538SM7Z36FCG04513_MBB_2016-02-28.bin...
8730 entries found
Traceback (most recent call last):
File "./zero_log_parser.py", line 257, in
parse_log(log_file, output_file)
File "./zero_log_parser.py", line 229, in parse_log
(length, entry) = parse_entry(log, read_pos)
File "./zero_log_parser.py", line 76, in parse_entry
header = log.unpack('char', 0x0, offset=address)
File "./zero_log_parser.py", line 66, in unpack
count=count)
File "./zero_log_parser.py", line 48, in unpack
return struct.unpack_from(type_format, buff, address)[0]
struct.error: unpack_from requires a buffer of at least 1 bytes

538SM7Z36FCG04513_MBB_2016-02-28.bin.zip

Invalid entry header byte

Hi there,
first of all thanks for the script! It worked fine the first time I used it (log1.bin).
Some days later I exported my bike logs again (log2.bin), but the script came up with following:

Parsing log2.bin...
8252 entries found
Traceback (most recent call last):
  File "zero_log_parser.py", line 566, in <module>
    parse_log(log_file, output_file)
  File "zero_log_parser.py", line 538, in parse_log
    (length, entry) = parse_entry(event_log, read_pos)
  File "zero_log_parser.py", line 98, in parse_entry
    raise ValueError('Invalid entry header byte')
ValueError: Invalid entry header byte

I have tried the bug-fix suggested in the other issue, but that fix only cam up with:

  File "zero_log_parser2.py", line 99
    print 'Skipped %d bytes for alignment' % address
                                         ^
SyntaxError: Missing parentheses in call to 'print'

Are you still working on bug fixes?
Cheers,
brayhead

sorry, can't upload .zip files - will have to check out why that is... <<<

Parser fails, zero length field name in format

python-2.6.6 on CentOS 6, 2017 Zero FXS

./zero_log_parser-orig.py 538XXBZ48HCJ08346_MBB_2017-11-04.bin
File "./zero_log_parser-orig.py", line 569, in
parse_log(log_file, output_file)
File "./zero_log_parser-orig.py", line 500, in parse_log
print('Parsing {}...'.format(bin_file))
ValueError: zero length field name in format

I note that my VIN is at offset 0x252 and bike model at 0x26c

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.