Experimental Physics and Industrial Control System
|
Hi,
sounds like a misconfiguration of the baud rate. The whole configuration in your startup script may look like this (adapt to your device):
drvAsynSerialPortConfigure("TESTPORT","/dev/ttyS0",0,0,0)
asynSetOption("TESTPORT", -1, "baud", "9600")
asynSetOption("TESTPORT", -1, "bits", "8")
asynSetOption("TESTPORT", -1, "parity", "none")
asynSetOption("TESTPORT", -1, "stop", "1")
asynSetOption("TESTPORT", -1, "clocal", "Y")
asynSetOption("TESTPORT", -1, "crtscts", "N")
If you are communicating between two hosts, make sure to use a null modem adapter / cable.
Best regards,
Christoph
On 12/19/19 3:09 PM, 网易邮件中心 via Tech-talk wrote:
Hi all,
I intend to output "FA02AF" using stream.
The IOC worked well but no effect. I checked the output using serial assistant in Win7.
I got a indescribable string, not the FA02AF. Actually when I echo FA02AF >/dev/ttyS0, it seems well.
I have no idea about these. Could someone give me some advice.
mydev.proto:
_________________
Terminator=CR;
AS{
out "FA02AF"
}
mydev.db:
__________________
record(ao,"AS")
{
field(SCAN, "Passive")
field(DTYP, "stream")
field(OUT, "@mydev.proto AS $(PORT)")
}
Regards,
Li xing
--
(bb|[^b]{2})
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.
Aufsichtsrat: Vorsitzender Dr. Volkmar Dietz, stv. Vorsitzende Dr. Jutta Koch-Unterseher
Geschäftsführung: Prof. Dr. Bernd Rech (Sprecher), Prof. Dr. Jan Lüning, Thomas Frederking
Sitz Berlin, AG Charlottenburg, 89 HRB 5583
Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin
- References:
- stream output not as I thoutght 网易邮件中心 via Tech-talk
- Navigate by Date:
- Prev:
stream output not as I thoutght 网易邮件中心 via Tech-talk
- Next:
Re: processing pva records Michael Davidsaver 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
2022
2023
2024
2025
- Navigate by Thread:
- Prev:
stream output not as I thoutght 网易邮件中心 via Tech-talk
- Next:
caQtDM Mezger Anton Christian (PSI) 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
2022
2023
2024
2025
|
ANJ, 20 Dec 2019 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
·
Download
·
Search
·
IRMIS
·
Talk
·
Documents
·
Links
·
Licensing
·
|