Jump to content

ModMike

Members
  • Posts

    12
  • Joined

  • Last visited

  1. I’ve read that document several times already. I keep asking how to use parameters to disable cst and rts but never get an answer.
  2. I am not using uart to connect to the computer. I am using it to the 3d printer control board, it's a Fysetc Cheetah. I have it working with a regular pi and raspbian. On PI, all I had to do was disable serial console and enable uart. Trying to do the same on Armbian so I can use a BPI instead of a zero. Can you please tell me how to use the parameters to disable RTS and CTS and which port name is assigned to GPIO 14 & 15 (physical pins 8 & 10). Thanks!
  3. I think my level of proficiency with armbian has earned me an "ignore" status here :-) I am trying to configure the serial port on a Banana Pi M2 Zero. I have done it a Raspberry PI and confirmed that all works well. Can anyone help me with he following questions? How do I enable the UART for GPIO 14 & 15 (Pins 8, 10)? How do disable serial console mode (had to do this in raspbian)? How do I disable RTS and CTS using parameters? I will donate $20 as soon as a UART connection is made.
  4. Thank you for the tips. I think baud rate was my biggest issue and yes I meant RS-232. Are my parameters properly configured? How can I turn off RTS and CTS? I am unsure of the parameter syntax. Thanks again!
  5. I am trying to connect to a 3D printer board using 3 wire serial, that is no CTS and RTS. I had a Wemos wifi module on it previously so I know it works. Now I need to use my BanaPi M2 Zero to control it thorough the same port, the Wemos has been removed and not going back. I keep getting a failure to initialize when I try to connect to the board. I am trying to use Pins 8 & 10 which is supposed to be UART 3 = /dev/ttyS3 from what I understand. Questions: How can I test the port? I have Minicom installed. How do I set the parameters to disable CTS and RTS? What flow control should I be using? Software? Here is my setup: armbianEnv.txt verbosity=1 bootlogo=false console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 rootdev=UUID=e7e80086-a15f-4f2e-825d-9913c71ff19c rootfstype=ext4 usbhost0 overlays=uart3 usbhost0 param_uart3_rtscts (bool) Enable RTS and CTS pins Optional Default: 0 Set to 1 to enable CTS and RTS pins usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u Is that the correct parameters fro disabling RTS and CTS for 3 wire serial? I am using RX and TX cross connected as well as ground. Both boards are independently powered. Other data: My serial port seems to be working, see bold line: dmesg | grep tty [ 0.000000] Kernel command line: root=UUID=e7e80086-a15f-4f2e-825d-9913c71ff19c rootwait rootfstype=ext4 console=ttyS0,115200 console=tty1 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 consoleblank=0 loglevel=1 ubootpart=bfca11dd-01 ubootsource=mmc usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1 [ 0.000352] printk: console [tty1] enabled [ 2.223565] printk: console [ttyS0] disabled [ 2.223659] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 44, base_baud = 1500000) is a 16550A [ 2.223915] printk: console [ttyS0] enabled [ 2.225223] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 45, base_baud = 1500000) is a 16550A [ 2.225410] serial serial0: tty port ttyS1 registered [ 2.226212] 1c28c00.serial: ttyS3 at MMIO 0x1c28c00 (irq = 46, base_baud = 1500000) is a 16550A [ 6.072173] systemd[1]: Created slice system-serial\x2dgetty.slice. [ 7.101175] systemd[1]: Found device /dev/ttyGS0. [ 8.576630] systemd[1]: Found device /dev/ttyS0. Second Test: sudo setserial -g /dev/ttyS3 /dev/ttyS3, UART: 16550A, Port: 0x0000, IRQ: 46
  6. I don't see any H2 overlays for Allwinner. There are H2 DTBs, but no overlays. I looked at the specs and the H2+ seems identical to H3 in terms of cpu, do I just use H3 overlays for H2+ boards?
  7. I am trying to use serial ports on a Banana Pi M2 zero. Do I need an overlay? If so which one? I see nothing in H2, only H3.
  8. I am using a Banana Pi M2 Zero to control my 3D printer controller. It works perfectly running Armbian through the USB port but I need to switch to UART for 2 reasons. First I could not disable USB Otg so it's pumping voltage into the board and the display is washed out form the additional power. Second, it is impossible to use a USB cable because the USB port is only accessible from the outside in the steel enclosure. I used armbian config to disable USB and then select UART 3 to use GPIO pins 8 and 10 but can't get it to work. I keep getting a Failed to init error Is that all the config I need to do? If not what else? The overlay in my config is active How can I confirm the port is working? I did the Grep tty thing and it reports the following: 0.000000] Kernel command line: root=UUID=e7e80086-a15f-4f2e-825d-9913c71ff19c rootwait rootfstype=ext4 console=ttyS0,115200 console=tty1 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 consoleblank=0 loglevel=1 ubootpart=bfca11dd-01 ubootsource=mmc usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1 [ 0.000349] printk: console [tty1] enabled [ 2.223132] printk: console [ttyS0] disabled [ 2.223227] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 44, base_baud = 1500000) is a 16550A [ 2.223478] printk: console [ttyS0] enabled [ 2.224699] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 45, base_baud = 1500000) is a 16550A [ 2.224918] serial serial0: tty port ttyS1 registered [ 2.225722] 1c28c00.serial: ttyS3 at MMIO 0x1c28c00 (irq = 46, base_baud = 1500000) is a 16550A [ 6.072295] systemd[1]: Created slice system-serial\x2dgetty.slice. [ 7.196435] systemd[1]: Found device /dev/ttyGS0. [ 8.297021] systemd[1]: Found device /dev/ttyS0. What is the name of my port? I assumed /dev/ttyS3. Is this correct? What is Con3 on the board for? It looks like a separate dedicated Serial port but there is no documentation on it. Should I be using that? Thank you!
  9. Sorry, I am new to the forum and posted in the wrong place.
  10. I am trying to configure my Banana Pi M2 Zero to use UART to communicate with my 3D Printer. I used Armbian config to setup UART 3 (Pins 8 & 10). I can't seem to communicate over the port. How do I test and do I need to make other config changes? Thank you!
  11. I have a Banana PI M2 Zero that I am using to run a 3D printer. Unfortunately the USB port puts out 5V, which I need to disable. Is there any way to do this by editing a file or using a script? There are cases where it might be useful but I'd rather have it off permanently if thats the only choice.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines