linux - Application Interface between a PC and an embedded device -


How can I create an application interface so that a PC application can communicate on an embedded device like a POS terminal?

For example, an embedded device such as POS terminal that has embedded Linux as an OS. Then I want to use a PC application to communicate in that POS terminal and use my module hardware such as magnetic stripe reader for example. What should I implement in the device, should I use something related to Korba or that technology so that PC applications can communicate in POS terminal?

Many thanks.

Edit:

The connection between PC and POS terminal is serial.

How are you going to connect your PC to the POS terminal? Most likely, RS232 (serial) or maybe Ethernet / Wi-Fi should you do how you are creating your interface.

For serial connections, my recommendation will be a simple command line launch It is easy to write and debug it. Write a parser which takes the command and responds accordingly.

For TCP / IP, how about a web interface? Or at a command-line prompt a telnet interface (like a serial connection).


Comments