pi@raspberrypi / $ dmesg | grep tty
[ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa21041 bcm2709.serial=0xebbb2914 smsc95xx.macaddr=B8:27:EB:BB:29:14 bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3ea00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[ 0.001729] console [tty1] enabled
[ 0.692261] dev:f1: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev3
[ 3.309195] usb 1-1.5: FTDI USB Serial Device converter now attached to ttyUSB0
[ 3.463609] usb 1-1.3: cp210x converter now attached to ttyUSB1
pi@raspberrypi / $KERNEL=="ttyUSB*", KERNELS=="1-1.3", NAME="ttyUSB0"
KERNEL=="ttyUSB*", KERNELS=="1-1.5", NAME="ttyUSB1"If you have FTDI based serial devices you can try the ft_prog app from ftdi http://www.ftdichip.com/Support/Utilities.htm#FT_Prog to change many of the settings....
I have used this to set the description which can then be picked up by udev rules. (You can of course set/reset device codes etc but I decided not to push my luck).
With udev you can also assign a unique port name to the device if you wish... Eg ttyWeather, ttyPowermeter etc - then connect Node-RED to /dev/ttyWeather...
Sweet! Thanks for that tip Dave.
--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/ehyR8G7RWfI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Only downside of this is that autodetect may/will not work as the auto-detect often assumes ttyUSB... or ttyACM... etc - but manually specifying the port in the app will work.
--