{"action":"created","issue":{"url":"https://api.github.com/repos/johnlauer/serial-port-json-server/issues/27","labels_url":"https://api.github.com/repos/johnlauer/serial-port-json-server/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/johnlauer/serial-port-json-server/issues/27/comments","events_url":"https://api.github.com/repos/johnlauer/serial-port-json-server/issues/27/events","html_url":"https://github.com/johnlauer/serial-port-json-server/issues/27","id":100797794,"number":27,"title":"udoo problem connecting json server to arduino-due","user":{"login":"kendallgreen","id":544717,"avatar_url":"https://avatars.githubusercontent.com/u/544717?v=3","gravatar_id":"","url":"https://api.github.com/users/kendallgreen","html_url":"https://github.com/kendallgreen","followers_url":"https://api.github.com/users/kendallgreen/followers","following_url":"https://api.github.com/users/kendallgreen/following{/other_user}","gists_url":"https://api.github.com/users/kendallgreen/gists{/gist_id}","starred_url":"https://api.github.com/users/kendallgreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kendallgreen/subscriptions","organizations_url":"https://api.github.com/users/kendallgreen/orgs","repos_url":"https://api.github.com/users/kendallgreen/repos","events_url":"https://api.github.com/users/kendallgreen/events{/privacy}","received_events_url":"https://api.github.com/users/kendallgreen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-13T15:22:49Z","updated_at":"2015-08-13T20:09:54Z","closed_at":null,"body":"I still am having problems getting the serial-port-json-server to connect to the arduino-due on the UDOO board.  The verbose output is listed here:\r\nudooer@udoo:/etc/init.d$ sudo service serial-port-json-server start\r\n * Starting Serial Port JSON Server service                                                                                                                                                            /etc/init.d/serial-port-json-server: 23: /etc/init.d/serial-port-json-server: //: Permission denied\r\n                                                                                                                                                                                                [ OK ]\r\nudooer@udoo:/etc/init.d$ 2015/08/13 14:57:56 main.go:89: Version:1.83\r\n2015/08/13 14:57:56 main.go:96: Hostname: udoo\r\n2015/08/13 14:57:56 main.go:102: Garbage collection is on using Standard mode, meaning we just let Golang determine when to garbage collect.\r\n2015/08/13 14:57:56 main.go:115: Starting server and websocket on 192.168.0.178:8989\r\n2015/08/13 14:57:56 main.go:118: The Serial Port JSON Server is now running.\r\n2015/08/13 14:57:56 main.go:119: If you are using ChiliPeppr, you may go back to it and connect to this server.\r\n2015/08/13 14:57:57 seriallist_linux.go:292: Rootpath:/sys, Numscanned:12466\r\nMatchedfiles:\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/manufacturer\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/manufacturer\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/manufacturer\r\n2015/08/13 14:57:58 seriallist_linux.go:292: Rootpath:/sys, Numscanned:12466\r\nMatchedfiles:\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/0003:062A:4101.0001/input/input0/id/product\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1/0003:062A:4101.0002/input/input1/id/product\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/product\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/product\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/product\r\n2015/08/13 14:57:58 seriallist_linux.go:118: The list of directories with serial port device data:[/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1 /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1 /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/0003:062A:4101.0001/input/input0/id /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1/0003:062A:4101.0002/input/input1/id /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3]\r\n2015/08/13 14:57:58 seriallist_linux.go:131: \tDirectory searching: /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1\r\n2015/08/13 14:57:58 seriallist_linux.go:159: This is a hub, so skipping. /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1\r\n2015/08/13 14:57:58 seriallist_linux.go:131: \tDirectory searching: /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1\r\n2015/08/13 14:57:58 seriallist_linux.go:124: MOSART Semi. : 2.4G Keyboard Mouse () DevClass:00\r\n2015/08/13 14:57:58 seriallist_linux.go:309: Rootpath:/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1, Numscanned:248\r\nMatcheddirs:\r\n2015/08/13 14:57:58 seriallist_linux.go:124: \tlist of ports on this. map:map[]\r\n2015/08/13 14:57:58 seriallist_linux.go:124: \t.\r\n2015/08/13 14:57:58 seriallist_linux.go:131: \tDirectory searching: /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/0003:062A:4101.0001/input/input0/id\r\n2015/08/13 14:57:58 seriallist_linux.go:124: Problem reading in manufacturer text file. It does not exist or Permissions maybe? err:open /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/0003:062A:4101.0001/input/input0/id/manufacturer: no such file or directory\r\n2015/08/13 14:57:58 seriallist_linux.go:124:  : 4101 () DevClass:\r\n2015/08/13 14:57:58 seriallist_linux.go:309: Rootpath:/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/0003:062A:4101.0001/input/input0/id, Numscanned:5\r\nMatcheddirs:\r\n2015/08/13 14:57:58 seriallist_linux.go:124: \tlist of ports on this. map:map[]\r\n2015/08/13 14:57:58 seriallist_linux.go:124: \t.\r\n2015/08/13 14:57:58 seriallist_linux.go:131: \tDirectory searching: /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1/0003:062A:4101.0002/input/input1/id\r\n2015/08/13 14:57:58 seriallist_linux.go:124: Problem reading in manufacturer text file. It does not exist or Permissions maybe? err:open /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1/0003:062A:4101.0002/input/input1/id/manufacturer: no such file or directory\r\n2015/08/13 14:57:58 seriallist_linux.go:124:  : 4101 () DevClass:\r\n2015/08/13 14:57:58 seriallist_linux.go:309: Rootpath:/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1/0003:062A:4101.0002/input/input1/id, Numscanned:5\r\nMatcheddirs:\r\n2015/08/13 14:57:58 seriallist_linux.go:124: \tlist of ports on this. map:map[]\r\n2015/08/13 14:57:58 seriallist_linux.go:124: \t.\r\n2015/08/13 14:57:58 seriallist_linux.go:131: \tDirectory searching: /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3\r\n2015/08/13 14:57:58 seriallist_linux.go:124: Ralink : 802.11 n WLAN (1.0) DevClass:00\r\n2015/08/13 14:57:58 seriallist_linux.go:309: Rootpath:/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3, Numscanned:342\r\nMatcheddirs:\r\n2015/08/13 14:57:58 seriallist_linux.go:124: \tlist of ports on this. map:map[]\r\n2015/08/13 14:57:58 seriallist_linux.go:124: \t.\r\n2015/08/13 14:57:58 seriallist_linux.go:124: Final port list: []\r\n2015/08/13 14:57:58 serial.go:119: Inside run of serialhub\r\n2015/08/13 14:57:59 main.go:144: Your serial ports:\r\n2015/08/13 14:57:59 main.go:146: \tThere are no serial ports to list.\r\n2015/08/13 14:58:32 conn.go:42: Started a new websocket handler\r\n2015/08/13 14:58:32 hub.go:121: list\r\n2015/08/13 14:58:33 seriallist_linux.go:292: Rootpath:/sys, Numscanned:12466\r\nMatchedfiles:\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/manufacturer\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/manufacturer\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/manufacturer\r\n2015/08/13 14:58:35 seriallist_linux.go:292: Rootpath:/sys, Numscanned:12466\r\nMatchedfiles:\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/0003:062A:4101.0001/input/input0/id/product\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1/0003:062A:4101.0002/input/input1/id/product\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/product\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/product\r\n/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/product\r\n2015/08/13 14:58:35 seriallist_linux.go:118: The list of directories with serial port device data:[/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1 /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1 /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/0003:062A:4101.0001/input/input0/id /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1/0003:062A:4101.0002/input/input1/id /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3]\r\n2015/08/13 14:58:35 seriallist_linux.go:131: \tDirectory searching: /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1\r\n2015/08/13 14:58:35 seriallist_linux.go:159: This is a hub, so skipping. /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1\r\n2015/08/13 14:58:35 seriallist_linux.go:131: \tDirectory searching: /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1\r\n2015/08/13 14:58:35 seriallist_linux.go:124: MOSART Semi. : 2.4G Keyboard Mouse () DevClass:00\r\n2015/08/13 14:58:35 seriallist_linux.go:309: Rootpath:/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1, Numscanned:248\r\nMatcheddirs:\r\n2015/08/13 14:58:35 seriallist_linux.go:124: \tlist of ports on this. map:map[]\r\n2015/08/13 14:58:35 seriallist_linux.go:124: \t.\r\n2015/08/13 14:58:35 seriallist_linux.go:131: \tDirectory searching: /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/0003:062A:4101.0001/input/input0/id\r\n2015/08/13 14:58:35 seriallist_linux.go:124: Problem reading in manufacturer text file. It does not exist or Permissions maybe? err:open /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/0003:062A:4101.0001/input/input0/id/manufacturer: no such file or directory\r\n2015/08/13 14:58:35 seriallist_linux.go:124:  : 4101 () DevClass:\r\n2015/08/13 14:58:35 seriallist_linux.go:309: Rootpath:/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/0003:062A:4101.0001/input/input0/id, Numscanned:5\r\nMatcheddirs:\r\n2015/08/13 14:58:35 seriallist_linux.go:124: \tlist of ports on this. map:map[]\r\n2015/08/13 14:58:35 seriallist_linux.go:124: \t.\r\n2015/08/13 14:58:35 seriallist_linux.go:131: \tDirectory searching: /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1/0003:062A:4101.0002/input/input1/id\r\n2015/08/13 14:58:35 seriallist_linux.go:124: Problem reading in manufacturer text file. It does not exist or Permissions maybe? err:open /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1/0003:062A:4101.0002/input/input1/id/manufacturer: no such file or directory\r\n2015/08/13 14:58:35 seriallist_linux.go:124:  : 4101 () DevClass:\r\n2015/08/13 14:58:35 seriallist_linux.go:309: Rootpath:/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1/0003:062A:4101.0002/input/input1/id, Numscanned:5\r\nMatcheddirs:\r\n2015/08/13 14:58:35 seriallist_linux.go:124: \tlist of ports on this. map:map[]\r\n2015/08/13 14:58:35 seriallist_linux.go:124: \t.\r\n2015/08/13 14:58:35 seriallist_linux.go:131: \tDirectory searching: /sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3\r\n2015/08/13 14:58:35 seriallist_linux.go:124: Ralink : 802.11 n WLAN (1.0) DevClass:00\r\n2015/08/13 14:58:35 seriallist_linux.go:309: Rootpath:/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3, Numscanned:342\r\nMatcheddirs:\r\n2015/08/13 14:58:35 seriallist_linux.go:124: \tlist of ports on this. map:map[]\r\n2015/08/13 14:58:35 seriallist_linux.go:124: \t.\r\n2015/08/13 14:58:35 seriallist_linux.go:124: Final port list: []\r\n2015/08/13 14:58:35 serial.go:460: Got metadata on ports:[]\r\n2015/08/13 14:58:35 serial.go:463: About to marshal the serial port list. spl:{[]}\r\n2015/08/13 14:59:17 hub.go:121: send /dev/ttymxc3 open /dev/ttymxc3 115200 tinygg2\r\n2015/08/13 14:59:17 serial.go:650: Inside spWrite arg: send /dev/ttymxc3 open /dev/ttymxc3 115200 tinygg2\r\n\r\n2015/08/13 14:59:17 serial.go:576: Sending err back:  We could not find the serial port /dev/ttymxc3 that you were trying to write to.\r\n\r\nI send the command  stty -F /dev/ttymxc3 cs8 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts in the serial-port-json-server script.\r\n\r\nI wonder if the seriallist_linux.go would find the /dev/ttymxc3 port if it used getListViaTtyList() rather than getAllPortsViaManufacturer() in lines 25-26?  Are there other changes that would be necessary if I compiled it changing those lines?"},"comment":{"url":"https://api.github.com/repos/johnlauer/serial-port-json-server/issues/comments/130825093","html_url":"https://github.com/johnlauer/serial-port-json-server/issues/27#issuecomment-130825093","issue_url":"https://api.github.com/repos/johnlauer/serial-port-json-server/issues/27","id":130825093,"user":{"login":"kendallgreen","id":544717,"avatar_url":"https://avatars.githubusercontent.com/u/544717?v=3","gravatar_id":"","url":"https://api.github.com/users/kendallgreen","html_url":"https://github.com/kendallgreen","followers_url":"https://api.github.com/users/kendallgreen/followers","following_url":"https://api.github.com/users/kendallgreen/following{/other_user}","gists_url":"https://api.github.com/users/kendallgreen/gists{/gist_id}","starred_url":"https://api.github.com/users/kendallgreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kendallgreen/subscriptions","organizations_url":"https://api.github.com/users/kendallgreen/orgs","repos_url":"https://api.github.com/users/kendallgreen/repos","events_url":"https://api.github.com/users/kendallgreen/events{/privacy}","received_events_url":"https://api.github.com/users/kendallgreen/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T20:09:54Z","updated_at":"2015-08-13T20:09:54Z","body":"With the compiled serial-port-json-server, I got the Chilipeppr logo simulation to run.  \r\n![2015-08-13_39](https://cloud.githubusercontent.com/assets/544717/9260393/e4d49cee-41f6-11e5-97f9-f6256b419bd1.png)\r\nIt still says that there are no serial ports found on the  json server\r\n"}}