{"action":"created","issue":{"url":"https://api.github.com/repos/fhunleth/elixir_ale/issues/23","repository_url":"https://api.github.com/repos/fhunleth/elixir_ale","labels_url":"https://api.github.com/repos/fhunleth/elixir_ale/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/fhunleth/elixir_ale/issues/23/comments","events_url":"https://api.github.com/repos/fhunleth/elixir_ale/issues/23/events","html_url":"https://github.com/fhunleth/elixir_ale/issues/23","id":174894236,"number":23,"title":"Wire Protocol: 1-wire","user":{"login":"coop","id":64469,"avatar_url":"https://avatars.githubusercontent.com/u/64469?v=3","gravatar_id":"","url":"https://api.github.com/users/coop","html_url":"https://github.com/coop","followers_url":"https://api.github.com/users/coop/followers","following_url":"https://api.github.com/users/coop/following{/other_user}","gists_url":"https://api.github.com/users/coop/gists{/gist_id}","starred_url":"https://api.github.com/users/coop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coop/subscriptions","organizations_url":"https://api.github.com/users/coop/orgs","repos_url":"https://api.github.com/users/coop/repos","events_url":"https://api.github.com/users/coop/events{/privacy}","received_events_url":"https://api.github.com/users/coop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-03T12:19:47Z","updated_at":"2016-09-03T19:56:01Z","closed_at":null,"body":"Hi,\r\n\r\nThis is probably the wrong place for this kind of request but I was talking with @GregMefford in #nerves this evening and he thought it would be a reasonable starting point.\r\n\r\n>If you need to implement a wire level protocol to talk to a device, look for a Linux kernel driver. It may just be a matter of loading the right kernel module.\r\n\r\nI'm wanting to take temperature readings from k type thermocouple via a MAX31850 on my raspberry pi 3 - given what you've said above I think I need to reach out for a linux driver. I modified my `config.txt` file and added support for dtoverlay:\r\n\r\n```\r\n+ # Comment this in or modify to enable OneWire\r\n+ # NOTE: check that the overlay that you specify is in the boot partition or\r\n+ #       this won't work.\r\n+ dtoverlay=w1-gpio-pullup,gpiopin=4\r\n```\r\n\r\nI was then able to see my device and cat `w1_slave` - unfortunately the result is:\r\n\r\n```\r\n00 00 00 00 00 00 00 00 00 : crc=00 NO\r\n00 00 00 00 00 00 00 00 00 : t=0\r\n```\r\n\r\nJust wondering if this is a problem `elixir_ale` would be looking to support or should I go elsewhere?\r\n\r\nNOTE: Similar solution with rp and python - https://github.com/steve71/RasPiBrew/blob/master/RasPiBrew/Temp1Wire.py\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/fhunleth/elixir_ale/issues/comments/244566692","html_url":"https://github.com/fhunleth/elixir_ale/issues/23#issuecomment-244566692","issue_url":"https://api.github.com/repos/fhunleth/elixir_ale/issues/23","id":244566692,"user":{"login":"fhunleth","id":64669,"avatar_url":"https://avatars.githubusercontent.com/u/64669?v=3","gravatar_id":"","url":"https://api.github.com/users/fhunleth","html_url":"https://github.com/fhunleth","followers_url":"https://api.github.com/users/fhunleth/followers","following_url":"https://api.github.com/users/fhunleth/following{/other_user}","gists_url":"https://api.github.com/users/fhunleth/gists{/gist_id}","starred_url":"https://api.github.com/users/fhunleth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhunleth/subscriptions","organizations_url":"https://api.github.com/users/fhunleth/orgs","repos_url":"https://api.github.com/users/fhunleth/repos","events_url":"https://api.github.com/users/fhunleth/events{/privacy}","received_events_url":"https://api.github.com/users/fhunleth/received_events","type":"User","site_admin":false},"created_at":"2016-09-03T19:56:01Z","updated_at":"2016-09-03T19:56:01Z","body":"I've actually never used a OneWire device. I know that a couple other people have gotten OneWire working on Nerves, but I'm not sure what they did differently. Given that you're getting all zeros, I'd assume that the pullup isn't strong enough, since you never get a 1, but that's just guessing.\r\n\r\nThe second question about including OneWire support in elixir_ale or not, my preference would be to start something outside of elixir_ale to see how it goes. If the API is really simple like I2C and SPI, then I'd think that it makes sense to include."}}
{"actor":{"display_login":"fhunleth"}}