Serial communication

Modified on Sun, 25 Dec, 2022 at 2:54 PM

Our base library manages communication with HITIPanel using a proprietary serial protocol. 


Before being used, the library must first be initialized during the setup() using HC_begin(). Moreover, you have the possibility to change the serial baudrate using this function.


Once the library is initialized and the baudrate is set, communication with HITIPanel is performed inside the loop() by calling HC_communicate().



Initializing the library and configuring the baudrate

  • HC_begin()                    =>   default baudrate : 250000
  • HC_begin(baudrate)   =>   baudrate (long)


One of these functions must be called during the setup(). The default baudrate is 250000. If you need to use a different value, pick one from the list below:

  • 110
  • 150
  • 300
  • 600
  • 1200
  • 2400
  • 4800
  • 9600
  • 14400
  • 19200
  • 28800
  • 38400
  • 57600
  • 115200
  • 230400
  • 250000
  • 500000
  • 1000000


Don’t forget to change the baudrate in HITIPanel as well by going toSettings (CTRL+P or Tools\Settings).


Communicating with HITIPanel

  • HC_communicate()

Place this function at the beginning of the loop() to establish communication between your Arduino and HITIPanel. HITIPanel then automatically discusses with HITIComm and retrieves data in the background.






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article