Title: LssMaster accumulates data with external LSS master · Issue #577 · canopen-python/canopen · GitHub
Open Graph Title: LssMaster accumulates data with external LSS master · Issue #577 · canopen-python/canopen
X Title: LssMaster accumulates data with external LSS master · Issue #577 · canopen-python/canopen
Description: As #574 was closed there is a specific issue with LssMaster in the current implementation: If this library is together with another LSS master present on the physical bus, the input queue of LssMaster will be filled up with CAN messages,...
Open Graph Description: As #574 was closed there is a specific issue with LssMaster in the current implementation: If this library is together with another LSS master present on the physical bus, the input queue of LssMas...
X Description: As #574 was closed there is a specific issue with LssMaster in the current implementation: If this library is together with another LSS master present on the physical bus, the input queue of LssMas...
Opengraph URL: https://github.com/canopen-python/canopen/issues/577
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LssMaster accumulates data with external LSS master","articleBody":"As #574 was closed there is a specific issue with `LssMaster` in the current implementation:\n\nIf this library is together with another LSS master present on the physical bus, the input queue of `LssMaster` will be filled up with CAN messages, eventually leading to memory overload. It is only emptied when the `LssMaster` is actively used to send LSS commands. This is because `Network` creates an `LssMaster` instance and activates the subscription to the LSS messages.\n\nhttps://github.com/canopen-python/canopen/blob/f1a71da20b918760ace20c62297f41132cd6618c/canopen/network.py#L53-L55\n\nhttps://github.com/canopen-python/canopen/blob/f1a71da20b918760ace20c62297f41132cd6618c/canopen/lss.py#L396-L397\n\nI think the simplest solution would be not to activate the subscription callback until `LssMaster.__send_command()` is called. It is also draining the queue at this point:\n\nhttps://github.com/canopen-python/canopen/blob/f1a71da20b918760ace20c62297f41132cd6618c/canopen/lss.py#L377-L379\n","author":{"url":"https://github.com/sveinse","@type":"Person","name":"sveinse"},"datePublished":"2025-04-27T21:45:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/577/canopen/issues/577"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:18066acf-2818-71a1-0465-575368a35fe5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6D0:1ABD8E:86E9BEE:B7892E9:6A5E7F6A |
| html-safe-nonce | 6cf1903b0e15a337ef4c755ad04f5d85a78f0a019f279fcb61f24e13d9bbe3c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkQwOjFBQkQ4RTo4NkU5QkVFOkI3ODkyRTk6NkE1RTdGNkEiLCJ2aXNpdG9yX2lkIjoiMTA5ODY1NjEzMTA4NjA4ODc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2b606d83af9da5ea0a3c58ad7ef8f43ad5e4959e61693be21284be38201ae88b |
| hovercard-subject-tag | issue:3023340599 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/canopen-python/canopen/577/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f646af6fab5d113cd1e2024ba7dc8d1dd677a675cfabe3f8a5d8b13432b3a0cf/canopen-python/canopen/issues/577 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f646af6fab5d113cd1e2024ba7dc8d1dd677a675cfabe3f8a5d8b13432b3a0cf/canopen-python/canopen/issues/577 |
| og:image:alt | As #574 was closed there is a specific issue with LssMaster in the current implementation: If this library is together with another LSS master present on the physical bus, the input queue of LssMas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sveinse |
| hostname | github.com |
| expected-hostname | github.com |
| None | 71950bbe6bf7e15662b868c102fed9d1682c29a05970d9b2daa2e4dd3522c52e |
| turbo-cache-control | no-preview |
| go-import | github.com/canopen-python/canopen git https://github.com/canopen-python/canopen.git |
| octolytics-dimension-user_id | 200581454 |
| octolytics-dimension-user_login | canopen-python |
| octolytics-dimension-repository_id | 68737600 |
| octolytics-dimension-repository_nwo | canopen-python/canopen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 68737600 |
| octolytics-dimension-repository_network_root_nwo | canopen-python/canopen |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7514606601325843bc1c464d2d8bf5fe9af2c154 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width