You have two alternatives
- put in the database the received data, as it stands.
- decode the received data and store in the database the extracted meaningful (for your application) info.
Alternative (1) is simple but hardly useful, without further processing. On the other hand, alternative (2) is harder to implement because you have to know the protocols used by the various machine.
Note we can only give you general help on such topics, in order to properly understand the different protocols you have to dive into the documentation.