Jump to content

ajgelado

Members
  • Posts

    3
  • Joined

  • Last visited

  1. I'm working in a project that needs to use 12 GPIO pins (plus serial!) on the Orange Pi Zero. To achieve that, I need to disable at least one of the I2C interfaces in the 26-pin header. Following the instructions on https://linux-sunxi.org/I2Cdev, I have decompiled, edited and recompiled /boot/config.bin, but I still can't access any of the pins used by the I2C ports. Specifically, what I have done is to edit the decompiled script.bin.fex file, and in sections named [twi0] and [twi1], changed twi_used=1 to twi_used=0. After that, running a simple program that sets the pins to input and reads its status allways returns 1, even if the pin is connected to ground or there isn't anything connected to the pin. Trying to activate the pulldown in the pin doesn't help, either. Is there anything I'm missing? What else can I do to diagnose/solve the problem?
  2. Thanks, martinayotte. That was it! I have to use /dev/ttyS1 in the OPiZero.
  3. I need to use the serial port in the 26-pin header of an Orange Pi Zero. For what I have read, I assume that it is /dev/ttyS3. Is that right? I have followed the instructions of 7profy, and now ttyS3 shows in /dev/, but I can't get the port to work. But when I hook a serial-to-USB adapter to pins 6, 8 and 10, and try to communicate with it using minicom, nothing happens. I have double-checked the communications settings (both minicom and PuTTY are set to 9600,8,n,1) and the connections, and I have tested /dev/ttyS2 and /dev/ttyS1 just in case, but I have got no reply at all. How can I verify the serial port is enabled and working? Are there any extra steps to enable /dev/ttyS3 on the Orange Pi Zero? uname -a outputs the following: Linux orangepizero 3.4.113-sun8i #10 SMP PREEMPT Thu Feb 23 19:55:00 CET 2017 armv7l GNU/Linux
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines