Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with TCP/IP #4

Open
darkat opened this issue Dec 21, 2017 · 1 comment
Open

Error with TCP/IP #4

darkat opened this issue Dec 21, 2017 · 1 comment

Comments

@darkat
Copy link

darkat commented Dec 21, 2017

When i try connect with tcpip_cliente.py, script send init bytes and i finally get a error:

INFO:root:->10:49:01:00:4a:16
Traceback (most recent call last):
File ".\tcpip_cliente.py", line 76, in
run_example(ip, port, der, dir_pm, clave_pm)
File ".\tcpip_cliente.py", line 23, in run_example
link_layer.link_state_request()
File "D:...\gitproyect\reeprotocol\examples..\reeprotocol\protocol.py", line 116, in link_state_request
resp = self.get_frame()
File "D:...\gitproyect\reeprotocol\examples..\reeprotocol\protocol.py", line 107, in get_frame
bt = self.physical_layer.get_byte(timeout)
File "D:...\gitproyect\reeprotocol\examples..\reeprotocol\tcpip.py", line 44, in get_byte
return self.queue.get(True, timeout)
File "C:\Users...\AppData\Local\Programs\Python\Python36-32\lib\queue.py", line 172, in get
raise Empty
queue.Empty

With other programs, for instance ISM "Lector de contadores", when i send:

->10-49-01-00-4A-16

I receive:

<-10-0B-01-00-0C-16

.....

@javierdelapuente
Copy link
Owner

Hi darkat,

default timeout for get_timeout is 60 seconds. Could you increase it in LinkLayer.get_frame to see if that is the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants