• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pilight Nano USB interface
(06-24-2015, 07:11 PM)curlymo Wrote: Why don't you just make sure your fix the ttyUSB assignments?

Simply because this arbitrary assignment can change over time. If you attach more than one adapter to you board you will get into trouble with different device names over time.
If you want to be sure that this and only this very special adapter gets your preferred and configured device name than it's better to use a udev rule and fix it.
In my case after installation the 2 attached adapters changed their kernel name (ttyUSBX), and only pilight was configured to a fixed ttyUSB1. The other program was able to find the right device name because it is using a symbolic link created by udev. One might get after reboot the same address than before, but you can not be sure, and if you connect our device later all chances are lost.
So for me its the only logical solution to give device names depending on some unique features like the ftdi serial number, and its extremely simple. Just insert a line like
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="XXXXXX", SYMLINK+="nano0"
to you udev rules and aou are done.
On the other hand there is no need to check for a valid device name with you implemented table because milliseconds later you would get an serious error if you errorneous configured device does not exist (fopen would fail), time enough to check the config...

For me this is only an annoying check with less to no significance.
regards
 
Reply
  


Messages In This Thread
pilight Nano USB interface - by curlymo - 03-09-2015, 05:48 PM
RE: pilight Nano USB interface - by meloen - 05-02-2015, 11:20 AM
RE: pilight Nano USB interface - by curlymo - 05-02-2015, 01:39 PM
RE: pilight Nano USB interface - by terrar - 05-07-2015, 12:11 PM
RE: pilight Nano USB interface - by curlymo - 05-07-2015, 12:24 PM
RE: pilight Nano USB interface - by terrar - 05-07-2015, 12:47 PM
RE: pilight Nano USB interface - by curlymo - 05-07-2015, 12:58 PM
RE: pilight Nano USB interface - by terrar - 05-07-2015, 01:09 PM
RE: pilight Nano USB interface - by GENETX - 05-11-2015, 08:35 PM
RE: pilight Nano USB interface - by curlymo - 05-11-2015, 09:09 PM
RE: pilight Nano USB interface - by koos147 - 06-02-2015, 08:10 PM
RE: pilight Nano USB interface - by curlymo - 06-02-2015, 10:27 PM
RE: pilight Nano USB interface - by noxx - 06-22-2015, 04:07 PM
RE: pilight Nano USB interface - by curlymo - 06-22-2015, 04:46 PM
RE: pilight Nano USB interface - by noxx - 06-23-2015, 08:21 AM
RE: pilight Nano USB interface - by pilino1234 - 06-23-2015, 08:37 AM
RE: pilight Nano USB interface - by curlymo - 06-23-2015, 08:51 AM
RE: pilight Nano USB interface - by pilino1234 - 06-23-2015, 08:55 AM
RE: pilight Nano USB interface - by noxx - 06-23-2015, 09:39 AM
RE: pilight Nano USB interface - by curlymo - 06-23-2015, 09:06 AM
RE: pilight Nano USB interface - by noxx - 06-23-2015, 05:22 PM
RE: pilight Nano USB interface - by curlymo - 06-23-2015, 10:14 AM
RE: pilight Nano USB interface - by pilino1234 - 06-23-2015, 05:28 PM
RE: pilight Nano USB interface - by noxx - 06-23-2015, 05:49 PM
RE: pilight Nano USB interface - by curlymo - 06-23-2015, 06:33 PM
RE: pilight Nano USB interface - by noxx - 06-23-2015, 08:01 PM
RE: pilight Nano USB interface - by curlymo - 06-23-2015, 08:16 PM
RE: pilight Nano USB interface - by dc6jn - 06-24-2015, 05:49 PM
RE: pilight Nano USB interface - by curlymo - 06-24-2015, 07:11 PM
RE: pilight Nano USB interface - by dc6jn - 06-24-2015, 09:42 PM
RE: pilight Nano USB interface - by curlymo - 07-17-2015, 01:50 PM
RE: pilight Nano USB interface - by tpm88 - 08-09-2015, 09:17 AM
RE: pilight Nano USB interface - by curlymo - 08-09-2015, 09:24 AM
RE: pilight Nano USB interface - by tpm88 - 08-09-2015, 12:11 PM
RE: pilight Nano USB interface - by mkloeffer - 09-06-2015, 07:36 PM
RE: pilight Nano USB interface - by curlymo - 09-06-2015, 07:47 PM
RE: pilight Nano USB interface - by mkloeffer - 09-08-2015, 07:18 PM
RE: pilight Nano USB interface - by curlymo - 09-08-2015, 07:51 PM
RE: pilight Nano USB interface - by mkloeffer - 09-09-2015, 07:05 AM
RE: pilight Nano USB interface - by hasselh - 09-15-2015, 01:51 PM
RE: pilight Nano USB interface - by curlymo - 09-15-2015, 03:00 PM
RE: pilight Nano USB interface - by hasselh - 09-15-2015, 06:16 PM
RE: pilight Nano USB interface - by curlymo - 09-15-2015, 06:48 PM
RE: pilight Nano USB interface - by hasselh - 09-15-2015, 08:38 PM
RE: pilight Nano USB interface - by psbest - 10-10-2015, 09:38 PM
RE: pilight Nano USB interface - by pilino1234 - 10-11-2015, 01:07 PM
RE: pilight Nano USB interface - by psbest - 10-12-2015, 05:16 PM
RE: pilight Nano USB interface - by pilino1234 - 10-12-2015, 05:46 PM
RE: pilight Nano USB interface - by curlymo - 10-12-2015, 07:31 PM
RE: pilight Nano USB interface - by psbest - 10-12-2015, 08:25 PM
RE: pilight Nano USB interface - by curlymo - 10-12-2015, 09:20 PM
RE: pilight Nano USB interface - by psbest - 10-12-2015, 09:23 PM
RE: pilight Nano USB interface - by curlymo - 10-12-2015, 10:03 PM
RE: pilight Nano USB interface - by psbest - 10-13-2015, 08:54 PM
RE: pilight Nano USB interface - by psbest - 10-14-2015, 01:20 PM
RE: pilight Nano USB interface - by pilino1234 - 10-14-2015, 02:07 PM
pilight Nano USB interface - by psbest - 10-22-2015, 09:31 PM
RE: pilight Nano USB interface - by accountabc - 10-25-2015, 02:27 PM
RE: pilight Nano USB interface - by hasselh - 11-08-2015, 02:12 PM
RE: pilight Nano USB interface - by accountabc - 11-08-2015, 03:19 PM
RE: pilight Nano USB interface - by curlymo - 11-08-2015, 03:34 PM
RE: pilight Nano USB interface - by accountabc - 11-08-2015, 04:07 PM
RE: pilight Nano USB interface - by LF-X - 11-11-2015, 11:06 PM
RE: pilight Nano USB interface - by curlymo - 11-11-2015, 11:13 PM
RE: pilight Nano USB interface - by sash.sc - 11-17-2015, 04:16 PM
RE: pilight Nano USB interface - by AirbusRichard - 01-10-2016, 08:39 PM
RE: pilight Nano USB interface - by curlymo - 01-10-2016, 08:40 PM
RE: pilight Nano USB interface - by AirbusRichard - 01-10-2016, 09:14 PM
RE: pilight Nano USB interface - by alasdairc - 05-15-2016, 11:31 PM
RE: pilight Nano USB interface - by kniazio - 05-16-2016, 05:25 AM
RE: pilight Nano USB interface - by curlymo - 05-16-2016, 08:08 AM
RE: pilight Nano USB interface - by kniazio - 05-16-2016, 10:30 AM
RE: pilight Nano USB interface - by curlymo - 05-16-2016, 11:35 AM
RE: pilight Nano USB interface - by kniazio - 05-16-2016, 12:02 PM
RE: pilight Nano USB interface - by curlymo - 05-16-2016, 02:06 PM
RE: pilight Nano USB interface - by kniazio - 05-16-2016, 07:49 PM
RE: pilight Nano USB interface - by kniazio - 05-17-2016, 11:38 AM
RE: pilight Nano USB interface - by curlymo - 05-17-2016, 05:33 PM
RE: pilight Nano USB interface - by Christer - 10-07-2016, 06:03 PM
RE: pilight Nano USB interface - by andies - 02-03-2017, 05:39 PM
RE: pilight Nano USB interface - by curlymo - 02-03-2017, 06:15 PM
RE: pilight Nano USB interface - by andies - 02-03-2017, 06:23 PM
RE: pilight Nano USB interface - by curlymo - 02-03-2017, 07:32 PM
RE: pilight Nano USB interface - by andies - 02-04-2017, 08:23 AM
RE: pilight Nano USB interface - by curlymo - 02-04-2017, 10:18 AM
RE: pilight Nano USB interface - by andies - 02-04-2017, 09:58 PM
RE: pilight Nano USB interface - by curlymo - 02-04-2017, 09:59 PM
RE: pilight Nano USB interface - by andies - 02-05-2017, 11:34 AM
RE: pilight Nano USB interface - by curlymo - 02-05-2017, 12:16 PM
RE: pilight Nano USB interface - by andies - 02-05-2017, 12:42 PM
RE: pilight Nano USB interface - by curlymo - 02-05-2017, 12:51 PM
RE: pilight Nano USB interface - by andies - 02-05-2017, 02:25 PM
RE: pilight Nano USB interface - by curlymo - 02-05-2017, 02:38 PM
RE: pilight Nano USB interface - by andies - 02-05-2017, 03:15 PM
RE: pilight Nano USB interface - by curlymo - 02-05-2017, 03:29 PM
RE: pilight Nano USB interface - by tihe - 02-11-2017, 06:37 PM
RE: pilight Nano USB interface - by curlymo - 02-11-2017, 09:00 PM
RE: pilight Nano USB interface - by andies - 02-20-2017, 02:56 PM
RE: pilight Nano USB interface - by curlymo - 02-20-2017, 07:15 PM
RE: pilight Nano USB interface - by andies - 02-21-2017, 01:20 PM
RE: pilight Nano USB interface - by curlymo - 02-21-2017, 07:16 PM
RE: pilight Nano USB interface - by andies - 02-21-2017, 07:18 PM
RE: pilight Nano USB interface - by curlymo - 02-21-2017, 09:09 PM
RE: pilight Nano USB interface - by andies - 02-21-2017, 09:13 PM
RE: pilight Nano USB interface - by curlymo - 02-21-2017, 09:15 PM
RE: pilight Nano USB interface - by andies - 03-15-2017, 08:07 AM
RE: pilight Nano USB interface - by honselbonsel - 04-04-2018, 12:01 PM
RE: pilight Nano USB interface - by curlymo - 04-04-2018, 02:03 PM
RE: pilight Nano USB interface - by sensorback - 04-24-2018, 11:32 PM
RE: pilight Nano USB interface - by curlymo - 04-25-2018, 06:20 AM
RE: pilight Nano USB interface - by sensorback - 04-25-2018, 10:47 AM
RE: pilight Nano USB interface - by curlymo - 04-25-2018, 05:28 PM
RE: pilight Nano USB interface - by sensorback - 04-27-2018, 08:48 PM
RE: pilight Nano USB interface - by sensorback - 04-27-2018, 09:28 PM
RE: pilight Nano USB interface - by curlymo - 04-27-2018, 09:52 PM
RE: pilight Nano USB interface - by bitboy - 05-12-2019, 05:52 PM
RE: pilight Nano USB interface - by peteje@web.de - 07-10-2019, 11:07 AM
RE: pilight Nano USB interface - by curlymo - 07-10-2019, 06:14 PM
RE: pilight Nano USB interface - by terrar - 03-09-2015, 06:26 PM
RE: pilight Nano USB interface - by curlymo - 03-09-2015, 06:34 PM
RE: pilight Nano USB interface - by Eekhoorn - 03-10-2015, 03:03 PM
RE: pilight Nano USB interface - by curlymo - 03-10-2015, 03:39 PM
RE: pilight Nano USB interface - by curlymo - 03-10-2015, 05:24 PM
RE: pilight Nano USB interface - by Eekhoorn - 03-11-2015, 07:42 PM
RE: pilight Nano USB interface - by Zatta - 03-12-2015, 05:02 PM
RE: pilight Nano USB interface - by curlymo - 03-12-2015, 05:06 PM
RE: pilight Nano USB interface - by meloen - 03-12-2015, 08:10 PM
RE: pilight Nano USB interface - by GENETX - 03-12-2015, 09:40 PM
RE: pilight Nano USB interface - by curlymo - 03-12-2015, 09:45 PM
RE: pilight Nano USB interface - by GENETX - 03-12-2015, 10:18 PM
RE: pilight Nano USB interface - by Eekhoorn - 03-12-2015, 10:43 PM
RE: pilight Nano USB interface - by curlymo - 03-12-2015, 10:46 PM
RE: pilight Nano USB interface - by GENETX - 03-12-2015, 10:56 PM
RE: pilight Nano USB interface - by Zatta - 03-13-2015, 05:28 PM
RE: pilight Nano USB interface - by Eekhoorn - 03-14-2015, 01:46 PM
RE: pilight Nano USB interface - by curlymo - 03-14-2015, 01:52 PM
RE: pilight Nano USB interface - by Eekhoorn - 03-14-2015, 02:13 PM
RE: pilight Nano USB interface - by curlymo - 03-14-2015, 02:53 PM
RE: pilight Nano USB interface - by reichwar - 03-14-2015, 06:56 PM
RE: pilight Nano USB interface - by curlymo - 03-14-2015, 08:09 PM
RE: pilight Nano USB interface - by Eekhoorn - 03-15-2015, 09:21 AM
RE: pilight Nano USB interface - by curlymo - 03-15-2015, 09:52 AM
RE: pilight Nano USB interface - by GENETX - 03-15-2015, 02:36 PM
RE: pilight Nano USB interface - by curlymo - 03-15-2015, 02:42 PM
RE: pilight Nano USB interface - by GENETX - 03-15-2015, 03:17 PM
RE: pilight Nano USB interface - by curlymo - 03-15-2015, 03:26 PM
RE: pilight Nano USB interface - by GENETX - 03-15-2015, 04:33 PM
RE: pilight Nano USB interface - by curlymo - 03-15-2015, 04:34 PM
RE: pilight Nano USB interface - by GENETX - 03-15-2015, 04:58 PM
RE: pilight Nano USB interface - by GENETX - 03-16-2015, 09:06 PM
RE: pilight Nano USB interface - by curlymo - 03-16-2015, 09:20 PM
RE: pilight Nano USB interface - by GENETX - 03-16-2015, 09:36 PM
RE: pilight Nano USB interface - by Kennie - 03-19-2015, 07:32 PM
RE: pilight Nano USB interface - by curlymo - 03-19-2015, 07:36 PM
RE: pilight Nano USB interface - by curlymo - 03-25-2015, 01:26 PM
RE: pilight Nano USB interface - by koos147 - 04-02-2015, 08:12 PM
RE: pilight Nano USB interface - by curlymo - 04-02-2015, 08:22 PM
RE: pilight Nano USB interface - by koos147 - 04-02-2015, 08:29 PM
RE: pilight Nano USB interface - by wo_rasp - 04-03-2015, 07:34 AM
RE: pilight Nano USB interface - by koos147 - 04-03-2015, 05:42 PM
RE: pilight Nano USB interface - by curlymo - 04-03-2015, 06:55 PM
RE: pilight Nano USB interface - by koos147 - 04-04-2015, 11:29 AM
RE: pilight Nano USB interface - by curlymo - 04-04-2015, 11:40 AM
RE: pilight Nano USB interface - by auspex - 04-08-2015, 11:32 AM
RE: pilight Nano USB interface - by daenny - 04-08-2015, 09:47 PM
RE: pilight Nano USB interface - by curlymo - 04-08-2015, 10:39 PM
RE: pilight Nano USB interface - by daenny - 04-08-2015, 11:07 PM
RE: pilight Nano USB interface - by curlymo - 04-08-2015, 11:41 PM
RE: pilight Nano USB interface - by auspex - 04-09-2015, 08:42 AM
RE: pilight Nano USB interface - by koos147 - 04-12-2015, 05:04 PM
RE: pilight Nano USB interface - by curlymo - 04-12-2015, 05:28 PM
RE: pilight Nano USB interface - by Eekhoorn - 04-16-2015, 08:05 AM
RE: pilight Nano USB interface - by curlymo - 04-16-2015, 08:31 AM
RE: pilight Nano USB interface - by alasdairc - 04-21-2015, 01:42 AM
RE: pilight Nano USB interface - by curlymo - 04-21-2015, 07:55 AM
RE: pilight Nano USB interface - by alasdairc - 04-21-2015, 09:31 AM
RE: pilight Nano USB interface - by curlymo - 04-21-2015, 10:16 AM
RE: pilight Nano USB interface - by alasdairc - 04-21-2015, 10:22 AM
RE: pilight Nano USB interface - by curlymo - 04-21-2015, 11:04 AM
RE: pilight Nano USB interface - by alasdairc - 04-21-2015, 11:08 AM
RE: pilight Nano USB interface - by curlymo - 04-21-2015, 11:23 AM
RE: pilight Nano USB interface - by alasdairc - 04-21-2015, 01:37 PM
RE: pilight Nano USB interface - by curlymo - 04-21-2015, 01:57 PM
RE: pilight Nano USB interface - by alasdairc - 04-22-2015, 11:11 PM
Re: pilight Nano USB interface - by curlymo - 04-22-2015, 11:12 PM
RE: pilight Nano USB interface - by alasdairc - 04-22-2015, 11:14 PM
RE: pilight Nano USB interface - by alasdairc - 04-23-2015, 01:11 AM
RE: pilight Nano USB interface - by curlymo - 04-23-2015, 05:56 AM
RE: pilight Nano USB interface - by alasdairc - 04-23-2015, 08:43 AM
RE: pilight Nano USB interface - by curlymo - 04-23-2015, 08:45 AM
RE: pilight Nano USB interface - by alasdairc - 04-23-2015, 08:46 AM
RE: pilight Nano USB interface - by curlymo - 04-23-2015, 08:26 PM
RE: pilight Nano USB interface - by alasdairc - 04-23-2015, 08:46 PM
RE: pilight Nano USB interface - by wo_rasp - 04-23-2015, 11:09 PM
RE: pilight Nano USB interface - by curlymo - 04-24-2015, 08:35 AM
RE: pilight Nano USB interface - by wo_rasp - 04-24-2015, 03:46 PM
RE: pilight Nano USB interface - by alasdairc - 04-24-2015, 03:53 PM
RE: pilight Nano USB interface - by curlymo - 04-24-2015, 04:54 PM
RE: pilight Nano USB interface - by wo_rasp - 04-24-2015, 10:51 PM
RE: pilight Nano USB interface - by alasdairc - 04-25-2015, 03:44 PM
RE: pilight Nano USB interface - by curlymo - 04-25-2015, 03:53 PM
RE: pilight Nano USB interface - by alasdairc - 04-25-2015, 03:54 PM
RE: pilight Nano USB interface - by alasdairc - 04-25-2015, 04:59 PM
RE: pilight Nano USB interface - by curlymo - 04-25-2015, 05:12 PM
RE: pilight Nano USB interface - by alasdairc - 04-25-2015, 05:13 PM
RE: pilight Nano USB interface - by curlymo - 04-25-2015, 05:16 PM
RE: pilight Nano USB interface - by alasdairc - 04-25-2015, 05:58 PM
RE: pilight Nano USB interface - by wo_rasp - 04-27-2015, 02:52 PM
RE: pilight Nano USB interface - by curlymo - 04-29-2015, 10:15 AM
RE: pilight Nano USB interface - by alasdairc - 04-29-2015, 11:03 AM
RE: pilight Nano USB interface - by curlymo - 04-29-2015, 11:06 AM
RE: pilight Nano USB interface - by alasdairc - 04-29-2015, 11:56 AM
RE: pilight Nano USB interface - by curlymo - 04-29-2015, 12:07 PM
RE: pilight Nano USB interface - by alasdairc - 04-29-2015, 02:33 PM
RE: pilight Nano USB interface - by curlymo - 04-29-2015, 02:39 PM
RE: pilight Nano USB interface - by wo_rasp - 04-30-2015, 09:08 AM
RE: pilight Nano USB interface - by curlymo - 04-30-2015, 09:29 AM
[split] Windows Support - by curlymo - 04-30-2015, 02:14 PM
RE: Windows Support - by curlymo - 04-30-2015, 03:02 PM
RE: Windows Support - by meloen - 04-30-2015, 07:52 PM
RE: Windows Support - by curlymo - 04-30-2015, 08:04 PM
RE: Windows Support - by meloen - 04-30-2015, 08:17 PM
RE: Windows Support - by curlymo - 04-30-2015, 09:27 PM
RE: pilight Nano USB interface - by alasdairc - 04-30-2015, 09:58 PM
RE: pilight Nano USB interface - by curlymo - 04-30-2015, 10:02 PM
RE: Windows Support - by meloen - 05-02-2015, 10:19 AM
RE: Windows Support - by curlymo - 05-02-2015, 10:39 AM
RE: Windows Support - by meloen - 05-02-2015, 11:13 AM
RE: Windows Support - by curlymo - 05-02-2015, 11:17 AM

Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight start/stop loop Rschnauzer 1 103 10-27-2022, 10:28 PM
Last Post: Rschnauzer
  pilight on raspbian bullseye ChristianK 3 1,315 07-29-2022, 10:18 PM
Last Post: Henkehh
  pilight-raw changes output format from 7 to 8 Rschnauzer 2 1,494 05-04-2022, 01:32 PM
Last Post: youradultworld
Question pilight stopped working sl4m01 5 2,302 09-16-2021, 01:34 PM
Last Post: orlo11
  how to compile pilight with custom protocol code? am i missing something? stanwebber 2 872 07-05-2021, 03:49 AM
Last Post: stanwebber
  hardware info lost after pilight restart Rschnauzer 3 1,115 03-17-2021, 11:44 AM
Last Post: Rschnauzer
Question pilight nightly webgui offline after some hours fleisch 4 1,576 10-26-2020, 05:19 PM
Last Post: fleisch
  pilight bugs Ascenion 1 1,149 03-23-2020, 06:29 PM
Last Post: curlymo
  [Solved] pilight service crashing on first webserver access after reboot VrahoK 20 7,209 12-21-2019, 09:46 AM
Last Post: curlymo
  pilight-control modify values coolinx 16 5,796 11-13-2019, 08:02 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)