473,320 Members | 2,092 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,320 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 4615
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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.