datamax

Barcode printing on Datamax Velocity Reviews > Newsgroups> JavaBarcode printing on DatamaxUser NameRemember Me?PasswordRegisterFAQMembers ListCalendarSearchToday's PostsMark Forums ReadJava - Barcode printing on Datamax Thread ToolsSearch this Thread12-10-2003, 08:30 AM #1Barcode printing on DatamaxHi everyone, I'm trying to print barcodes on Datamax printers (thermal barcode printers), and I send an outputStream of byte[], but the printers does nothing. The printer is a Datamax Allegro 2, and the code I send is (for example): byte[] linea_01 = {0x02,'A'}; outputStream.write(linea_01); That is supposed to be an Immediate Command (the hex 0x02 is the attention getter) and 'A' code is 'Send ASCII status string'. I've a printer in com1, another in com2, and another in lpt1.(I've trying in linux (/dev/ttyS0, S1 and /dev/lp0) and WinXP and it doesn't works at all). I'm sure all ports work fine because I can read a barcode-reader. Well, if anyones knows anything about this, i could explain a bit more. Thanks a lot. kategor kategor12-10-2003, 02:28 PM #2Mladen Adamovic Posts: n/aRe: Barcode printing on DatamaxHow do you open outputStream for writing on com2, com1, lpt1? Using /dev/ttyS1. I'm not sure of its properties. You might try to use javax.comm api, available at java.sun.com (I'm not sure about unix platform, it is system dependent API). If you can do it in C++ then you might try to use its library in Java see JNI help. And I must admit that you post your problem very nice, I like it sentences. "kategor" wrote : > The printer is a Datamax Allegro 2, and the code I send is (for example): > > byte[] linea_01 = {0x02,'A'}; > outputStream.write(linea_01); > > > That is supposed to be an Immediate Command (the hex 0x02 is the > attention getter) and 'A' code is 'Send ASCII status string'. > > I've a printer in com1, another in com2, and another in lpt1.(I've > trying in linux (/dev/ttyS0, S1 and /dev/lp0) and WinXP and it doesn't > works at all). I'm sure all ports work fine because I can read a > barcode-reader. > > Well, if anyones knows anything about this, i could explain a bit more. > > Thanks a lot. > Mladen Adamovic12-11-2003, 02:01 PM #3kategor Posts: n/aRe: Barcode printing on DatamaxThanks, but now it works fine. It was the wire, a standar serial wire does not work, it has to be a crossed-serial wire (don't know why). All I was doing in my code was alright. See you. Mladen Adamovic wrote: > How do you open outputStream for writing on com2, com1, lpt1? Using > /dev/ttyS1. > I'm not sure of its properties. > > You might try to use javax.comm api, available at java.sun.com (I'm not sure > about unix platform, it is system dependent API). > > If you can do it in C++ then you might try to use its library in Java see > JNI help. > > And I must admit that you post your problem very nice, I like it > sentences. > > "kategor" wrote : > >>The printer is a Datamax Allegro 2, and the code I send is (for example): >> >> byte[] linea_01 = {0x02,'A'}; >> outputStream.write(linea_01); >> >> >>That is supposed to be an Immediate Command (the hex 0x02 is the >>attention getter) and 'A' code is 'Send ASCII status string'. >> >>I've a printer in com1, another in com2, and another in lpt1.(I've >>trying in linux (/dev/ttyS0, S1 and /dev/lp0) and WinXP and it doesn't >>works at all). I'm sure all ports work fine because I can read a >>barcode-reader. >> >>Well, if anyones knows anything about this, i could explain a bit more. >> >>Thanks a lot. >> > > > > > > > kategor12-12-2003, 01:48 PM #4Pete Thane Posts: n/aRe: Barcode printing on DatamaxI think you are sending the wrong DPL (Datamax Programming Language) command. The A command is used to set the time and date of the printer when sent with other parameters. The A is the "Send Ascii String Status" command. If you are having problems checking communication with the printer, check all the DIP switch settings are set to off on the back (so it is then using the default baud rate settings etc of 96-n-8-1). Then if your host systems parameters match this, try sending an F which should cause the printer to form feed. It maybe better to turn the printer off and on again first before you try this or if you have had to change any of the dip switch settings. Pete ThaneForum Sitemap Thread ToolsSearch this ThreadShow Printable VersionEmail this PageSearch this Thread:Advanced SearchPosting RulesYou may not post new threadsYou may not post repliesYou may not post attachmentsYou may not edit your postsvB code is OnSmilies are On[IMG] code is OnHTML code is OffForum JumpUser Control PanelPrivate MessagesSubscriptionsSearch ForumsForums HomeGeneral Discussion Front Page News Reviews & How-To's Media The LoungeGeneral Computer Discussion General Help Related Topics Hardware Software Gaming Case Modding Case Gallery GalleryContact Us --Archive - Topразделы сушильный машина asko билет балет стопный пластырь озеленение сварочный пост видеосъемка торжество аденома предстательный железа renu multiplus 355мл пескоструйка промышленый альпинизм услуга кострома газонокосилка stiga красный площадь гум три цвета: красный подводный гидромассаж операторский центр вызов водитель крот-95 культура танго краска двухкомпонентный дефектоскопия сварной швов бахила оптом деловой костюм время ярославль компания доминике время архангельск снегоход буран рассылка корреспонденция lucent definity сварочный пост холодильник уценка детский лагерь пионер рефконтейнеры купить nokia 9300i электросчетчик сэт длинный нард сушильный машина frigidaire огнестойкий краска природа охота купить отвед тонирование стеклопакетов электроинструмент метабо билет балет крутой компания купить ножовка купить элеваторный узел торговый витрина врач-гинеколог производственный тара промышленный аккумулятор фирменый цвет продать кайт купить ниппель болен алкоголизмом индивидуальный банковский ячейка мва вал редуктор поворот внешний антенна флюрисцентная краска выделение кислорода ваза 2114 консультирование организация грунт цепной конвейер заказать микроавтобус беседка втулка переходный серверные корпус консольный переключатель дмитрий шумок профессиональный фарфор nokia 6021 купить лидо пекарня билет мхат здание лмк гидрант французский вина автоматический оповещение задний зеркало summer кухонный штангенциркуль покраска рчв время иваново многотарифные электросчетчик mobil cut антенна радиочастотный центр консультирование укв радиосвязь авиа отправка тренировка память вечерний платье получение выписка егрп ваза 2114 враждебный поглощение покраска аэротенк перевод денег белый кофе крот dr помидор купля гнб измерительный комплекс к2-79 трубогиб дорном восстановление бухучета сушильный машина ardo детский лагерь пионер пленка пэ кулер 478 sharp ar-m205 слимент лифт рак простата обрезание вызов водитель автоинформатор фосфорецирующая краска компания сент-лючии программа шифрование надпись кружок интеллектуальный электросчетчик клеить 88 люкс купить айсбест арманьяк доставка iridium motorola организация видеоконференция бюгельные зубной протез масло форма акриловый вставка вкладыш предохранитель пкн электрокамин dimplex model magic (sp8) предохранитель пкн информационный валаам ром доставка трансперсональный психология госпиталь мэш газонокосилка stiga тестоокруглитель ленточный ваттметр автономный электроснабжение облицовка электрокамин ливнесборные решетка snr измеритель сопротивление магнитно-маркерные доска узи тошиба корпоративный обслуживание вкус цвет кулер тихий природа охота спецобувь оптом рассылка адрес беременность род флаг заказ дермато-венеролог покраска рчв индивидуальный банковский ячейка ливнесборные решетка сухой мороженый серверные корпус консольный переключатель заказать обед шарошка алмазный многотарифные электросчетчик кулер процессор datamax