example.serial.reader/src/example/serialshell/SerialReader.java
@Activate
    public void activate() throws Exception
    {
        final UUID uuid = m_CustomCommsService.tryCreatePhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT, "COM1");
        m_SerialPort = (SerialPort)m_CustomCommsService.requestPhysicalLink(uuid);
        final int baudRate = 115200;
        final int dataBits = 8;
        m_SerialPort.setSerialPortProperties(baudRate, dataBits, ParityEnum.NONE, StopBitsEnum.ONE_STOP_BIT, 
                FlowControlEnum.NONE);
        m_SerialPort.open();
        
        m_ReaderThread = new Thread(this);
        m_ReaderThread.start();
    }
/**
     * Activate the component by opening a serial port and starting a thread to listen to the port.
     * 
     * @throws Exception
     *      if any exception happens during activation
     */
Activate the component by opening a serial port and starting a thread to listen to the port.

@throws Exception
if any exception happens during activation
Activate the component by opening a serial port and starting a thread to listen to the port . @throws Exception if any exception happens during activation
@Activate
    public void activate() throws Exception
    {
        final UUID uuid = m_CustomCommsService.tryCreatePhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT, "COM1");
        m_SerialPort = (SerialPort)m_CustomCommsService.requestPhysicalLink(uuid);
        final int baudRate = 115200;
        final int dataBits = 8;
        m_SerialPort.setSerialPortProperties(baudRate, dataBits, ParityEnum.NONE, StopBitsEnum.ONE_STOP_BIT, 
                FlowControlEnum.NONE);
        m_SerialPort.open();
        m_ReaderThread = new Thread(this);
        m_ReaderThread.start();
    }
@ Activate public void activate ( ) throws Exception { final UUID uuid = m_CustomCommsService . tryCreatePhysicalLink ( PhysicalLinkTypeEnum . SERIAL_PORT , "COM1" ) ; m_SerialPort = ( SerialPort ) m_CustomCommsService . requestPhysicalLink ( uuid ) ; final int baudRate = 115200 ; final int dataBits = 8 ; m_SerialPort . setSerialPortProperties ( baudRate , dataBits , ParityEnum . NONE , StopBitsEnum . ONE_STOP_BIT , FlowControlEnum . NONE ) ; m_SerialPort . open ( ) ; m_ReaderThread = new Thread ( this ) ; m_ReaderThread . start ( ) ; }
Activate the component by opening a serial port and starting a thread to listen to the port.
Activate the component by opening a serial port and starting a thread to listen to the port .