Implement your USART code as plugin then use it;)
Take a look on this:
I would start from checking Hydra plugin code: