Title: Multiprocessing 2 sensors · Issue #72 · romilly/quick2wire-python-api · GitHub
Open Graph Title: Multiprocessing 2 sensors · Issue #72 · romilly/quick2wire-python-api
X Title: Multiprocessing 2 sensors · Issue #72 · romilly/quick2wire-python-api
Description: I use two identical sensors with bus 1 and bus 6, all detected by i2cdetect and can run perfectly individually. However, when I try to run them at the same time by multiprocessing, I get the below question. And such error can occur on bo...
Open Graph Description: I use two identical sensors with bus 1 and bus 6, all detected by i2cdetect and can run perfectly individually. However, when I try to run them at the same time by multiprocessing, I get the below ...
X Description: I use two identical sensors with bus 1 and bus 6, all detected by i2cdetect and can run perfectly individually. However, when I try to run them at the same time by multiprocessing, I get the below ...
Opengraph URL: https://github.com/romilly/quick2wire-python-api/issues/72
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Multiprocessing 2 sensors","articleBody":"I use two identical sensors with bus 1 and bus 6, all detected by i2cdetect and can run perfectly individually.\r\nHowever, when I try to run them at the same time by multiprocessing, I get the below question. And such error can occur on both sensor.\r\n\r\nI have no idea it is the problem of multiprocessing or quick2wire i2c. PLEASE help me if possible.\r\n\r\nFile \"/usr/local/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\r\n self.run()\r\n File \"/usr/local/lib/python3.6/multiprocessing/process.py\", line 93, in run\r\n self._target(*self._args, **self._kwargs)\r\n File \"GY-85_Raspberry-Pi/datarecord.py\", line 48, in acc_save\r\n if adxl345.getInterruptStatus():\r\n File \"/home/pi/audioproject/GY-85_Raspberry-Pi/i2clibraries/i2c_adxl345.py\", line 115, in getInterruptStatus\r\n self.InterruptSource)\r\n File \"/home/pi/audioproject/GY-85_Raspberry-Pi/i2clibraries/i2c_adxl345.py\", line 283, in getOptions\r\n options_bin = self.bus.read_byte(register)\r\n File \"/home/pi/audioproject/GY-85_Raspberry-Pi/i2clibraries/i2c.py\", line 19, in read_byte\r\n reading(self.addr, 1))[0][0]\r\n File \"/home/pi/audioproject/quick2wire-python-api/quick2wire/i2c.py\", line 78, in transaction\r\n ioctl(self.fd, I2C_RDWR, ioctl_arg)\r\nTimeoutError: [Errno 110] Connection timed out\r\n","author":{"url":"https://github.com/lixinghe1999","@type":"Person","name":"lixinghe1999"},"datePublished":"2021-09-28T12:53:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/72/quick2wire-python-api/issues/72"}
| 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:2759821a-cb1b-31b5-80da-c5939ad05472 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5A0:3C288:167883E:1E7C496:69733D6C |
| html-safe-nonce | 1e96b4d2f61eaa9da7c0565e21e77ede57febf359952d4700c34450956552190 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUEwOjNDMjg4OjE2Nzg4M0U6MUU3QzQ5Njo2OTczM0Q2QyIsInZpc2l0b3JfaWQiOiI1NDY5MTM5NTc0NzA3MTQxOTk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d6e05ef00a753886689c8a0b9f70fd5d7962aad235b1c3b4f84bc5165292bed1 |
| hovercard-subject-tag | issue:1009714129 |
| 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/romilly/quick2wire-python-api/72/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8eaa97229b85d8cf05d695422c9e26696b2dd60f01d091dcd8d7e9b2506fbed2/romilly/quick2wire-python-api/issues/72 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8eaa97229b85d8cf05d695422c9e26696b2dd60f01d091dcd8d7e9b2506fbed2/romilly/quick2wire-python-api/issues/72 |
| og:image:alt | I use two identical sensors with bus 1 and bus 6, all detected by i2cdetect and can run perfectly individually. However, when I try to run them at the same time by multiprocessing, I get the below ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lixinghe1999 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| turbo-cache-control | no-preview |
| go-import | github.com/romilly/quick2wire-python-api git https://github.com/romilly/quick2wire-python-api.git |
| octolytics-dimension-user_id | 149310 |
| octolytics-dimension-user_login | romilly |
| octolytics-dimension-repository_id | 4207383 |
| octolytics-dimension-repository_nwo | romilly/quick2wire-python-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4207383 |
| octolytics-dimension-repository_network_root_nwo | romilly/quick2wire-python-api |
| 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 | 75e56b01124e79ebbaa7864231f25e58fc1b5f25 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width