The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
Google UNIX.COM


Windows & DOS: Issues & Discussions Questions involving Unix to Windows (Desktop or Server) go here. Any Windows/DOS questions should go here as well.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Looking for Unix Emulators on Windows XP thoughts UNIX for Dummies Questions & Answers 11 02-17-2007 08:06 AM
looking for linux like tab terminal for windows umen Windows & DOS: Issues & Discussions 5 01-15-2007 04:55 PM
Windows UNIX emulators? liquidcross UNIX for Dummies Questions & Answers 7 07-28-2002 12:55 PM
Terminal windows getting killed jyotipg UNIX for Advanced & Expert Users 4 05-23-2002 02:45 PM
windows terminal Pyrohotdog Windows & DOS: Issues & Discussions 4 02-08-2002 09:42 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-02-2006
Registered User
 

Join Date: Nov 2006
Location: South Africa
Posts: 4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Question Windows Terminal Emulators

I have been using NetTerm on various Windows flavors for a while and have just run into a problem with printer passthru (transparent printing) that I can analyse but not resolve.

The setup is a Epson TM60 POS Label Printer connected XON/XOFF via COM1 on a Win98SE system. This is controlled utilising ESC/POS commands to produce barcodes.

The problem is that the ALL the NUL codes (ASCII 00) in the commands are dropped before they get to the printer ie:

*set printable area motion units in page mode
move x"1B570000000070019F00" to tm60-line
write tm60-line no control.

results in 1B5770019F at the sticky end of TCP/IP, Windows, NetTerm, printer.

NetTerm is configured to print direct to the port (not using the windows driver/spooler) so my query is - WHAT IS STEALING THE NULS ??? -

BTW If I hang the TM60 off a RS232 port on the Server there are no probs.
The problem is not hardware related - several printers, Win systems tested.

Any thoughts anyone???
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-02-2006
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,253
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
I have never used netterm but I found this:

Quote:
The NetTerm option to "print directly to printer" was put into NetTerm in
the days of Windows 3.1 when it was acceptable to bypass all of the Windows
printer drivers, and allow a host application to access the printer direct.
This option is still available, since many Windows 3.1 systems still exist.

However, on newer Windows operating systems, this option should not be used.
You should select the "send to windows printer" option to send normal text
files. This option will utilize the normal Windows printer driver for your
selected printer.

For those host applications that require direct access to the printer, use
the option "send to windows print queue". This does bypass the Windows
driver, and does require the host application to completely control the
printer. However it is the preferred way to bypass the Windows printer
drivers.
Reply With Quote
  #3 (permalink)  
Old 11-02-2006
Registered User
 

Join Date: Nov 2006
Location: South Africa
Posts: 4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Nope - No joy.

As I say the problem is the stripping of the NULs, I have seen these replaced with CR's LF,s etc in the past due to protocol considerations (7 bit 8 bit etc) and know that NULs are favorite targets for compression techniques (along with spaces) but these are often single NULs. Telnet is a suspect but I can find no direct reference to this problem besides I'm pretty sure termcap/terminfo must use NULs.

I have tested with VT100, sco-ansi & wy50 emulations with no difference in outcome - Netterm has the option to capture the print data to file so I have no trouble running a hex editor on it and as I say NOT a NUL in sight!!.

Thx for the ref I will fire this off to netterm support & see what they say.
Reply With Quote
  #4 (permalink)  
Old 11-02-2006
Registered User
 

Join Date: Nov 2006
Location: South Africa
Posts: 4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quick turn around from Netterm support:

Quote:
Mick

Use the latest version of NetTerm, then edit the netterm.ini file and make sure TPBINARY=1 is set.

Ken
Working like a charm!!! Interestingly I then googled on "tpbinary" and came across a doc on the first page here

which whilst it does not address the problem would have put me on the track.

BTW this option is not mentioned in any of the documentation contained in the downloaded versions - still alls well that ends well

PS: you do not need to download the latest (licensed) version it is working fine on the old freeware release
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix couldn't set locale correctly curses.h cut command in unix export command in unix find grep find mtime find null character in a unix file grep multiple lines grep or grep recursive inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace space by comma , perl script rsync ftp scp recursive segmentation fault(coredump) sftp script snoop unix solaris change ip address stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute while loop within while loop shell script


All times are GMT -7. The time now is 02:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101