Skip to content

Commit

Permalink
Fixed \#3
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnoFTW committed Mar 14, 2021
1 parent a144609 commit 1fa0f7f
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ We currently support 4 forms of logging:
Here we will examine the various configuration options:
```yaml
interface: socketcan_native # can bus driver
interface: socketcan # can bus driver
channel: can1 # which can bus to use
log-messages: /home/pi/log/can-log/messages/ # location of debug messages
log-folder: /home/pi/log/can-log/ # location of log files
Expand Down
2 changes: 1 addition & 1 deletion example_bustech_logging.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface: socketcan_native
interface: socketcan
channel: can0
log-messages: ~/log/can-log/messages/
log-folder: ~/log/can-log/
Expand Down
2 changes: 1 addition & 1 deletion example_fms_logging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channel: can0
disable-gps: false
fms: true
gps-port: /dev/ttyS0
interface: socketcan_native
interface: socketcan
log-bluetooth: true
log-folder: ~/log/can-log/
log-level: warning
Expand Down
2 changes: 1 addition & 1 deletion example_obd_querying_conf.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface: socketcan_native
interface: socketcan
channel: can0
log-messages: ~/log/can-log/messages/
log-folder: ~/log/can-log/
Expand Down
4 changes: 2 additions & 2 deletions example_obd_sniffing_conf.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface: socketcan_native
interface: socketcan
channel: can1
log-messages: /home/pi/log/can-log/messages/
log-folder: /home/pi/log/can-log/
Expand All @@ -18,4 +18,4 @@ disable-gps: false
gps-port: /dev/ttyS0
tesla: false
sniffing: true
vehicle-id: 'sniffer'
vehicle-id: 'sniffer'
2 changes: 1 addition & 1 deletion example_tesla_conf.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface: socketcan_native
interface: socketcan
channel: can1
log-messages: /home/pi/log/can-log/messages/
log-folder: /home/pi/log/can-log/
Expand Down
2 changes: 1 addition & 1 deletion rpi_can_logger/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

parser = argparse.ArgumentParser(description='Log Data from a PiCAN2 Shield and GPS')
parser.add_argument('--interface', '-i', default='can0', help='CAN Interface to use')
parser.add_argument('--channel', '-c', default='socketcan_native', help='CAN Channel to use')
parser.add_argument('--channel', '-c', default='socketcan', help='CAN Channel to use')
parser.add_argument('--pid-file', '-pf', default='/var/log/can-log/can_log.pid',
help='PID file to record what file we are currently writing to')
parser.add_argument('--log-messages', '-lm', default='/var/log/can-log/messages/',
Expand Down
2 changes: 1 addition & 1 deletion tests/can_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
elif arg1 in ['can1', 'can0']:
# pican
channel = arg1
interface = 'socketcan_native'
interface = 'socketcan'
else:
exit("Invalid CAN bus specified")
channel = "can1"
Expand Down
2 changes: 1 addition & 1 deletion tests/can_query_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
elif arg in ['can1', 'can0']:
# pican
channel = arg
interface = 'socketcan_native'
interface = 'socketcan'
else:
exit("Invalid CAN bus specified")

Expand Down
2 changes: 1 addition & 1 deletion tests/detect_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
elif arg1 in ['can1', 'can0']:
# pican
channel = arg1
interface = 'socketcan_native'
interface = 'socketcan'
else:
exit("Invalid CAN bus specified")
can_type = sys.argv[2].lower()
Expand Down
2 changes: 1 addition & 1 deletion tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_args():
elif arg in ['can1', 'can0']:
# pican
channel = arg
interface = 'socketcan_native'
interface = 'socketcan'
else:
exit("Invalid CAN bus specified")
else:
Expand Down

0 comments on commit 1fa0f7f

Please sign in to comment.