Navigation

    VEYE IMAGING Forum

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc

    I2C IR-day/night mode

    VEYE MIPI camera
    2
    18
    1338
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • veye_xumm
      veye_xumm @rob77 last edited by

      @rob77 no

      R 2 Replies Last reply Reply Quote 0
      • R
        rob77 @veye_xumm last edited by

        @veye_xumm ok.
        running the files just ends with error no such file or directory. ive tryed running them in terminal and vim with no luck. there is clearly something im missing or not understanding, unlike the raspberry pi you have to enable ./enable_i2c_vc.sh but on jetson nano it is already enabled meaning first steps are not required, so i continue with commands that should work but for some reason are not. is there another directory the files are ment to go in? or is there another way to control day/night mode?

        veye_xumm 1 Reply Last reply Reply Quote 0
        • veye_xumm
          veye_xumm @rob77 last edited by

          @rob77
          Under linux, the following command means that you don't have this file in your current directory.
          You need to go to the directory where this file is located and execute the command.
          This is a common knowledge of linux.

          bash: ./veye_mipi_i2c.sh: no such file or directory
          
          1 Reply Last reply Reply Quote 0
          • R
            rob77 @veye_xumm last edited by

            @veye_xumm
            i have the files and tryed this.

            rob@rob-desktop:~$ ./veye_mipi_i2c.sh
            bash: ./veye_mipi_i2c.sh: No such file or directory
            rob@rob-desktop:~$ '/home/rob/nvidia_jetson_veye_bsp/i2c_cmd/bin/veye_mipi_i2c.sh' 
            /home/rob/nvidia_jetson_veye_bsp/i2c_cmd/bin/veye_mipi_i2c.sh: line 1: $'\r': command not found
            /home/rob/nvidia_jetson_veye_bsp/i2c_cmd/bin/veye_mipi_i2c.sh: line 3: $'\r': command not found
            /home/rob/nvidia_jetson_veye_bsp/i2c_cmd/bin/veye_mipi_i2c.sh: line 7: $'\r': command not found
            /home/rob/nvidia_jetson_veye_bsp/i2c_cmd/bin/veye_mipi_i2c.sh: line 8: $'\r': command not found
            /home/rob/nvidia_jetson_veye_bsp/i2c_cmd/bin/veye_mipi_i2c.sh: line 9: $'\r': command not found
            /home/rob/nvidia_jetson_veye_bsp/i2c_cmd/bin/veye_mipi_i2c.sh: line 10: $'\r': command not found
            /home/rob/nvidia_jetson_veye_bsp/i2c_cmd/bin/veye_mipi_i2c.sh: line 11: syntax error near unexpected token `$'\r''
            /home/rob/nvidia_jetson_veye_bsp/i2c_cmd/bin/veye_mipi_i2c.sh: line 11: `print_u'age()
            rob@rob-desktop:~$ 
            

            i thought maybe it needed a dynamic loader so i did a check.

            rob@rob-desktop:~$ ldd '/home/rob/nvidia_jetson_veye_bsp/i2c_cmd/bin/veye_mipi_i2c.sh' 
            	not a dynamic executable
            rob@rob-desktop:~$ file '/home/rob/nvidia_jetson_veye_bsp/i2c_cmd/bin/veye_mipi_i2c.sh' 
            /home/rob/nvidia_jetson_veye_bsp/i2c_cmd/bin/veye_mipi_i2c.sh: ISO-8859 text, with CRLF line terminators
            
            veye_xumm 1 Reply Last reply Reply Quote 0
            • veye_xumm
              veye_xumm @rob77 last edited by

              @rob77
              cd /home/ rob/nvidia jetson_ veye_ bsp/i2c_ cmd/bin/
              first

              R 1 Reply Last reply Reply Quote 0
              • R
                rob77 @veye_xumm last edited by

                @veye_xumm

                rob@rob-desktop:~$ cd /home/rob/nvidia_jetson_veye_bsp/i2c_cmd/bin/
                rob@rob-desktop:~/nvidia_jetson_veye_bsp/i2c_cmd/bin$ ./veye_mipi_i2c.sh
                ./veye_mipi_i2c.sh: line 1: $'\r': command not found
                ./veye_mipi_i2c.sh: line 3: $'\r': command not found
                ./veye_mipi_i2c.sh: line 7: $'\r': command not found
                ./veye_mipi_i2c.sh: line 8: $'\r': command not found
                ./veye_mipi_i2c.sh: line 9: $'\r': command not found
                ./veye_mipi_i2c.sh: line 10: $'\r': command not found
                ./veye_mipi_i2c.sh: line 11: syntax error near unexpected token `$'\r''
                '/veye_mipi_i2c.sh: line 11: `print_usage()
                
                rob@rob-desktop:~/nvidia_jetson_veye_bsp/i2c_cmd/bin$ ./veye_mipi_i2c.sh -w -f daynightmode -p1 0xFE -b7
                ./veye_mipi_i2c.sh: line 1: $'\r': command not found
                ./veye_mipi_i2c.sh: line 3: $'\r': command not found
                ./veye_mipi_i2c.sh: line 7: $'\r': command not found
                ./veye_mipi_i2c.sh: line 8: $'\r': command not found
                ./veye_mipi_i2c.sh: line 9: $'\r': command not found
                ./veye_mipi_i2c.sh: line 10: $'\r': command not found
                ./veye_mipi_i2c.sh: line 11: syntax error near unexpected token `$'\r''
                '/veye_mipi_i2c.sh: line 11: `print_usage()
                
                veye_xumm 1 Reply Last reply Reply Quote 0
                • veye_xumm
                  veye_xumm @rob77 last edited by

                  @rob77
                  Please try this.

                  sudo apt install dos2unix
                  dos2unix ./veye_mipi_i2c.sh
                  
                  R 1 Reply Last reply Reply Quote 0
                  • R
                    rob77 @veye_xumm last edited by

                    @veye_xumm thanks that fixd the file into unix and i was able to open it. i then enter the day/night command

                    rob@rob-desktop:~/nvidia_jetson_veye_bsp/i2c_cmd/bin$ ./veye_mipi_i2c.sh -w -f daynightmode -p1 0xFE -b7
                    should be root!
                    

                    it says should be root? so i redo it as root superuser, but got file/directory error. i tryed other types of commands but getting same error.

                    rob@rob-desktop:~/nvidia_jetson_veye_bsp/i2c_cmd/bin$ sudo -i ./veye_mipi_i2c.sh -w -f daynightmode -p1 0xFE
                    [sudo] password for rob: 
                    -bash: ./veye_mipi_i2c.sh: No such file or directory
                    
                    1 Reply Last reply Reply Quote 0
                    • R
                      rob77 last edited by

                      JUST fixed it 😊 sudo -s 😊

                      want to say thank you for your help and patience with me, a person who has very little experience using linux. the camera is perfect for my project and i will be using it to learn more.

                      veye_xumm 1 Reply Last reply Reply Quote 0
                      • veye_xumm
                        veye_xumm @rob77 last edited by

                        @rob77 You are welcome.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post