Adding a Serial port

41 views
Skip to first unread message

Keith Ray

unread,
Jun 26, 2020, 11:23:10 AM6/26/20
to ClusterHAT
Hi All

I am struggling to get a Teminal Node Controller to work with a Pi Zero mounted on a Cluster Hat. The Pi Zero has a 8086 Serial to Micro USB adapter mounted on pins 5, 6 and 6 on the zero's GPIO and a polific USB to serial port cable attaching it to the TNC but the Zero is not seeing it. I know the Polific USB to Seria l Port cable and TNC are working fine as when plugged into a Mk 3B Pi works fine. 

On the Zero root@p7:/home/pi# dmesg | grep tty command produces :-

[    0.000000] Kernel command line: coherent_pool=1M bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:05:F8:2D vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  console=ttyAMA0,115200 console=tty1 root=PARTUUID=738a4d67-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.001280] console [tty1] enabled
[    0.539202] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    1.702816] console [ttyAMA0] enabled
[    6.585267] systemd[1]: Created slice system-getty.slice.
[    6.633758] systemd[1]: Created slice system-serial\x2dgetty.slice.

And lsusb  produces nothing but on the mk 3B PI produdes

root@GB7SOU-2:/usr/xrouter/xrpi# lsusb
Bus 001 Device 007: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@GB7SOU-2:/usr/xrouter/xrpi#.
What am I missing?
regards Keith



Chris Burton

unread,
Jun 26, 2020, 4:53:13 PM6/26/20
to ClusterHAT
Hi, 
I am struggling to get a Teminal Node Controller to work with a Pi Zero mounted on a Cluster Hat. The Pi Zero has a 8086 Serial to Micro USB adapter mounted on pins 5, 6 and 6 on the zero's GPIO and a polific USB to serial port cable attaching it to the TNC but the Zero is not seeing it. I know the Polific USB to Seria l Port cable and TNC are working fine as when plugged into a Mk 3B Pi works fine. 

I don't really understand what you're connecting and how, can you please try explaining again with more details please.

Chris. 

Keith

unread,
Jun 26, 2020, 5:09:33 PM6/26/20
to clust...@googlegroups.com
Hi Chris
 

What I am trying to do is get a program on the Zero (P5) to communicate with a Terminal Node Controller via a Serial cable using KISS protocol. I have one of your Micro USB to adapter mounted on pins 6, 8 and 10 and a polific USB to Serial Port adapter plugged into it but the zero does not seem to see the Polific USB to Serial port adapter.

Hope this makes sense. Regards Keith

--
You received this message because you are subscribed to the Google Groups "ClusterHAT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clusterhat+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/clusterhat/cd8fa284-137e-432a-a028-399aea301986o%40googlegroups.com.

Virus-free. www.avg.com

Chris Burton

unread,
Jun 26, 2020, 5:35:22 PM6/26/20
to ClusterHAT
Hi, 

What I am trying to do is get a program on the Zero (P5) to communicate with a Terminal Node Controller via a Serial cable using KISS protocol. I have one of your Micro USB to adapter mounted on pins 6, 8 and 10 and a polific USB to Serial Port adapter plugged into it but the zero does not seem to see the Polific USB to Serial port adapter.

Hope this makes sense.

Some of it :).

I assume you're using my https://www.tindie.com/products/15154/ or is it one of my many others?

In which case the Pi Zero won't see a USB device as it's connected to the serial port /dev/serial0 - it could really be /dev/ttyS0 or /dev/ttyACM0 depending on which Pi Zero and how you've configured it but the one on the GPIO pins is always /dev/serial0.

The ClusterHAT pX images are configured by default to run a login on the Pi Zeros serial port on GPIO8/10 so people can login that way, if you want to use it with some other software you'll want to turn that off with "raspi-config -> Interfacing Options" -> Serial and say no to the login shell and yes to the serial port hardware being enabled. You can then use "/dev/serial0" in whatever software you're using to talk to the 

And then I'm lost :) In my world a prolific USB<>serial adaptor looks like this https://www.amazon.co.uk/dp/B00425S1H8 which I'm not sure how you'd even try to connect to my USB<>serial adaptor above.

Chris.

Keith

unread,
Jun 27, 2020, 9:27:42 AM6/27/20
to clust...@googlegroups.com
Hi Chris
 
 
I’m coming to the conclusion I am trying to do the impossible, if you are saying it is a serial port not a USB what protocol is the micro socket , USB or Serial
 
regards Keith
 
 
Sent: Friday, June 26, 2020 10:35 PM
Subject: Re: Adding a Serial port
 
Some of it :).
 
I assume you're using my https://www.tindie.com/products/15154/ or is it one of my many others?
 
In which case the Pi Zero won't see a USB device as it's connected to the serial port /dev/serial0 - it could really be /dev/ttyS0 or /dev/ttyACM0 depending on which Pi Zero and how you've configured it but the one on the GPIO pins is always /dev/serial0.
 
The ClusterHAT pX images are configured by default to run a login on the Pi Zeros serial port on GPIO8/10 so people can login that way, if you want to use it with some other software you'll want to turn that off with "raspi-config -> Interfacing Options" -> Serial and say no to the login shell and yes to the serial port hardware being enabled. You can then use "/dev/serial0" in whatever software you're using to talk to the
 
And then I'm lost :) In my world a prolific USB<>serial adaptor looks like this https://www.amazon.co.uk/dp/B00425S1H8 which I'm not sure how you'd even try to connect to my USB<>serial adaptor above.
 
Chris.
 
--
You received this message because you are subscribed to the Google Groups "ClusterHAT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clusterhat+...@googlegroups.com.

Chris Burton

unread,
Jun 27, 2020, 10:23:24 AM6/27/20
to ClusterHAT
Hi, 
 
I’m coming to the conclusion I am trying to do the impossible, if you are saying it is a serial port not a USB what protocol is the micro socket , USB or Serial

The URL of the last one was truncated but from a quick search I see it could be https://www.amazon.com/dp/B00YOX4JU6 in which case no, it wouldn't work as you'd be connecting two USB devices together.

You'd probably be able to use something like https://www.amazon.com/dp/B07TYX3V4J/ though, just make sure you use 3.3v logic on the Pi Zero side.

Chris.
Reply all
Reply to author
Forward
0 new messages