Skip to content

OEC LAN Standalone update 004

Choose a tag to compare

@slado slado released this 26 Aug 10:01
· 196 commits to master since this release

Instalacia

  1. http://<adresa_oec>/update/updateoec
  2. Vybrat subor s update (update_oec_lan_standalone_0004.zip)
  3. Vlozit verifikacny kod (nachadza sa v update_oec_lan_standalone_0004.txt)
  4. Stlacit Upload
  5. Cakat cca 2-3 min
  6. Zobrazi sa vysledok v json formate, treba v nom najst "sucess":true
  7. Restart zariadenia nie je nutny

Zmeny

Adresa tlačiarne môže byť nastavená nasledovnými spôsobmi (dostupné od update 04)

  • prnx - CUPS is used
  • /dev/usb/lpx - printing to USB printer, where x is the printer number. /dev/usb/lp0 usually
  • /dev/ttyUSBx - printing to printer connected using USB2Serial adapter
  • /dev/ttySx - printing to direct RS232 attached printer

Parameter for /dev/tty* printers can be specified as follows:

Parameteres can be attached to the printer address

?[baud=baudrate][+handshake=none|rts|dtr][+striplf][+delaytime=delay][+delayafterbytes=bytes]
  • baud=baudrate - baudrate for printer communication. Valid and mandatory only for /dev/ttyUSBx. Default 19200
  • handshake=none|rts|dtr - handshake for printer communication none, RTS/CTS or DTR/DSR. Default is none. Valid only for USB2Serial or direct serial attached printers
  • striplf - If specified, LF character is stripped from the printer output. Default is do not strip LF
  • delaytime=delay - Delay in ms after sending output to the printer. Default 1000
  • delayafterbytes=bytes - Delaytime is applied only if the print output > delayafterbytes. Default 0

Examples

  • /dev/ttyUSB0?baud=19200 - baudrate 19200, no handshake, printer attached via USB2Serial adapter
  • /dev/ttyUSB0?baud=19200+striplf - baudrate 19200, no handshake, strip LF character, printer attached via USB2Serial adapter
  • /dev/ttyS0?baud=38400+handshake=rts - baudrate 38400, RTS/CTS, direct serial attached printer
  • prn1?delay=2000+delayafterbytes=100 - printing via CUPS
  • /dev/usb/lp0 - USB attached printer

Bugfixes

  • korektne zarovnanie adresy na specifikovany pocet znakov
  • Fix tlace adresy orientacne a popisne cislo