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  <20192020  2021  2022  2023  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  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: FW: Serial port bus connection issue on arm platform
From: Mark Rivers via Tech-talk <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 7 Nov 2019 15:23:04 +0000
Forgot to CC tech-talk.

-----Original Message-----
From: Mark Rivers 
Sent: Thursday, November 7, 2019 9:09 AM
To: 'Seeberger, John T CIV USN NAS PAX MD (USA)' <[email protected]>
Subject: RE: Serial port bus connection issue on arm platform

Hi John,

> found this relevant tech-talk post:
> If AsynDriverInterface is not listed, have you accidentally commented out the bus interface in CONFIG_STREAM?
> Unfortunately, with asyn 4-5, you still have to specify ASYN_VERS=4-3 in CONFIG_STREAM (I will fix that later).
> What is this refering to, where is this?

asyn 4-5 was 13 years ago, so I think you can ignore that tech-talk message!

> How can I further debug?

Try this:

asynReport 10 SERIALPORT

You need to see if you can to the serial port without stream.  Open an asynRecord GUI, connect it to SERIALPORT and try interactively sending and receiving characters.  You can turn on asynTrace debugging in that GUI to print diagnostic messages if things are not working.

Mark


-----Original Message-----
From: Tech-talk <[email protected]> On Behalf Of Seeberger, John T CIV USN NAS PAX MD (USA) via Tech-talk
Sent: Thursday, November 7, 2019 8:55 AM
To: [email protected]
Subject: Serial port bus connection issue on arm platform

Good day. I have a database with 7 PV's that drive an aviation six pack. I have successfully built and run on Xilinx ultrascale dev board, Epics base-3.15.5, synApps_6_0 compiled with aarch64. The ioc runs fine under petalinux on zcu106. The simulator uses /dev/ttyUSB0 to talk to a labview application that feeds the data. The example is based upon  an arduino example I found on the web. Very simple.

Now I want to target gnueabihf Xilinx zynq 7000 and run on zc706 and NAII board. Database unchanged. I recompiled epics base and syncapps with 32 bit arm compiler, rebuild petalinux. Now when I run I'm getting errors with the serial port. Here is what I think are relevant snippits.


The aoa record:
record(ai, aoa) {
    field(DESC, "Angle of Atack Sensor")
    field(DTYP, "stream")
    field(INP, "@aoa.proto get_analog() $(PORT)")
    field(SCAN, ".1 second")
    field(HOPR, "360")
    field(LOPR, "0")
    field(PREC, "2")
    field(FLNK, "speed")
}



I limit the error message to first PV, but all records have same errors.

The serial port is there, functional, permissions fine. The same database and startup works fine when built with aarch64 compiler and run on zcu106.

I would like to get working under the 32 bit arm zynq, so the database run on a North Atlantic Industries VPX, or VME  board.


Startup:
epicsEnvSet(STREAM_PROTOCOL_PATH,"helloWorldIOCApp/Db")
dbLoadDatabase("dbd/helloWorldIOC.dbd")
helloWorldIOC_registerRecordDeviceDriver(pdbbase)
drvAsynSerialPortConfigure("SERIALPORT","/dev/ttyUSB0",0,0,0)
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'"
iocInit()
Starting iocInit
############################################################################
## EPICS R3.15.5
## EPICS Base built Oct 24 2019
############################################################################
2019/10/31 21:26:01.810631 _main_ Cannot find a bus named 'SERIALPORT' for 'aoa'
2019/10/31 21:26:01.810770 _main_ aoa: Can't attach to bus SERIALPORT -1
2019/10/31 21:26:01.810834 _main_ aoa: Record initialization failed

Warning: RSRV has empty beacon address list
iocRun: All initialization complete
## Start any sequence programs
#seq snchelloWorldIOC,"user=johnseebergerlin"
2019/10/31 21:26:02.413981 scan-0.1 aoa: Record not initialised correctly

dbior
Driver: stream
  StreamDevice 2.7.7 built Oct 24 2019 13:43:29
  registered bus interfaces:
    DebugInterface
    DummyInterface
Driver: drvAsyn
SERIALPORT multiDevice:No canBlock:Yes autoConnect:Yes Serial line /dev/ttyUSB0: Connected

dbior "stream"
Driver: stream
  StreamDevice 2.7.7 built Oct 24 2019 13:43:29
  registered bus interfaces:
    DebugInterface
    DummyInterface

found this relevant tech-talk post:
If AsynDriverInterface is not listed, have you accidentally commented out the bus interface in CONFIG_STREAM?
Unfortunately, with asyn 4-5, you still have to specify ASYN_VERS=4-3 in CONFIG_STREAM (I will fix that later).

What is this refering to, where is this?

How can I further debug?

thx
Thad

References:
Serial port bus connection issue on arm platform Seeberger, John T CIV USN NAS PAX MD (USA) via Tech-talk

Navigate by Date:
Prev: RE: [Non-DoD Source] Re: Serial port bus connection issue on arm platform Seeberger, John T CIV USN NAS PAX MD (USA) via Tech-talk
Next: FW: [Non-DoD Source] Re: Serial port bus connection issue on arm platform Mark Rivers 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: FW: [Non-DoD Source] Re: Serial port bus connection issue on arm platform Mark Rivers via Tech-talk
Next: Re: Serial port bus connection issue on arm platform Johnson, Andrew N. 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  <20192020  2021  2022  2023  2024 
ANJ, 07 Nov 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·