{"action":"created","issue":{"url":"https://api.github.com/repos/tedyapo/arduino-MLX90393/issues/41","repository_url":"https://api.github.com/repos/tedyapo/arduino-MLX90393","labels_url":"https://api.github.com/repos/tedyapo/arduino-MLX90393/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/tedyapo/arduino-MLX90393/issues/41/comments","events_url":"https://api.github.com/repos/tedyapo/arduino-MLX90393/issues/41/events","html_url":"https://github.com/tedyapo/arduino-MLX90393/issues/41","id":375735857,"node_id":"MDU6SXNzdWUzNzU3MzU4NTc=","number":41,"title":"MLX90393.begin() Status Problems","user":{"login":"danielgarratt","id":29712944,"node_id":"MDQ6VXNlcjI5NzEyOTQ0","avatar_url":"https://avatars0.githubusercontent.com/u/29712944?v=4","gravatar_id":"","url":"https://api.github.com/users/danielgarratt","html_url":"https://github.com/danielgarratt","followers_url":"https://api.github.com/users/danielgarratt/followers","following_url":"https://api.github.com/users/danielgarratt/following{/other_user}","gists_url":"https://api.github.com/users/danielgarratt/gists{/gist_id}","starred_url":"https://api.github.com/users/danielgarratt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielgarratt/subscriptions","organizations_url":"https://api.github.com/users/danielgarratt/orgs","repos_url":"https://api.github.com/users/danielgarratt/repos","events_url":"https://api.github.com/users/danielgarratt/events{/privacy}","received_events_url":"https://api.github.com/users/danielgarratt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-30T23:23:47Z","updated_at":"2018-10-31T00:39:00Z","closed_at":null,"author_association":"NONE","body":"Hey,\r\n\r\nI am trying to use two MLX90393 boards vie I2C simultaneously (eventually I will need to use four).  I have a script that yields what I believe to be believable measurements from both of the sensors.  An issue arises though in that I print the status of both the boards on begin and more often than not they read 255 - we have yet to see both statuses return 0 at the same time and it is fairly normal for one to return 0 while the other returns 255.  I do not know how much of an issue this really is since, as I mentioned, they seem to give valid measurements despite the status regularly reading failure.  \r\n\r\nWhat's more is that if we call the individual methods of the begin function and print the return (ie. mlx.checkStatus(mlx.reset()), mlx.setGainSel(7), etc.) those all return 0. \r\n\r\nHere is the setup excerpt from the script:\r\n```arduino\r\n#include <MLX90393.h>\r\n\r\nMLX90393 mlx1;\r\nMLX90393 mlx2;\r\n\r\nvoid setup(){\r\n\r\n  Serial.begin(9600);\r\n  Serial.println(\"hello\");\r\n  \r\n  Wire.begin();\r\n\r\n  delay(1000);\r\n  uint8_t status = mlx1.begin(0, 0);\r\n  Serial.println(status);\r\n  uint8_t status2 = mlx2.begin(1, 0);\r\n  Serial.println(status2);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/tedyapo/arduino-MLX90393/issues/comments/434520559","html_url":"https://github.com/tedyapo/arduino-MLX90393/issues/41#issuecomment-434520559","issue_url":"https://api.github.com/repos/tedyapo/arduino-MLX90393/issues/41","id":434520559,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDUyMDU1OQ==","user":{"login":"tedyapo","id":20033344,"node_id":"MDQ6VXNlcjIwMDMzMzQ0","avatar_url":"https://avatars2.githubusercontent.com/u/20033344?v=4","gravatar_id":"","url":"https://api.github.com/users/tedyapo","html_url":"https://github.com/tedyapo","followers_url":"https://api.github.com/users/tedyapo/followers","following_url":"https://api.github.com/users/tedyapo/following{/other_user}","gists_url":"https://api.github.com/users/tedyapo/gists{/gist_id}","starred_url":"https://api.github.com/users/tedyapo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedyapo/subscriptions","organizations_url":"https://api.github.com/users/tedyapo/orgs","repos_url":"https://api.github.com/users/tedyapo/repos","events_url":"https://api.github.com/users/tedyapo/events{/privacy}","received_events_url":"https://api.github.com/users/tedyapo/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T00:39:00Z","updated_at":"2018-10-31T00:39:00Z","author_association":"OWNER","body":"I don't have a pair of boards handy to test at the moment.  I wonder if\nboth boards need to be reset() before the other commands can be sent on the\nshared bus.  I don't think there's a convenient way to test this with the\ncurrent API, but if you want to try an experiment, you might grab just\nenough code from begin(), reset(), and send_command() to issue resets to\nboth boards before any other calls to either.\n\nOn Tue, Oct 30, 2018 at 7:23 PM danielgarratt <notifications@github.com>\nwrote:\n\n> Hey,\n>\n> I am trying to use two MLX90393 boards vie I2C simultaneously (eventually\n> I will need to use four). I have a script that yields what I believe to be\n> believable measurements from both of the sensors. An issue arises though in\n> that I print the status of both the boards on begin and more often than not\n> they read 255 - we have yet to see both statuses return 0 at the same time\n> and it is fairly normal for one to return 0 while the other returns 255. I\n> do not know how much of an issue this really is since, as I mentioned, they\n> seem to give valid measurements despite the status regularly reading\n> failure.\n>\n> What's more is that if we call the individual methods of the begin\n> function and print the return (ie. mlx.checkStatus(mlx.reset()),\n> mlx.setGainSel(7), etc.) those all return 0.\n>\n> Here is the setup excerpt from the script:\n>\n> #include <MLX90393.h>\n>\n> MLX90393 mlx1;\n> MLX90393 mlx2;\n>\n> void setup(){\n>\n>   Serial.begin(9600);\n>   Serial.println(\"hello\");\n>\n>   Wire.begin();\n>\n>   delay(1000);\n>   uint8_t status = mlx1.begin(0, 0);\n>   Serial.println(status);\n>   uint8_t status2 = mlx2.begin(1, 0);\n>   Serial.println(status2);\n> }\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/tedyapo/arduino-MLX90393/issues/41>, or mute the\n> thread\n> <https://github.com/notifications/unsubscribe-auth/ATGvQONvv83FFZxRhLX-X31gHwdpjR4wks5uqN-DgaJpZM4YDEHw>\n> .\n>\n"}}
{"actor":{"display_login":"tedyapo"}}