VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    I2C IR-day/night mode

    Scheduled Pinned Locked Moved VEYE MIPI camera
    18 Posts 2 Posters 4.0k Views 2 Watching
    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.
    • R Offline
      rob77
      last edited by

      i see my confusion now from the wiki that they are bus numbers 😛

      however i can not seem to find the i2c bus for the camera, everything should be connected correctly but command i2cdetect -y -r 1 is not finding anything even tho it is connect to bus 1
      and i am now also confused on how to use the cmd sudo ./veye5_mipi_i2c.sh -w -f daynightmode -p1 [0,2]
      please tell me how to do this 😅 sorry for being noob.

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

        @rob77 said in I2C IR-day/night mode:

        IMX385 wiki J7 are the Auxiliary IIC
        Please do not use this IIC, the main 15pin FFC cable has an IIC bus already.

        i2cdetect -y -r 1

        Do not use 1 here, use the correct i2c bus number corresponding to your board.
        1.2.3 Nano B01
        i2c num 7 or 8
        1.2.4 Nano A02, Nano 2GB
        i2c bus number is 6.

        Questions will be answered as soon as possible, please be patient.
        如果你使用中文,请直接用中文提问。
        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

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

          @veye_xumm ah i see, i was mistaken thinking it used another I2C conection, cool i unpluged the Aux IIC and did a check, i have a nano B01 and checked the i2cdetect bus 7 and 8 and yep it found it connected, strangely bus 6 is also active even tho nothing is being used on it i think. that solves that.

          my next problem is useing the day/night comand, im just not sure how to use it as veye_mipi_i2c.sh dosent do anything.
          my goal is while the camera is on that i can switch between IR filter on and off easly.

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

            @rob77
            http://wiki.veye.cc/index.php/VEYE-MIPI-290/327_i2c/#daynightmode

            ./veye_mipi_i2c.sh -w -f daynightmode -p1 0xFF or 0x FE -b 7 or 8

            Questions will be answered as soon as possible, please be patient.
            如果你使用中文,请直接用中文提问。
            May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

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

              @veye_xumm thank you for that i tryed ./veye_mipi_i2c.sh -w -f daynightmode -p1 0xFE -b 7 and 8 to get the ir mode but it still dosent seem to work. i end up getting
              bash: ./veye_mipi_i2c.sh: no such file or directory
              their is probably a step im missing due to still being new to the nano.

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

                @rob77
                http://wiki.veye.cc/index.php/VEYE_CS_Camera_for_Jetson_TX2#Using_i2c_script_to_modify_camera_parameters
                part 4.3

                https://github.com/veyeimaging/nvidia_jetson_veye_bsp/tree/master/i2c_cmd/bin

                Questions will be answered as soon as possible, please be patient.
                如果你使用中文,请直接用中文提问。
                May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

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

                  @veye_xumm i understood i needed to use those files from the wiki but what do i do with them? do they go in /boot/veyecam directory?

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

                    @rob77 no

                    Questions will be answered as soon as possible, please be patient.
                    如果你使用中文,请直接用中文提问。
                    May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                    R 2 Replies Last reply Reply Quote 0
                    • R Offline
                      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_xummV 1 Reply Last reply Reply Quote 0
                      • veye_xummV Offline
                        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
                        

                        Questions will be answered as soon as possible, please be patient.
                        如果你使用中文,请直接用中文提问。
                        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          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_xummV 1 Reply Last reply Reply Quote 0
                          • veye_xummV Offline
                            veye_xumm @rob77
                            last edited by

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

                            Questions will be answered as soon as possible, please be patient.
                            如果你使用中文,请直接用中文提问。
                            May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                            R 1 Reply Last reply Reply Quote 0
                            • R Offline
                              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_xummV 1 Reply Last reply Reply Quote 0
                              • veye_xummV Offline
                                veye_xumm @rob77
                                last edited by

                                @rob77
                                Please try this.

                                sudo apt install dos2unix
                                dos2unix ./veye_mipi_i2c.sh
                                

                                Questions will be answered as soon as possible, please be patient.
                                如果你使用中文,请直接用中文提问。
                                May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                                R 1 Reply Last reply Reply Quote 0
                                • R Offline
                                  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 Offline
                                    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_xummV 1 Reply Last reply Reply Quote 0
                                    • veye_xummV Offline
                                      veye_xumm @rob77
                                      last edited by

                                      @rob77 You are welcome.

                                      Questions will be answered as soon as possible, please be patient.
                                      如果你使用中文,请直接用中文提问。
                                      May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                                      1 Reply Last reply Reply Quote 0

                                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                      With your input, this post could be even better 💗

                                      Register Login
                                      • First post
                                        Last post