1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 <2022> 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 <2022> 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Regarding an error |
From: | "Yendell, Gary \(DLSLtd, RAL, LSCI\) via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, ZALA ARYANSINH <18bic060 at nirmauni.ac.in> |
Date: | Wed, 2 Mar 2022 11:36:52 +0000 |
Hi,
It looks like you have two problems. This
2022/03/02 09:17:16.451 SERIALPORT -1 autoConnect could not connect: /dev/ttyACM0 Can't open No such file or directory
suggests the given serial port is wrong or the device is not connected.
This
2022/03/02 09:17:16.955732 _main_ Can't find readable file 'arduino.proto' in 'helloWorldIOCApp/Db'
Cheers,
Gary
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of ZALA ARYANSINH via Tech-talk <tech-talk at aps.anl.gov>
Sent: 02 March 2022 04:00 To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: Regarding an error Hello,
I am currently following a project from the site mentioned below.
I have successfully done the previous mentioned steps. Also a point to note that i am using a virtual machine as i could not install linux on my desktop.
The error that i am facing is:
#!../../bin/linux-x86/helloWorldIOC
## You may have to change helloWorldIOC to something else ## everywhere it appears in this file < envPaths epicsEnvSet("ARCH","linux-x86") epicsEnvSet("IOC","iochelloWorldIOC") epicsEnvSet("TOP","/home/pi/Apps/epics/helloWorldIOC") epicsEnvSet("ASYN","/usr/local/epics/modules/asyn") epicsEnvSet("STREAM","/usr/local/epics/modules/stream") epicsEnvSet("EPICS_BASE","/usr/local/epics/base") epicsEnvSet(STREAM_PROTOCOL_PATH,"helloWorldIOCApp/Db") cd "/home/pi/Apps/epics/helloWorldIOC" ## Register all support components dbLoadDatabase "dbd/helloWorldIOC.dbd" helloWorldIOC_registerRecordDeviceDriver pdbbase drvAsynSerialPortConfigure("SERIALPORT","/dev/ttyACM0",0,0,0) 2022/03/02 09:17:16.451 SERIALPORT -1 autoConnect could not connect: /dev/ttyACM0 Can't open No such file or directory asynSetOption("SERIALPORT",-1,"baud","115200") asynSetOption("SERIALPORT",-1,"bits","8") asynSetOption("SERIALPORT",-1,"parity","none") asynSetOption("SERIALPORT",-1,"stop","1") asynSetOption("SERIALPORT",-1,"clocal","Y") asynSetOption("SERIALPORT",-1,"crtscts","N") dbLoadRecords("db/arduino.db","PORT='SERIALPORT'") ## Load record instances #dbLoadRecords("db/xxx.db","user=piHost") cd "/home/pi/Apps/epics/helloWorldIOC/iocBoot/iochelloWorldIOC" iocInit Starting iocInit ############################################################################ ## EPICS R3.14.12.5 $Date: Tue 2015-03-24 09:57:35 -0500$ ## EPICS Base built Feb 21 2022 ############################################################################ 2022/03/02 09:17:16.955732 _main_ Can't find readable file 'arduino.proto' in 'helloWorldIOCApp/Db' 2022/03/02 09:17:16.955804 _main_ while reading protocol 'get_analog' for 'photo:get' 2022/03/02 09:17:16.955832 _main_ photo:get: Protocol parse error 2022/03/02 09:17:16.955858 _main_ photo:get: Record initialization failed 2022/03/02 09:17:16.955919 _main_ Can't find readable file 'arduino.proto' in 'helloWorldIOCApp/Db' 2022/03/02 09:17:16.955950 _main_ while reading protocol 'set_digital' for 'led:set' 2022/03/02 09:17:16.955979 _main_ led:set: Protocol parse error 2022/03/02 09:17:16.956005 _main_ led:set: Record initialization failed Bad init_rec return value PV: led:set ao: init_record iocRun: All initialization complete ## Start any sequence programs #seq sncxxx,"user=piHost" epics> 2022/03/02 09:17:17.960955 scan0.5 photo:get: Record not initialised correctly 2022/03/02 09:17:18.457259 scan0.5 photo:get: Record not initialised correctly 2022/03/02 09:17:18.957321 scan0.5 photo:get: Record not initialised correctly
-- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. |