List Info

Thread: Re: Write on Soundbridge display




Re: Write on Soundbridge display
country flaguser name
United States
2008-03-13 17:52:11

Just a little followup, as i was bored

In the telnet, there is "sketch", which can write to the display

text x y "Text"

sketch> ?
Commands:
help - displays this list
rect x y w h - draws rect
framerect x y w h - frames rect
point x y - draws point
line x1 y1 x2 y2 - draws line
blit x1 y1 x y w h - blits from (x,y,w,h) to (x1,y1)
slide x n - slides the display x pixels n times
font n|list - chooses a font by number
"font list" to list fonts
color n - chooses pen color (0 or 1)
text x y "text" - draws text at point (x, y)
use 'c' as x or y to center
marquee -stop|[-start] "text" - slides text across the display
encoding utf8|latin1 - selects utf8 or latin1 as character
encoding
clear - clears display
quit - quits sketch

--- In nslu2-general%40yahoogroups.com">nslu2-generalyahoogroups.com, "doctordiller&quot; <jacob...>
wrote:
>
&gt; Ok, I can make it work using Python. -> telnetlib.Telnet(host,port)
&gt; Thanks for sending me an email with the answer.
>
> --- In nslu2-general%40yahoogroups.com">nslu2-generalyahoogroups.com, "doctordiller&quot; <jacob>
> wrote:
&gt; >
>; > Thanks, this all looks real good but unfortunately I do not use
> > Debian. Does anyone have a solution for optware ? I don't think
> there
> > is a ipkg telnet package available. Is it possible to simulate
> telnet
> > in anyway ?
> > Thanks.
> >
> > --- In nslu2-general%40yahoogroups.com">nslu2-generalyahoogroups.com, "Sam&quot; <sam> wrote:
&gt; > >
>; > > --- In nslu2-general%40yahoogroups.com">nslu2-generalyahoogroups.com, "doctordiller&quot; <jacob>
> > > wrote:
&gt; > > >
>; > > > Hey,
>; > > > Yes you can probably use a shell script and telnet. That is
> what
> > I
> > > > would like to know how I'm new to this stuff and would
like
> > to
> > > > know how to telnet OUT from the slug to the soundbridge. An
> > example
> > > > would be appreciated.
> > > > Thanks,
> > > > --- In nslu2-general%40yahoogroups.com">nslu2-generalyahoogroups.com, "Sam&quot; <sam> wrote:
&gt; > > > >
>; > > > > --- In nslu2-general%40yahoogroups.com">nslu2-generalyahoogroups.com, "doctordiller&quot;
<jacob>
> > > wrote:
&gt; > > > > >
>; > > > > > Hi,
> > > > > > I have been working on a nice little setup where I have
my
> > slug
> > > > > > downloading torrents and FTP them to my network mediea
> > player.
> > > > I'm
> > > > > > using a simple sh script to process the torrent file and
> FTP
> > > the
> > > > > > downloaded file to a folder on my network player.
> > > > > > What I would like to do is write a status on my
soundbridge
> > > while
> > > > the
> > > > > > torrent is downloading (% done, copying file, file ready,
> > ect.)
> > > > Does
> > > > > > anyone know how to write to the display of the
soundbridge
> > from
> > > a
> > > > sh
> > > > > > script. I know about telnet to port 4444 and 5555 but I
> > basicly
> > > > don't
> > > > > > know how to achive this from a .sh
> > > > > > Thanks,
> > > > > >
>; > > > >
> > > > > Cant tell you yet.. Just installing my Soundbridge now
> > > > >
> > > > > I presume you can use a shell script to open a telnet
> > connection,
> > > > login
> > > > > and input whatever you want it to display...?
> > > > >
> > > > > Will see what i can find out
> > > > >
> > > > >
> > > > > Sam
> > > > >
>; > > >
>; > >
> > >
> > > SLUG:~# telnet
&gt; > > -bash: telnet: command not found
&gt; > > SLUG:~# apt-get install telnet
&gt; > > <snip&gt;
> > > SLUG:~# telnet
&gt; > > telnet> o
> > > (to) 192.168.0.30 4444
>; > > Trying 192.168.0.30...
&gt; > > Connected to 192.168.0.30.
> > > Escape character is '^]'.
&gt; > >
> > >
> > > Welcome to the SoundBridge Shell version 3.0.49 Release
> > > Type '?' for help or 'help <command>' for help on <command>.
&gt; > >
> > > SoundBridge>
>; > >
> > >
> > >
> > >
> > >
> > > For a really basic script:
> > >
> > > SLUG:/home/sam# ./soundbridge.sh
&gt; > > Trying 192.168.0.30...
&gt; > > Connected to 192.168.0.30.
> > > Escape character is '^]'.
&gt; > >
> > >
> > > Welcome to the SoundBridge Shell version 3.0.49 Release
> > > Type '?' for help or 'help <command>' for help on <command>.
&gt; > >
> > > SoundBridge> ^]
> > > telnet> quit
>; > > Connection closed.
> > >
> > >
> > >
> > > SLUG:/home/sam# cat soundbridge.sh
>; > > #!/bin/sh
> > >
> > > telnet 192.168.0.30 4444
>; > >
> > >
> > >
> > > SoundBridge> ?
> > > Valid commands are:
>; > > ? - displays this list
>; > > help - provides help on a command
> > > clear - clears the terminal window
&gt; > > stty - sets shell tty parameters
> > > consoleprint - sets consoleprint on or off
> > > version - prints out the software version
> > > exit - exits the shell
&gt; > > cycles - displays a count of processor cycles
&gt; > > uptime - reports system uptime
&gt; > > reboot - reboots the system
&gt; > > ps - lists threads
> > > ifconfig - lists network interface configurations
> > > ping - pings an ip address
> > > ipset - sets up a manual config
&gt; > > mfg - performs mfg tests
&gt; > > sketch - draw on the display
> > > irman - capture, monitor or send IR commands
> > > memstat - prints out memory statistics
> > > romcheck - print rom sizes
&gt; > > log - dump the persistent log
> > > logclear - clear the log
> > > logadd - add string to log
> > > attract - attract eyeballs
> > > irwait - wait for a specific IR command
> > > displaytype - print type of currently connected DISplay
> > > time - displays the current time
>; > > clearsettings - clears CascadeSettings and reboots
> > > softwareupgrade - perform software upgrades from network or
> local
> > > storage
> > > srbmod - modify srb for oem test
>; > > rcp - enter the RCP shell
&gt; > >
> > >
> > >
> > >
> > > They provide some developer stuff... So it'll proably need
> looking
> > > into
>; > >
> > >
> > >
> > > Sam
> > >
>; >
>;

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )