Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SocketcandMedia Media class added for socketcand functionality #306

Merged
merged 49 commits into from
Sep 8, 2023

Commits on Jul 6, 2023

  1. Configuration menu
    Copy the full SHA
    e79c885 View commit details
    Browse the repository at this point in the history
  2. test

    wiboticanders committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    e0e4026 View commit details
    Browse the repository at this point in the history
  3. Added the typing.Optional to host and port

    in init function
    wiboticanders committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    12a6b12 View commit details
    Browse the repository at this point in the history
  4. changed the socketcand interface variables from

    the old implimentation to a new one
    wiboticanders committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    6f54abe View commit details
    Browse the repository at this point in the history
  5. Cleaned up some junk left in from old commits,

    added another error check for socketcand
    and CAN FD at same time
    wiboticanders committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    0cf6e65 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2023

  1. test

    wiboticanders committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    9063059 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    720166e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aeb722e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    98b1dbe View commit details
    Browse the repository at this point in the history
  5. test

    wiboticanders committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    f576f22 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2023

  1. Fixed small variable missname, added documentation

    to file as well
    wiboticanders committed Jul 8, 2023
    Configuration menu
    Copy the full SHA
    c57c5ed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a30f62 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2023

  1. changed defualt port

    wiboticanders committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    a1e8ffc View commit details
    Browse the repository at this point in the history
  2. Changed host and port vars to be in the superclass

    _InterfaceParameters instead of separately in the
    FD and classic subclasses
    wiboticanders committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    a7e65e7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    196876f View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. test

    wiboticanders committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    d9f8267 View commit details
    Browse the repository at this point in the history
  2. Revert "test"

    This reverts commit d9f8267.
    wiboticanders committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    9b48f1d View commit details
    Browse the repository at this point in the history
  3. SocketcandMedia Media class added for socketcand

    library functionality. It runs on Python-CAN
    like the interfaces in the PythonCANMedia class,
    but because it has extra variables (host and port),
    it is not very clean to just add socketcand to
    PythonCANMedia.
    wiboticanders committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    d08509a View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. Updated version of the socketcandMedia class.

    This fixes the unnecessary pieces left from the pythonCANMedia
    class, such as the FD vs Classic dataclasses, Can Bus Options,
    and the constructor class. It also updates the way
    parameters are inputed to be all in the iface_name
    param like 'socketcand:can:host:port'
    wiboticanders committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    4bed41a View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. Updated SocketcandMedia class with unit test

    Added unit test and changed spec string to be parsed in _transport_factory
    
    fixed formatting issues that did not pass Black guidelines
    
    Removed unecessary params S
    
    Updated version of the socketcandMedia class. This fixes the unnecessary pieces left from the pythonCANMedia class, such as the FD vs Classic dataclasses, Can Bus Options, and the constructor class. It also updates the way parameters are inputed to be all in the iface_name param like 'socketcand:can:host:port'
    
    SocketcandMedia Media class added for socketcand library functionality. It runs on Python-CAN like the interfaces in the PythonCANMedia class, but because it has extra variables (host and port), it is not very clean to just add socketcand to PythonCANMedia.
    wiboticanders committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    7c77be9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b74bb9b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    53036ca View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ac1fac9 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2023

  1. added environment configuration

    builds and installs socketcand, sets up vcan, and starts socketcand
    wiboticanders committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    5b8b45e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    93c58e3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9ae6cdd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8e5986d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8558c61 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a71a028 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ef5d811 View commit details
    Browse the repository at this point in the history
  8. Fixed vcan name

    wiboticanders committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    bf3621c View commit details
    Browse the repository at this point in the history
  9. Fixed vcan name

    wiboticanders committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    c6f8003 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2023

  1. Configuration menu
    Copy the full SHA
    49292bb View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. Configuration menu
    Copy the full SHA
    2cbc4e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fc88a2b View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. Configuration menu
    Copy the full SHA
    fd828db View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0ecd0f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f25c069 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. Updated test environment and tests

    Test environment now properly builds and breaks down socketcand
    Tests use rx_a and rx_b for proper communication
    wiboticanders committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    ccb9ef2 View commit details
    Browse the repository at this point in the history
  2. Changed socketcand build and install to GH workflow plus more

    Also modified docs of SocketcandMedia, and updated socketcandMedia
    test to only start the daemon instead of building socketcand, setting
    up a vcan, and then running the daemon, now socketcand is installed
    in workflow and we use an existing vcan set up previously.
    I also added some error handling for running the socketcand
    daemon and made sure to kill the process correctly
    wiboticanders committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    605ba5c View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. Configuration menu
    Copy the full SHA
    e379145 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fb3b99d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6ad2e1e View commit details
    Browse the repository at this point in the history
  4. fixed black checkstyle

    wiboticanders committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    67ac831 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    585c7c1 View commit details
    Browse the repository at this point in the history
  6. Apply suggestions from code review

    Co-authored-by: Pavel Kirienko <[email protected]>
    wiboticanders and pavel-kirienko authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    00baae9 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2023

  1. Updated interface assert and fixed infinite test failure

    In the previous commit it was mostly doc updates, but one changed the
    socketcandmedia interface_name return. I forgot to update the unit test
    assertions to match this, so in the CI testing it resulted in a
    never ending loop. The issue stemmed from the way Popen gets stderr
    and stdout with the communicate method, but only after the yield
    statement. It does not respond to the kill() and instead runs forever,
    so I replaced it with just a kill. Although you lose a little bit of
    info, the socketcand instance gets checked before the unit test
    is done in the fixture, and from there the daemon is very robust and
    will not stop unless you force kill it or terminate it. So I think this
    is the best solution, you still get output from errors within the unit
    test as well.
    wiboticanders committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    4f7f170 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. Updated minor version number and changelog

    Also made small tweaks based on code change requests,
    removed some redundacy, slightly changed docs.
    wiboticanders committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    29917e3 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. Configuration menu
    Copy the full SHA
    87c7a49 View commit details
    Browse the repository at this point in the history