473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

initialize serial port

Hi to all!

I have a very strange problem... I am working with a fiscal printer on
Polland, and trying to communicate with it. I have a program in Visual
C++ 1.52, over MS/DOS, that initializes the port using int 14h,
function 00h (the same that does the mode.com command).

I can send any information to the printer using COM1, and the printer
hears me with no problem, but it's not answering to any command.

If I previously execute MSD.EXE, and then I press "C" (Com port
status), then the thing works properly.

Does anybody knows which function I can use to emulate this program?
Or does anybody have another program that does exactly the same
function without interaction with the user? I need to activate the
ports in a public commerce, and I don't want they press "c" and "F3"
every morning in order to work (it's not a clean solucion, isn't it?).

Well, I would appreciate any suggestion... I am leaving Polland this
sunday...

Thanks!!!
Nov 14 '05 #1
3 4622
miguel.ossa <mi*********@ya.com> spoke thus:
I have a very strange problem... I am working with a fiscal printer on
Polland, and trying to communicate with it. I have a program in Visual
C++ 1.52, over MS/DOS, that initializes the port using int 14h,
function 00h (the same that does the mode.com command).


Your post is off-topic for comp.lang.c. Please visit

http://www.csclub.uwaterloo.ca/u/dj3...lc-welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html

for posting guidelines and frequently asked questions. Thank you.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #2
In <92*************************@posting.google.com> mi*********@ya.com (miguel.ossa) writes:
Hi to all!

I have a very strange problem... I am working with a fiscal printer on
Polland, and trying to communicate with it. I have a program in Visual
C++ 1.52, over MS/DOS, that initializes the port using int 14h,
function 00h (the same that does the mode.com command).

I can send any information to the printer using COM1, and the printer
hears me with no problem, but it's not answering to any command.

If I previously execute MSD.EXE, and then I press "C" (Com port
status), then the thing works properly.

Does anybody knows which function I can use to emulate this program?
Or does anybody have another program that does exactly the same
function without interaction with the user? I need to activate the
ports in a public commerce, and I don't want they press "c" and "F3"
every morning in order to work (it's not a clean solucion, isn't it?).

Well, I would appreciate any suggestion... I am leaving Polland this
sunday...


Well, if you leave this mythical place called Polland this Sunday, you
have only two mornings left for pressing "c" and "F3" in order to work.
No big deal...

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #3
Greetings.

In article <92*************************@posting.google.com> , miguel.ossa
wrote:
I have a very strange problem... I am working with a fiscal printer on
Polland, and trying to communicate with it. I have a program in Visual
C++ 1.52, over MS/DOS, that initializes the port using int 14h,
function 00h (the same that does the mode.com command). [snip] Well, I would appreciate any suggestion...


I suggest you ask this question in a group dedicated to Visual C++ and/or
MS-DOS programming. :)

Regards,
Tristan

--
_
_V.-o Tristan Miller [en,(fr,de,ia)] >< Space is limited
/ |`-' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-= <> In a haiku, so it's hard
(7_\\ http://www.nothingisreal.com/ >< To finish what you
Nov 14 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ^CeFoS^ | last post by:
Hello to everybody, I've done an application that draws in a frame the trajectory of a robot. The robot position is readed through the serial port, and several commands are wrote through the...
2
by: willie | last post by:
Hi, I'm writing a program which requires the use of three serial ports and one parallel port. My application has a scanning devices on each port, which I can access fine with pyserial. ...
3
by: collinm | last post by:
hi i send a command to a led display, the led display is suppose to return me some character i write a string on a serial port void ledDisplayExist() { char msg={'\0', '\0', '\0', '\0',...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
4
by: joe bloggs | last post by:
I am writing a mobile application to interface with a legacy system and I am planning to use web services to communicate with this system. The legacy system receives data through a serial port. ...
4
by: Frank | last post by:
Hello, how to get information about all serial ports in the PC? I use the following code, but i got only the data of the FIRST serial port. All other serial port information are not available...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
4
by: rowan | last post by:
I'm writing a driver in Python for an old fashioned piece of serial equipment. Currently I'm using the USPP serial module. From what I can see all the serial modules seem to set the timeout when...
3
by: naveen.sabapathy | last post by:
Hi, I am trying to use virtual serial ports to develop/test my serial communication program. Running in to trouble... I am using com0com to create the virtual ports. The virtual ports seem to...
6
by: terry | last post by:
Hi, I am trying to send a character to '/dev/ttyS0' and expect the same character and upon receipt I want to send another character. I tired with Pyserial but in vain. Test Set up: 1. Send...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.