echo: I/O error while enable i2c lm75 temp sensor

Discussion in 'UDOO NEO' started by Iamtawon, Apr 10, 2016.

  1. Iamtawon

    Iamtawon New Member

    Joined:
    Apr 10, 2016
    Messages:
    2
    Likes Received:
    0
    Hi All

    I just start learning how to use linux today and start learning some python, I want to read out data from LM75 temp sensor supplied with the board just from the terminal first.
    I put in this line on command line
    udooer@udooneo:~$ sudo sh -c 'echo lm75 0x48 > /sys/class/i2c-dev/i2c-2/device/new_device'
    and then put in the password, it return me with
    sh: echo: I/O error
    what do I do wrong? or what should I check?
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    What happens if you do in a linux terminal:

    cat /sys/class/i2c-dev/i2c-1/device/1-0048/temp1_input

    I don't have these sensors but I believe the sensors are already activated in the just released udoovuntu 2 rc2
    The documentation is not yet updated I presume.
     
  3. Iamtawon

    Iamtawon New Member

    Joined:
    Apr 10, 2016
    Messages:
    2
    Likes Received:
    0
    I've got
    bash: cat/sys/class/i2c-dev/i2c-1/1-0048/temp1_input: No such file or directory
     

Share This Page