You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-4Lines changed: 26 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@ CanOpenDataViewer/
25
25
***Configurable SDO Polling:** Select any SDO from a device's Object Dictionary, set a custom polling rate for each, and see the values plotted or logged in real-time.
26
26
***Node Health Monitoring:** Automatic health checks verify that the CANopen node is alive by periodically reading the mandatory Device Type object (0x1000:00). Detects node disconnection within 4-6 seconds and updates the UI accordingly.
27
27
***Connection Status & Error Reporting:** Clear visual indicators show whether the node is connected (green) or disconnected (red). All connection failures and SDO read errors are displayed in dismissible error banners with detailed messages.
28
+
***Configuration Persistence:** Automatically saves and restores your last used settings (CAN interface, Node ID, EDS file path, logging preferences). No need to re-enter configuration on every startup.
29
+
***Automatic File Logging:** Optionally log all SDO data, connection events, and errors to CSV files with timestamps. Logs are saved to `~/.local/share/canopen-viewer/logs/` by default. Enable/disable logging via the checkbox in the top panel, and open the log folder with one click.
28
30
***Selective TPDO Monitoring:** The UI automatically lists all available Transmit-PDOs from a device profile. Simply check the ones you want to monitor.
29
31
***Intelligent Data Handling:**
30
32
***Numeric** PDO data is automatically sent to the real-time plot.
@@ -128,11 +130,11 @@ This ensures the user is always presented with information in its most useful fo
128
130
```
129
131
130
132
Then in the GUI:
131
-
- Select CAN interface: `vcan0`
132
-
- Enter Node ID: `4`
133
-
- Select EDS file: `examples/mock_node.eds` (for testing with mock node)
134
-
- Click "Start"
133
+
- **First time:** Select CAN interface (`vcan0`), enter Node ID (`4`), and selectEDS file (`examples/mock_node.eds`)
134
+
- **Subsequent times:** Your last configuration will be automatically loaded - just click through the steps
135
+
- Click "Start" - your settings will be saved automatically
135
136
- **You should see:** Green "● Connected" status in the top panel
137
+
- **Optional:** Enable logging with the "Enable Logging" checkbox (top-right) to record all events to CSV
136
138
- Subscribe to SDOs via the "Subscribe to SDO" button
137
139
- **Try it:** Stop the mock node (Ctrl+C in Terminal 1) and watch the status change to red "● Disconnected" within 4-6 seconds
138
140
@@ -193,6 +195,26 @@ This ensures the user is always presented with information in its most useful fo
193
195
1. Check CPU usage - the application should use minimal CPU when idle
194
196
2. Report the issue with steps to reproduce at: https://github.com/erdemsimsek/CanOpenDataViewer/issues
195
197
198
+
### Logging Issues
199
+
200
+
**Problem:** Logging checkbox doesn't work or logs aren't being created.
201
+
202
+
**Solution:**
203
+
1. Check that the log directory is writable: `~/.local/share/canopen-viewer/logs/`
204
+
2. If the directory doesn't exist, the application will try to create it automatically
205
+
3. Click "Open Log Folder" button to view the log directory in your file manager
206
+
4. Log files are named: `canopen_log_YYYYMMDD_HHMMSS.csv`
207
+
208
+
**Log File Format:**
209
+
- CSV format with headers: `Timestamp, Event Type, Address, Value, Message`
0 commit comments