1

Topic: To trace that long there is no response from the device.

I work with the fiscal logger, but not an essence.
When the device is disconnected, at attempt connects - the program hangs up for very durable time.
Seconds 10 or more.
If during this moment  Access generally falls out.
Here so there is a connection

ECR.PASSWORD = "30"
ECR.Connect

And then still attempt that to receive that from the device.

If ECR.ResultCode <> 0 Then

Thus   the durable.
And the people worry...
What it is possible to undertake?
------------------------------------------------------------------------
Thanks for the answer.

2

Re: To trace that long there is no response from the device.

58 wrote:

That it is possible to undertake?

Before an input in a sale mode (or at start) to ask:
- The fiscal logger is included?
And to catch the answer Yes/is not present
smile))
Generally at me goes so

ECR.PASSWORD = "30"
ECR.Connect
If ECR.ResultCode <> 0 Then
MsgBox "Error !"
Exit Sub
End If

And response quick...

3

Re: To trace that long there is no response from the device.

vmag;
To well you.
And at me more than 10 seconds hang (at ungeared ).
That is inquiry goes.... Goes.... Goes.... Goes.... Goes.... Goes.... Goes.... Goes.... Goes.... Goes....
The program hangs.... Hangs.... Hangs.... Hangs.... Hangs.... Hangs.... Hangs.... Hangs.... Hangs.... Hangs....

4

Re: To trace that long there is no response from the device.

Can carry out this piece of the code from the program

ECR.PASSWORD = "30"
ECR.Connect
If ECR.ResultCode <> 0 Then
MsgBox "Error !"
Exit Sub
End If

In vbs
Both to launch it there and to check not the program...
Then it of type will not hang...
And?

5

Re: To trace that long there is no response from the device.

58;
And it only by one car/fiskalnike or on all?
And if  it is included, checks are normally produced or too thinks?
Look as in a picture at what Thread management of port and speed what in it and in the test driver...
It is better to come into the test driver. To push "equipment search" then the optimal steals up
Speed, then to expose such there and there...
Actually idea

vmag wrote:

- the Fiscal logger is included?
And to catch the answer Yes/is not present

Very much gains, you decline all responsibility - did not check up, the moron...
All falls into place, when represent that on a place of the cashier the monkey sits...
Then on  it is possible to include and paste the supply button tightly;
together with a computer to thrust in the pilot, the pilot included means the computer and  works also;
The pilot ungeared - neither that nor another does not work, ungear normally everything, do not forget, possibility of a fire in shop as all makes sober at night that and guards. It works and in that case when pilots not
Ungear, and lower in a bottom the general breaker of a location...

6

Re: To trace that long there is no response from the device.

vmag;
.....
And it can ....
At me in the driver it is exposed in 3000
And at you on a screen in 100

7

Re: To trace that long there is no response from the device.

vmag;
To paste the button on  I have no possibility.
I there who :-(
And idea good.
------------------------------------
I that it told sequence of switching-on.
At first cash register it is included, and then the program.
But if the cashier forgets it....
Then the program hangs some seconds.
And it is good, if with a mouse do not start to stick....
It eventually spits out that cash register that did not include.

8

Re: To trace that long there is no response from the device.

58 wrote:

Slluhaj.....
And it can ....

Quite... Well, it is necessary to be stuck in these parts more shortly and to experiment...

9

Re: To trace that long there is no response from the device.

vmag;
:-)
Well. .
------------------------
And program to check up, what we too long cannot ?
How that it is possible to dodge the code?

10

Re: To trace that long there is no response from the device.

58;
At first try to solve a problem and if it does not turn out, then already crutches...

11

Re: To trace that long there is no response from the device.

vmag;
Yes, thanks.

12

Re: To trace that long there is no response from the device.

58;
Checked up a time a miss on a dash in the absence of the device generally...
If 1 000 - the driver response through 15
If 100 - through 3-4

13

Re: To trace that long there is no response from the device.

58;
But it too is not healthy, it is necessary to test... Now cash registers also in an Internet send checks, suddenly because of it it is necessary to wait longer the answer that was not idle ...

14

Re: To trace that long there is no response from the device.

vmag;
Yes, yes...
Now  and on 5000 put.
Otherwise not stablly works.

15

Re: To trace that long there is no response from the device.

vmag;
While made so (at an input.)

ECR.PASSWORD = "30"
ECR.Timeout = 10
If ECR.Connect <> 0 Then
Exit Function
End If
ECR.PASSWORD = "30"
ECR.Timeout = 200
ECR.GetECRStatus

16

Re: To trace that long there is no response from the device.

58 wrote:

While made so

Well  so... Logically, it is possible still , that...
- The first ECR.Timeout = 10 to make with type parameter ECR.Timeout = t1 (Min-minimum)
- ECR.Timeout = 200 to make the second with parameter of type ECR.Timeout = t2 (Work-worker)
At program start to read out t1 and t2 from a file (table) of adjustments then if gets
, it is possible to set up under it Timeout and not to alter the program code...

17

Re: To trace that long there is no response from the device.

vmag;
Yes, it is possible to apply individual preferences also.
I will look as goes....

18

Re: To trace that long there is no response from the device.

vmag;
The hogwash turned out.
Occasionally communication does not communicate :-)
It is necessary to search, probably, for gold in the middle.
Type to select , what and wolves not to offend and sheep to satisfy.

19

Re: To trace that long there is no response from the device.

58 wrote:

the Hogwash turned out.

All problem in it:

58 wrote:

I there who :-(

That's it with it it is necessary to do something...
Told that it is necessary to work so (the switching-on order) and as cut off - there should be no fluctuations...
There are the elementary things - the iron does not iron, if it not to include in the socket etc.
And here you? A maximum to ask at start it is included  or not...
And that and all life you will look from below upwards...