René's URL Explorer Experiment


Title: LocalNode not emitting TPDOs · Issue #328 · canopen-python/canopen · GitHub

Open Graph Title: LocalNode not emitting TPDOs · Issue #328 · canopen-python/canopen

X Title: LocalNode not emitting TPDOs · Issue #328 · canopen-python/canopen

Description: Great library. Generally it has been nice to use, but I'm having some trouble with PDOs. I would like to use the canopen library to simulate a number of slave devices. Configuration of the slaves will be read from an eds/dcf file and the...

Open Graph Description: Great library. Generally it has been nice to use, but I'm having some trouble with PDOs. I would like to use the canopen library to simulate a number of slave devices. Configuration of the slaves w...

X Description: Great library. Generally it has been nice to use, but I'm having some trouble with PDOs. I would like to use the canopen library to simulate a number of slave devices. Configuration of the slav...

Opengraph URL: https://github.com/canopen-python/canopen/issues/328

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LocalNode not emitting TPDOs","articleBody":"Great library. Generally it has been nice to use, but I'm having some trouble with PDOs.\r\n\r\nI would like to use the canopen library to simulate a number of slave devices. Configuration of the slaves will be read from an eds/dcf file and thereafter the bus master may make further configuration changes to the slave devices PDOs. In the final application the bus master will be a separate physical device (_not_ the canopen library).\r\n\r\nTo begin I am trying to set up a single slave and get it to transmit a PDO. For convenience I am using the canopen library to also simulate my bus master. I have two python repls open. Top left is the bus master, bottom left is the slave and right is a dump of the virtual CAN bus they are communicating over.\r\n\r\nMy expectation was that a slave with event-driven asynchronous TPDOs configured would start transmitting the TPDO as soon as it was put into 'OPERATIONAL' mode. I'm new to CANOpen, so I'm not sure if this expectation is correct. But this is the case with an actual CANOpen sensor (encoder) that I've been experimenting with. You can see in the screen capture that I've tried to configure the slave PDO (most of the config and mappings are already done in the DCF file) and put it into operational mode, but I don't get any PDOs in the candump.\r\n\r\n![log](https://user-images.githubusercontent.com/113959584/191161662-8df7dd8c-d824-457e-91aa-328228039711.png)\r\n\r\nI notice that there is a `tpdo.start(interval)` function in the API, but I don't quite understand how this works. Is this supposed to be called on the device that is emitting the TPDO (the slave device in my case)? How do I use this if I don't know in advance which PDOs the master will configure? Is there some kind of callback that I should invoke it from when the slave is put into operational mode?\r\n\r\nAlso, when I call the `start()` function I am getting an error:\r\n```\r\n\u003e\u003e\u003e node.tpdo[1].start(1)\r\nTraceback (most recent call last):\r\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n  File \"/home/nick/.local/lib/python3.10/site-packages/canopen/pdo/base.py\", line 498, in start\r\n    self._task = self.pdo_node.network.send_periodic(\r\n  File \"/home/nick/.local/lib/python3.10/site-packages/canopen/network.py\", line 233, in send_periodic\r\n    return PeriodicMessageTask(can_id, data, period, self.bus, remote)\r\n  File \"/home/nick/.local/lib/python3.10/site-packages/canopen/network.py\", line 311, in __init__\r\n    self.msg = can.Message(is_extended_id=can_id \u003e 0x7FF,\r\nTypeError: '\u003e' not supported between instances of 'NoneType' and 'int'\r\n```","author":{"url":"https://github.com/nick-wlink","@type":"Person","name":"nick-wlink"},"datePublished":"2022-09-20T03:51:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/328/canopen/issues/328"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cb585f36-acd2-77dc-ba17-7f3d484aaec6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAA72:10A28F:7C811E:A24F8C:6A5EC530
html-safe-nonce37a960b1b8d900a995dd78fba6430c9043126d539674d71bd1dd494307a7f4e9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTcyOjEwQTI4Rjo3QzgxMUU6QTI0RjhDOjZBNUVDNTMwIiwidmlzaXRvcl9pZCI6IjUwNjM3MzA0MjE4Nzc4ODQyMDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca6a209fa320f612e36f4be5a12a6e9804dc684ab957669884a9297414d89fe34
hovercard-subject-tagissue:1378778332
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/canopen-python/canopen/328/issue_layout
twitter:imagehttps://opengraph.githubassets.com/72cba9465fb026829a9828ac974aca614092c76e538630943a6743ba86b8acca/canopen-python/canopen/issues/328
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/72cba9465fb026829a9828ac974aca614092c76e538630943a6743ba86b8acca/canopen-python/canopen/issues/328
og:image:altGreat library. Generally it has been nice to use, but I'm having some trouble with PDOs. I would like to use the canopen library to simulate a number of slave devices. Configuration of the slaves w...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenick-wlink
hostnamegithub.com
expected-hostnamegithub.com
Nonefbe2b3a3baf2f0e0ac1671a4d190d9de098dcf218eb73137ad46da364d3df398
turbo-cache-controlno-preview
go-importgithub.com/canopen-python/canopen git https://github.com/canopen-python/canopen.git
octolytics-dimension-user_id200581454
octolytics-dimension-user_logincanopen-python
octolytics-dimension-repository_id68737600
octolytics-dimension-repository_nwocanopen-python/canopen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id68737600
octolytics-dimension-repository_network_root_nwocanopen-python/canopen
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0cd844a7ab298ec8d89b66ef4b195d158229d335
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/canopen-python/canopen/issues/328#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcanopen-python%2Fcanopen%2Fissues%2F328
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcanopen-python%2Fcanopen%2Fissues%2F328
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=canopen-python%2Fcanopen
Reloadhttps://github.com/canopen-python/canopen/issues/328
Reloadhttps://github.com/canopen-python/canopen/issues/328
Reloadhttps://github.com/canopen-python/canopen/issues/328
Please reload this pagehttps://github.com/canopen-python/canopen/issues/328
canopen-python https://github.com/canopen-python
canopenhttps://github.com/canopen-python/canopen
Notifications https://github.com/login?return_to=%2Fcanopen-python%2Fcanopen
Fork 359 https://github.com/login?return_to=%2Fcanopen-python%2Fcanopen
Star 561 https://github.com/login?return_to=%2Fcanopen-python%2Fcanopen
Code https://github.com/canopen-python/canopen
Issues 53 https://github.com/canopen-python/canopen/issues
Pull requests 20 https://github.com/canopen-python/canopen/pulls
Discussions https://github.com/canopen-python/canopen/discussions
Actions https://github.com/canopen-python/canopen/actions
Projects https://github.com/canopen-python/canopen/projects
Security and quality 0 https://github.com/canopen-python/canopen/security
Insights https://github.com/canopen-python/canopen/pulse
Code https://github.com/canopen-python/canopen
Issues https://github.com/canopen-python/canopen/issues
Pull requests https://github.com/canopen-python/canopen/pulls
Discussions https://github.com/canopen-python/canopen/discussions
Actions https://github.com/canopen-python/canopen/actions
Projects https://github.com/canopen-python/canopen/projects
Security and quality https://github.com/canopen-python/canopen/security
Insights https://github.com/canopen-python/canopen/pulse
LocalNode not emitting TPDOshttps://github.com/canopen-python/canopen/issues/328#top
pdohttps://github.com/canopen-python/canopen/issues?q=state%3Aopen%20label%3A%22pdo%22
questionhttps://github.com/canopen-python/canopen/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com/nick-wlink
nick-wlinkhttps://github.com/nick-wlink
on Sep 20, 2022https://github.com/canopen-python/canopen/issues/328#issue-1378778332
https://user-images.githubusercontent.com/113959584/191161662-8df7dd8c-d824-457e-91aa-328228039711.png
pdohttps://github.com/canopen-python/canopen/issues?q=state%3Aopen%20label%3A%22pdo%22
questionhttps://github.com/canopen-python/canopen/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.