Title: Stopped working overnight? Appears rules aren't being applied. · Issue #57 · python-ivi/python-usbtmc · GitHub
Open Graph Title: Stopped working overnight? Appears rules aren't being applied. · Issue #57 · python-ivi/python-usbtmc
X Title: Stopped working overnight? Appears rules aren't being applied. · Issue #57 · python-ivi/python-usbtmc
Description: Hello, I got python-usbtmc working yesterday, and was having a good time connecting to my Keysight Ocilloscope, running IDN queries, etc. All from my Raspberry Pi 3B+. I followed everything in the readme file, except the optional Kernel ...
Open Graph Description: Hello, I got python-usbtmc working yesterday, and was having a good time connecting to my Keysight Ocilloscope, running IDN queries, etc. All from my Raspberry Pi 3B+. I followed everything in the ...
X Description: Hello, I got python-usbtmc working yesterday, and was having a good time connecting to my Keysight Ocilloscope, running IDN queries, etc. All from my Raspberry Pi 3B+. I followed everything in the ...
Opengraph URL: https://github.com/python-ivi/python-usbtmc/issues/57
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stopped working overnight? Appears rules aren't being applied.","articleBody":"Hello,\r\n\r\nI got python-usbtmc working yesterday, and was having a good time connecting to my Keysight Ocilloscope, running IDN queries, etc. All from my Raspberry Pi 3B+. I followed everything in the readme file, except the optional Kernel bit. But this morning, it's not working!\r\n\r\nThe output from lsusb:\r\n\r\n```\r\npi@raspberrypi:~ $ lsusb\r\nBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub\r\nBus 001 Device 005: ID 04d9:0007 Holtek Semiconductor, Inc. \r\nBus 001 Device 004: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse\r\nBus 001 Device 023: ID 0957:0588 Agilent Technologies, Inc. \r\nBus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub\r\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\r\n\r\n```\r\n\r\nMy usbtmc.rules file:\r\n\r\n```\r\n# USBTMC instruments\r\n\r\n# Agilent DSO1052B\r\nSUBSYSTEM==\"usb\", ACTION==\"add\", ATTRS{idVendor}==\"0x0957\", ATTRS{idProduct}==\"0x0588\", GROUP=\"usbtmc\", MODE=\"0660\"\r\n```\r\n\r\n\r\nMy Python3 code:\r\n\r\n```\r\n\u003e\u003e\u003e import usbtmc\r\n\u003e\u003e\u003e inst = usbtmc.Instrument(0x0957, 0x0588)\r\n\u003e\u003e\u003e print(inst.ask(\"*IDN\") \r\n```\r\n\r\nHowever, this morning the exact same code is returning:\r\n\r\n`usb.core.USBError: [Errno 13] Access denied (insufficient permissions)`\r\n\r\nThe Pi was left on overnight, too - so nothing should have restarted, etc. The USB device was disconnected and reconnected in the morning. I didn't change anything, other than I probably re-started Python.\r\n\r\n\r\nI've gone back through the readme (again, not the optional part) and I'm just not getting anywhere. When plugged in, the device is added to `/dev/usbtmc0`. Using `ls -all`, I get:\r\n\r\n```\r\npi@raspberrypi:/dev $ ls -all | grep usbtmc*\r\ncrw------- 1 root root 180, 176 Jun 11 14:13 usbtmc0\r\n```\r\n\r\nWhich doesn't look right to me. I've done some udevadm debugging to try and highlight an issue, and I'm seeing this line, which looks wrong, as I'd expect the mode to be picked up from my usbtmc.rules file:\r\n\r\n`usbtmc0: Handling device node '/dev/usbtmc0', devnum=c180:176, mode=0600, uid=0, gid=0`\r\n\r\n\r\nDoes anyone have any thoughts?\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/fallingin2infinity","@type":"Person","name":"fallingin2infinity"},"datePublished":"2021-06-11T14:07:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/57/python-usbtmc/issues/57"}
| 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:ecbc63d4-0067-8174-c0bd-7264bb279783 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9288:1F2208:58649BE:787BAC7:69783D13 |
| html-safe-nonce | ef6cf87e6e7839fc78dcd544a0d5ad03e8a5b7d9ff2ba5e1ee95e09788f85d65 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Mjg4OjFGMjIwODo1ODY0OUJFOjc4N0JBQzc6Njk3ODNEMTMiLCJ2aXNpdG9yX2lkIjoiMjg0MTg5ODE0MTE4OTk0NjY0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf91c4ca101011833a011968be5b87cc20d8aabb1a621cd37a9adb8eece4060a |
| hovercard-subject-tag | issue:918798489 |
| 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/python-ivi/python-usbtmc/57/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da09e5dfe4cfdfc56a74805f216ef88db4b55823903d43b7601e5658dd8c6757/python-ivi/python-usbtmc/issues/57 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da09e5dfe4cfdfc56a74805f216ef88db4b55823903d43b7601e5658dd8c6757/python-ivi/python-usbtmc/issues/57 |
| og:image:alt | Hello, I got python-usbtmc working yesterday, and was having a good time connecting to my Keysight Ocilloscope, running IDN queries, etc. All from my Raspberry Pi 3B+. I followed everything in the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fallingin2infinity |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-ivi/python-usbtmc git https://github.com/python-ivi/python-usbtmc.git |
| octolytics-dimension-user_id | 6889594 |
| octolytics-dimension-user_login | python-ivi |
| octolytics-dimension-repository_id | 10878556 |
| octolytics-dimension-repository_nwo | python-ivi/python-usbtmc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 10878556 |
| octolytics-dimension-repository_network_root_nwo | python-ivi/python-usbtmc |
| 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 | 520b65a872113b919c1bbdb03834a50af15859fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width