Writebyte and Readbyte esp QMC5883 on Python (Beaglebone Black) appear Errno 110









up vote
0
down vote

favorite












I could not find the suitable code for this BBB Python as many source codes would express more on Raspberry Pi and Arduino. I am using VMware and Ubuntu_18 to run the linux terminal in order to run my BBB.



This are my starting few lines code to try test on QMC5883 magnetometer that I'm trying to translate Arduino into Python version.



import Adafruit_GPIO.I2C as I2C
import math

QMC5883 = I2C.Device(0x0D, 1)
QMC5883.write8(0x0b,0x01)


However, the error keep appearing as following especially the writebyte and readbyte on the terminal BBB



root@beaglebone:~/user_python# python compass1.py
Traceback (most recent call last):
File "compass1.py", line 5, in <module>
QMC5883.write8(0x0b,0x01)
File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 116, in write8
File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 256, in write_byte_data
IOError: [Errno 110] Connection timed out]


The link that I'm following that to call the function is from this Adafruit_GPIO/I2C.py



Even using the smbus library the error still the same



import smbus


Anyone here know how to solve this Errno110 time out connection?
I am looking forward for anyone to guide me throughout for BBB Python getting on QMC5883 magnetometer to function.










share|improve this question



























    up vote
    0
    down vote

    favorite












    I could not find the suitable code for this BBB Python as many source codes would express more on Raspberry Pi and Arduino. I am using VMware and Ubuntu_18 to run the linux terminal in order to run my BBB.



    This are my starting few lines code to try test on QMC5883 magnetometer that I'm trying to translate Arduino into Python version.



    import Adafruit_GPIO.I2C as I2C
    import math

    QMC5883 = I2C.Device(0x0D, 1)
    QMC5883.write8(0x0b,0x01)


    However, the error keep appearing as following especially the writebyte and readbyte on the terminal BBB



    root@beaglebone:~/user_python# python compass1.py
    Traceback (most recent call last):
    File "compass1.py", line 5, in <module>
    QMC5883.write8(0x0b,0x01)
    File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 116, in write8
    File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 256, in write_byte_data
    IOError: [Errno 110] Connection timed out]


    The link that I'm following that to call the function is from this Adafruit_GPIO/I2C.py



    Even using the smbus library the error still the same



    import smbus


    Anyone here know how to solve this Errno110 time out connection?
    I am looking forward for anyone to guide me throughout for BBB Python getting on QMC5883 magnetometer to function.










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I could not find the suitable code for this BBB Python as many source codes would express more on Raspberry Pi and Arduino. I am using VMware and Ubuntu_18 to run the linux terminal in order to run my BBB.



      This are my starting few lines code to try test on QMC5883 magnetometer that I'm trying to translate Arduino into Python version.



      import Adafruit_GPIO.I2C as I2C
      import math

      QMC5883 = I2C.Device(0x0D, 1)
      QMC5883.write8(0x0b,0x01)


      However, the error keep appearing as following especially the writebyte and readbyte on the terminal BBB



      root@beaglebone:~/user_python# python compass1.py
      Traceback (most recent call last):
      File "compass1.py", line 5, in <module>
      QMC5883.write8(0x0b,0x01)
      File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 116, in write8
      File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 256, in write_byte_data
      IOError: [Errno 110] Connection timed out]


      The link that I'm following that to call the function is from this Adafruit_GPIO/I2C.py



      Even using the smbus library the error still the same



      import smbus


      Anyone here know how to solve this Errno110 time out connection?
      I am looking forward for anyone to guide me throughout for BBB Python getting on QMC5883 magnetometer to function.










      share|improve this question















      I could not find the suitable code for this BBB Python as many source codes would express more on Raspberry Pi and Arduino. I am using VMware and Ubuntu_18 to run the linux terminal in order to run my BBB.



      This are my starting few lines code to try test on QMC5883 magnetometer that I'm trying to translate Arduino into Python version.



      import Adafruit_GPIO.I2C as I2C
      import math

      QMC5883 = I2C.Device(0x0D, 1)
      QMC5883.write8(0x0b,0x01)


      However, the error keep appearing as following especially the writebyte and readbyte on the terminal BBB



      root@beaglebone:~/user_python# python compass1.py
      Traceback (most recent call last):
      File "compass1.py", line 5, in <module>
      QMC5883.write8(0x0b,0x01)
      File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 116, in write8
      File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 256, in write_byte_data
      IOError: [Errno 110] Connection timed out]


      The link that I'm following that to call the function is from this Adafruit_GPIO/I2C.py



      Even using the smbus library the error still the same



      import smbus


      Anyone here know how to solve this Errno110 time out connection?
      I am looking forward for anyone to guide me throughout for BBB Python getting on QMC5883 magnetometer to function.







      python beagleboneblack i2c adafruit smbus






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 2 at 8:07









      ReAl

      6061216




      6061216










      asked Oct 2 at 4:48









      Azriel Tan

      12




      12






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Finally is one month plus and I found the solution for Beaglebone Black. Make some changes in the library code if possible to change in the library itself. Change the bus number from 1 to 2.



          This GitHub link might help you https://github.com/RigacciOrg/py-qmc5883l to get your bearing degree (yaw rotation) in no time.






          share|improve this answer




















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52602194%2fwritebyte-and-readbyte-esp-qmc5883-on-python-beaglebone-black-appear-errno-110%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Finally is one month plus and I found the solution for Beaglebone Black. Make some changes in the library code if possible to change in the library itself. Change the bus number from 1 to 2.



            This GitHub link might help you https://github.com/RigacciOrg/py-qmc5883l to get your bearing degree (yaw rotation) in no time.






            share|improve this answer
























              up vote
              0
              down vote













              Finally is one month plus and I found the solution for Beaglebone Black. Make some changes in the library code if possible to change in the library itself. Change the bus number from 1 to 2.



              This GitHub link might help you https://github.com/RigacciOrg/py-qmc5883l to get your bearing degree (yaw rotation) in no time.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Finally is one month plus and I found the solution for Beaglebone Black. Make some changes in the library code if possible to change in the library itself. Change the bus number from 1 to 2.



                This GitHub link might help you https://github.com/RigacciOrg/py-qmc5883l to get your bearing degree (yaw rotation) in no time.






                share|improve this answer












                Finally is one month plus and I found the solution for Beaglebone Black. Make some changes in the library code if possible to change in the library itself. Change the bus number from 1 to 2.



                This GitHub link might help you https://github.com/RigacciOrg/py-qmc5883l to get your bearing degree (yaw rotation) in no time.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 12 at 7:24









                Azriel Tan

                12




                12



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52602194%2fwritebyte-and-readbyte-esp-qmc5883-on-python-beaglebone-black-appear-errno-110%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Top Tejano songwriter Luis Silva dead of heart attack at 64

                    ReactJS Fetched API data displays live - need Data displayed static

                    政党