How to generate packet in INET omnet++

I want to send a message between two wireless nodes using radio medium in INET framework. The message packet should get generated by each node computing received info.

Where should I define the message code?