× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Dee,

I don't think making this work like a printer is worth the effort it would
take.  Since it doesn't speak LPR or PJL protocols, you'd have to write
your own method of transporting printer documents to it...  It's just not
worth it.

Instead, write a socket client.  I've got a tutorial on socket programming
for RPG programmers on my web site here:

   http://www.scottklement.com/rpg/socktut/

I'd suggest reading the first two chapters of the tutorial.  You'll send
your data like this:

      **  Before sending data, you must call gethostbyname(),
      **  socket() and connect() as explained in the sockets
      **  tutorial.

      ** Send ASCII STX code:
     c                   eval      data = x'02'
     c                   callp     send(sock: %addr(data): 1: 0)

      ** Convert string to ASCII and send it
     c                   eval      data = '041234'
     c                   eval      len = %len(%trimr(data))
     c                   callp     QDCXLATE(len: data: 'QTCPASC')
     c                   callp     send(sock: %addr(data): len: 0)

      ** Send ASCII ETX code:
     c                   eval      data = x'03'
     c                   callp     send(sock: %addr(data): 1: 0)

      ** Close socket
     c                   callp     close(sock)


On Mon, 17 Nov 2003, Dee Westerfield wrote:
> I have received some documentation on the scoreboard.  It receives an ASCII
> string in the following protocol:
>
> ASCII Code
>
> STX  (Start of text also know as Control B)
> Address of display as set on the display
> Data
> ETX (End of text aka Control C)
>
> Example: to set the display that has an address of '04' to '1234'
>
> <STX>041234<ETX>
>
> There is an ethernet card in the board that you assign an IP address and
> each number on the board has a 2 position address.
>
> You can telnet from a PC to it again sending the above string as
> 'control B' "04" "1234"'control C" total of 8 characters.
>
> This sure sounds like it ought to be easy.  Does this make the printer
> scenario even more realistic?
>
> I should be receiving a demo board this week.  We have not purchased this
> yet so my resources are limited.
>

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.