René's URL Explorer Experiment


Title: slcan interface needs some time-tweaking (Possible solution provided) · Issue #1746 · hardbyte/python-can · GitHub

Open Graph Title: slcan interface needs some time-tweaking (Possible solution provided) · Issue #1746 · hardbyte/python-can

X Title: slcan interface needs some time-tweaking (Possible solution provided) · Issue #1746 · hardbyte/python-can

Description: Describe the bug Messages are truncated while using send command. Messages are truncated while using close command. To Reproduce Code as example. Requires python-can and pyserial modules. Windows PC and CANable with original firmware: ht...

Open Graph Description: Describe the bug Messages are truncated while using send command. Messages are truncated while using close command. To Reproduce Code as example. Requires python-can and pyserial modules. Windows P...

X Description: Describe the bug Messages are truncated while using send command. Messages are truncated while using close command. To Reproduce Code as example. Requires python-can and pyserial modules. Windows P...

Opengraph URL: https://github.com/hardbyte/python-can/issues/1746

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"slcan interface needs some time-tweaking (Possible solution provided)","articleBody":"### Describe the bug\r\nMessages are truncated while using send command.\r\nMessages are truncated while using close command.\r\n\r\n\r\n### To Reproduce\r\nCode as example. Requires python-can and pyserial modules.\r\nWindows PC and CANable with original firmware: https://github.com/normaldotcom/canable-fw\r\nCounter-interface: PCAN USB dongle and oscilloscoop\r\n\r\nProblem 1: When looping messages within the \"with can.Bus\", one can see on the scope that the messages are corrupted/truncated.\r\nProblem 2: When looping messages main, one can see that the last message in the \"with can.Bus\" is truncated.\r\n\r\nPossible solution:\r\nEnd the _write-function with: \"time.sleep(3.0e-5)\"\r\nBegin the close-function with: \"time.sleep(3.0e-5)\"\r\n\r\nAdditional information, experimentally obtained:\r\n10kbps: total fail (!)\r\n20kpbs: requires 5.0e-3 seconds\r\n50kpbs: requires 2.0e-3 seconds\r\n83kpbs: requires 2.0e-3 seconds\r\n100kpbs: requires 6.0e-4 seconds\r\n125kpbs: requires 6.0e-4 seconds\r\n250kpbs: requires 5.0e-5 seconds\r\n500kpbs: requires 3.0e-5 seconds\r\n750kpbs: other side (PCAN in this case) has no setting for 750, it has 800 which is not compatible\r\n1000kpbs: requires 4.0e-6 seconds or even lower\r\n\r\n### Expected behavior\r\nTruncated messages: seen on a oscilloscoop. PCAN viewer tels me stuffing errors. The error will result in resending infinite retrying messages.\r\n\r\n### Additional context\r\nOS and version: Windows 11\r\nPython version: Python 3.12\r\npython-can version: 4.3.1\r\npyserial version: 3.5\r\npython-can interface/s (if applicable): slcan\r\nHardware interface: CANable 2.0 Pro\r\nIDE: PyCharm recent version\r\nOscilloscope: Rigol DS1000-series\r\nCounter-interface: PCAN USB isolated version and PCAN-View software\r\n\r\n\u003c!-- Add any other context about the problem here. --\u003e\r\nPossible solution:\r\nEnd the _write-function with: \"time.sleep(3.0e-5)\"\r\nBegin the close-function with: \"time.sleep(3.0e-5)\"\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eTraceback and logs\u003c/summary\u003e\r\n\u003c!-- Has to be followed by an empty line! --\u003e\r\nNone\r\n\r\n\u003c!-- More details such as a minimal script to demonstrate the bug, relevant logs and any tracebacks go here. --\u003e\r\nSee code example.\r\n\r\n\u003c!-- Code examples can be included: --\u003e\r\n```\r\ndef send_one():\r\n    with can.Bus(interface=\"slcan\", channel=\"COM7@115200\",  bitrate=500000, sleep_after_open=0.0) as bus:\r\n        msg = can.Message(\r\n            arbitration_id=0x555, data=[0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55], is_extended_id=False\r\n        )\r\n\r\n        try:\r\n            j = 0\r\n            while j \u003c 2:\r\n                bus.send(msg)\r\n                j = j + 1\r\n        except can.CanError:\r\n            print(\"Message NOT sent\")\r\n\r\n\r\nif __name__ == \"__main__\":\r\n    i = 0\r\n    while i \u003c 2:\r\n        send_one()\r\n        i = i + 1\r\n```\r\n\r\n\u003c/details\u003e\r\n","author":{"url":"https://github.com/Dubbels17","@type":"Person","name":"Dubbels17"},"datePublished":"2024-02-22T13:14:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1746/python-can/issues/1746"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2c7ded43-4465-b92a-c8da-903da787309f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id911E:2E8FB4:59C6ACF:77BD7EA:6A5DD3F9
html-safe-noncef52f1e904a3e4cd71b0f1485d34c661ea3f6af8d600ce7f577135d7d9b85a9d3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTFFOjJFOEZCNDo1OUM2QUNGOjc3QkQ3RUE6NkE1REQzRjkiLCJ2aXNpdG9yX2lkIjoiMTE3OTEyNTQ3OTgyMTM5OTAzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3f4e0298b7d66f427bae85e34e9e154f9987cddcb1b625aa5323d96e6597c4d0
hovercard-subject-tagissue:2149052380
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/hardbyte/python-can/1746/issue_layout
twitter:imagehttps://opengraph.githubassets.com/df411432a89a8f09f8dd2b66f3a18d032c56ca5f0d6706bd8b9ece0bfa7054ea/hardbyte/python-can/issues/1746
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/df411432a89a8f09f8dd2b66f3a18d032c56ca5f0d6706bd8b9ece0bfa7054ea/hardbyte/python-can/issues/1746
og:image:altDescribe the bug Messages are truncated while using send command. Messages are truncated while using close command. To Reproduce Code as example. Requires python-can and pyserial modules. Windows P...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDubbels17
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
go-importgithub.com/hardbyte/python-can git https://github.com/hardbyte/python-can.git
octolytics-dimension-user_id855189
octolytics-dimension-user_loginhardbyte
octolytics-dimension-repository_id69090889
octolytics-dimension-repository_nwohardbyte/python-can
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id69090889
octolytics-dimension-repository_network_root_nwohardbyte/python-can
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/hardbyte/python-can/issues/1746#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fhardbyte%2Fpython-can%2Fissues%2F1746
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
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%2Fhardbyte%2Fpython-can%2Fissues%2F1746
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=hardbyte%2Fpython-can
Reloadhttps://github.com/hardbyte/python-can/issues/1746
Reloadhttps://github.com/hardbyte/python-can/issues/1746
Reloadhttps://github.com/hardbyte/python-can/issues/1746
hardbyte https://github.com/hardbyte
python-canhttps://github.com/hardbyte/python-can
Notifications https://github.com/login?return_to=%2Fhardbyte%2Fpython-can
Fork 687 https://github.com/login?return_to=%2Fhardbyte%2Fpython-can
Star 1.6k https://github.com/login?return_to=%2Fhardbyte%2Fpython-can
Code https://github.com/hardbyte/python-can
Issues 224 https://github.com/hardbyte/python-can/issues
Pull requests 35 https://github.com/hardbyte/python-can/pulls
Discussions https://github.com/hardbyte/python-can/discussions
Actions https://github.com/hardbyte/python-can/actions
Security and quality 0 https://github.com/hardbyte/python-can/security
Insights https://github.com/hardbyte/python-can/pulse
Code https://github.com/hardbyte/python-can
Issues https://github.com/hardbyte/python-can/issues
Pull requests https://github.com/hardbyte/python-can/pulls
Discussions https://github.com/hardbyte/python-can/discussions
Actions https://github.com/hardbyte/python-can/actions
Security and quality https://github.com/hardbyte/python-can/security
Insights https://github.com/hardbyte/python-can/pulse
slcan interface needs some time-tweaking (Possible solution provided)https://github.com/hardbyte/python-can/issues/1746#top
bughttps://github.com/hardbyte/python-can/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/Dubbels17
Dubbels17https://github.com/Dubbels17
on Feb 22, 2024https://github.com/hardbyte/python-can/issues/1746#issue-2149052380
https://github.com/normaldotcom/canable-fwhttps://github.com/normaldotcom/canable-fw
bughttps://github.com/hardbyte/python-can/issues?q=state%3Aopen%20label%3A%22bug%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.