I don't know specific about Pi but generally serial on Linux
To use a serial interface on a Linux box - 2 option. 1. Dumb async terminals mode tty. 2. SLIP - TCP/IP over a serial link. I think dumb terminal would be simplest. Serial line could be setup so user could then login with a shell. Then user could any of the usual command line stuff to communicate with LMS (e.g. CURL command to POST/GET JSON request to get info / do command) Alternative could be to use CLI interface to LMS (i.e. telnet localhost 9090) but I think is is deprecated so may have limited functionality. Look at LMS WebUI Help -> Technical Information > The Logical Media Command Line interface The help provides details (maybe a bit out of date) on CLI and JSON. For CLI it says > the Logitech Media Server provides a command-line interface to the > players via TCP/IP. After starting the server, commands and queries may > be sent by connecting to a specific TCP/IP port. The server will reply > echoing the request (for commands) or by returning the requested data > (for queries). By default, the server will listen for connections on > TCP/IP port 9090. This format is designed for ease of integration into > AMX, Crestron and other automation systems. > > The end of line separator is line feed (<LF> ASCII decimal 10, > hexadecimal 0x0A). The server accepts LF, CR or 0x00 (or any combination > thereof) as end of line, and replies with whatever was used for the > command. For strings, Logitech Media Server uses the UTF-8 character-set > encoding. > > To use the command line interface interactively, use the telnet command > from your system's command prompt: telnet localhost 9090 and when it > connects, you can start typing commands. Beware that the server expects > parameters to be encoded using percent-style escaping (see below); " and > \ are not supported as in shell-like environments. ------------------------------------------------------------------------ bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=115760 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
