René's URL Explorer Experiment


Title: SDO Block Transfer fails with "Unknown SDO command specified" error · Issue #599 · canopen-python/canopen · GitHub

Open Graph Title: SDO Block Transfer fails with "Unknown SDO command specified" error · Issue #599 · canopen-python/canopen

X Title: SDO Block Transfer fails with "Unknown SDO command specified" error · Issue #599 · canopen-python/canopen

Description: SDO Block Transfer fails with "Unknown SDO command specified" error Hi everyone, I'm trying to send a binary file over SDO Block Transfer. I've created a Python SDO client that sends to an SDO server (ESP32-based CANopen node). Environme...

Open Graph Description: SDO Block Transfer fails with "Unknown SDO command specified" error Hi everyone, I'm trying to send a binary file over SDO Block Transfer. I've created a Python SDO client that sends to an SDO serv...

X Description: SDO Block Transfer fails with "Unknown SDO command specified" error Hi everyone, I'm trying to send a binary file over SDO Block Transfer. I've created a Python SDO client that se...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SDO Block Transfer fails with \"Unknown SDO command specified\" error","articleBody":"## SDO Block Transfer fails with \"Unknown SDO command specified\" error\n\nHi everyone, I'm trying to send a binary file over SDO Block Transfer. I've created a Python SDO client that sends to an SDO server (ESP32-based CANopen node).\n\n### Environment\n- Python canopen version:  2.3.0\n- Platform: Windows\n- CAN Interface: PCAN USB\n\n### Issue Description\nThe block transfer fails with error `Code 0x05040001, Unknown SDO command specified`. The server logs show a sequence error during the transfer.\n\n### Code to Reproduce\n```python\nimport canopen\nprint(canopen.__version__)\nimport os\n\nfilename = 'data/data.bin'\nnetwork = canopen.Network()\nnode = canopen.BaseNode402(10, \"path_to_od.eds\")\nnetwork.add_node(node)\nnetwork.connect(interface='pcan', channel='PCAN_USBBUS1', bitrate=125000)\n\nfilesize = os.path.getsize(filename)\nprint(f\"File size: {filesize} bytes\")\n\ntry:\n   # Send file size\n   filesize_bytes = filesize.to_bytes(4, byteorder='little', signed=False)\n   node.sdo.download(0x2005, 2, filesize_bytes)\n   \n   # Send file data using block transfer\n   with open(filename, 'rb') as infile, \\\n        node.sdo[0x2005][3].open('wb', size=filesize, block_transfer=True) as outfile:\n       while True:\n           data = infile.read(1024)\n           if not data:\n               break\n           outfile.write(data)\n   \n   print(\"Block transfer successful!\")\n   \nexcept Exception as e:\n   print(f\"Block transfer failed: {e}\")\n   \nnetwork.disconnect()\n```\n### Error output\n```\nBlock transfer failed: Code 0x05040001, Unknown SDO command specified\n```\n\n### ESP32 Logs\n```\nI (41404) CO_driver: CANRX id: 0x60a, dlc: 8, data: [35 5 32 2 244 0 0 0]\nI (41413) CO_driver: CANRX id: 0x60a, dlc: 8, data: [198 5 32 3 244 0 0 0]\nI (41422) CO_driver: CANRX id: 0x60a, dlc: 8, data: [1 0 0 0 0 49 57 55]\nI (41423) CO_driver: CANRX id: 0x60a, dlc: 8, data: [2 48 45 48 49 45 48 49]\nI (41425) CO_driver: CANRX id: 0x60a, dlc: 8, data: [3 84 48 48 58 48 49 58]\nI (41431) CO_driver: CANRX id: 0x60a, dlc: 8, data: [4 53 50 0 0 0 0 0]\nI (41438) CO_driver: CANRX id: 0x60a, dlc: 8, data: [5 0 0 0 0 0 0 0]\nI (41444) CO_driver: CANRX id: 0x60a, dlc: 8, data: [6 0 115 121 115 116 101 109]\nI (41451) CO_driver: CANRX id: 0x60a, dlc: 8, data: [7 0 0 0 0 0 0 0]\nI (41457) CO_driver: CANRX id: 0x60a, dlc: 8, data: [8 0 0 0 0 0 0 0]\nI (41463) CO_driver: CANRX id: 0x60a, dlc: 8, data: [11 50 53 45 48 54 45 50]\nI (41470) CO_SDO: sub-block, rx WRONG: sequno=0B, previous=08\nI (41476) CO_driver: CANRX id: 0x60a, dlc: 8, data: [17 0 0 0 0 0 0 0]\nI (41482) CO_driver: CANRX id: 0x60a, dlc: 8, data: [23 0 0 0 0 0 0 0]\nI (41488) CO_driver: CANRX id: 0x60a, dlc: 8, data: [31 128 63 0 0 224 64 0]\nI (41498) CO_driver: CANRX id: 0x60a, dlc: 8, data: [197 81 178 0 0 0 0 0]\n```\n\n`CO_SDO: sub-block, rx WRONG: sequno=0B, previous=08` -\u003e Maybe a packet lost ?\n\n### EDS Configuration\n```\n[2005]\nParameterName=File transfert\nObjectType=0x9\nSubNumber=0x5\n\n[2005sub0]\nParameterName=Highest sub-index supported\nObjectType=0x7\nDataType=0x0005\nAccessType=ro\nDefaultValue=0x04\nPDOMapping=0\n\n[2005sub1]\nParameterName=File name\nObjectType=0x7\nDataType=0x0009\nAccessType=rw\nDefaultValue=0\nPDOMapping=0\n\n[2005sub2]\nParameterName=File size\nObjectType=0x7\nDataType=0x0007\nAccessType=rw\nDefaultValue=0\nPDOMapping=0\n\n[2005sub3]\nParameterName=File data\nObjectType=0x7\nDataType=0x000F\nAccessType=rw\nHighLimit=65536\nLowLimit=0\nDefaultValue=\nPDOMapping=0\n\n[2005sub4]\nParameterName=Transfert status\nObjectType=0x7\nDataType=0x0005\nAccessType=ro\nDefaultValue=0\nPDOMapping=0\n```\n\n### Questions\n1. Is my Python code correct for SDO block transfer?\n2. Could this be a configuration issue on the ESP32 server side?\n3. Is SDO block transfer fully supported in the Python canopen library? I've seen that the feature might not work correctly on every implementation.\n\nThanks in advance for any help!","author":{"url":"https://github.com/dhugoexe","@type":"Person","name":"dhugoexe"},"datePublished":"2025-07-08T08:10:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/599/canopen/issues/599"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7deb7301-dd77-c73d-9fc2-900bd2db95a2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idACC6:5592:6946463:910265A:6A5E8A6D
html-safe-nonce7f9dffed30ea187a284fb00863cb7cf1679f941660261ba97797154783dc9e3d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0M2OjU1OTI6Njk0NjQ2Mzo5MTAyNjVBOjZBNUU4QTZEIiwidmlzaXRvcl9pZCI6IjEwNDQ4MDI4Njc2MDE0MzQ2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacadfea257373763ea87cfdafb411da00e1c1160978836d0bf4f716d9341bb0c45
hovercard-subject-tagissue:3211502463
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/599/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e5e0f099fd152325fe6c869f1a56ee1fc80d4f17a614ceb76aeeb93e0423d33b/canopen-python/canopen/issues/599
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e5e0f099fd152325fe6c869f1a56ee1fc80d4f17a614ceb76aeeb93e0423d33b/canopen-python/canopen/issues/599
og:image:altSDO Block Transfer fails with "Unknown SDO command specified" error Hi everyone, I'm trying to send a binary file over SDO Block Transfer. I've created a Python SDO client that sends to an SDO serv...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedhugoexe
hostnamegithub.com
expected-hostnamegithub.com
None6846168613b61074bf9dc18814ffe7596f4950f1f3b3070cfea5af602ccb3327
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
release5d2e2a84380a21e7a59801a38bee3d8a5f0e822d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/canopen-python/canopen/issues/599#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcanopen-python%2Fcanopen%2Fissues%2F599
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%2F599
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/599
Reloadhttps://github.com/canopen-python/canopen/issues/599
Reloadhttps://github.com/canopen-python/canopen/issues/599
Please reload this pagehttps://github.com/canopen-python/canopen/issues/599
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
SDO Block Transfer fails with "Unknown SDO command specified" errorhttps://github.com/canopen-python/canopen/issues/599#top
questionhttps://github.com/canopen-python/canopen/issues?q=state%3Aopen%20label%3A%22question%22
sdohttps://github.com/canopen-python/canopen/issues?q=state%3Aopen%20label%3A%22sdo%22
https://github.com/dhugoexe
dhugoexehttps://github.com/dhugoexe
on Jul 8, 2025https://github.com/canopen-python/canopen/issues/599#issue-3211502463
questionhttps://github.com/canopen-python/canopen/issues?q=state%3Aopen%20label%3A%22question%22
sdohttps://github.com/canopen-python/canopen/issues?q=state%3Aopen%20label%3A%22sdo%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.