Package br.org.scadabr.dnp34j.master.session.config

Examples of br.org.scadabr.dnp34j.master.session.config.SerialParameters


  public static void main(String[] args) throws Exception {
    // DNPConfig config = new DNPConfig(new EthernetParameters(
    // "150.162.165.190", 20000), 3, 4);

    DNPConfig config = new DNPConfig(new SerialParameters("COM2", 9600), 3,
        4);
    user = new DNPUser(config);

    user.init();
    // 69775326259457
View Full Code Here


        setPhyETHERNET(new PhyETHERNET(this));

        setInputStream(phyETHERNET.getInputStream());
        setOutputStream(phyETHERNET.getOutputStream());
      } else if (config.getCommType() == COMM.SERIAL) {
        SerialParameters parameters = (SerialParameters) config
            .getCommConfig();
        setCommAddress(parameters.getCommAddress());
        setBaudrate(parameters.getBaudrate());
        setDataBits(parameters.getDatabits());
        setStopBits(parameters.getStopbits());
        setParity(parameters.getParity());
        setPhySERIAL(new PhySERIAL(this));

        setInputStream(phySERIAL.getInputStream());
        setOutputStream(phySERIAL.getOutputStream());
      }
View Full Code Here

TOP

Related Classes of br.org.scadabr.dnp34j.master.session.config.SerialParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.