EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20222023  2024  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  <20222023  2024 
<== 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'

and the next few lines are because it can't find the protocol definitions. Did you create /home/pi/Apps/epics/helloWorldIOC/iocBoot/iochelloWorldIOC/helloWorldIOCApp/Db/arduino.proto with the given code snippet and does it have the correct permissions?

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.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 


Replies:
Re: Regarding an error Yendell, Gary (DLSLtd, RAL, LSCI) via Tech-talk
References:
Regarding an error ZALA ARYANSINH via Tech-talk

Navigate by Date:
Prev: Archiver Appliance Wrong last event timestamp Abdalla Ahmad via Tech-talk
Next: Re: Regarding an error Yendell, Gary (DLSLtd, RAL, LSCI) via Tech-talk
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  <20222023  2024 
Navigate by Thread:
Prev: Regarding an error ZALA ARYANSINH via Tech-talk
Next: Re: Regarding an error Yendell, Gary (DLSLtd, RAL, LSCI) via Tech-talk
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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·