-
Notifications
You must be signed in to change notification settings - Fork 6
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
Missing Polling #3
Comments
I would say yes, but this is an old projet. Not sure that :
…-- it has been tested
-- it has been used
This pooling must match with the control equipment address, which is '1' if
not changed within class instantiation.
Best regards,
Frederic
Le ven. 9 avr. 2021 à 13:44, Usman Haider ***@***.***> a
écrit :
ESPA 4.4.4 protocol defines polling mechanism for server stations
Polling <http://www.gscott.me.uk/ESPA.4.4.4/protocol.html>
As this library allows to create servers does this library implement
polling?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXU4MKTWT57OCGY55F4LELTH3SCPANCNFSM42U2EE7Q>
.
|
Thanks for the reply. But when I start the server
I don't see any data being sent on COM2. The server should poll for example 2. No? |
Don't know exactly your code, but this was my working example.
Did you try something like this ? This was working, but this is an old
story for me ;)
from digimat.espa import LinkSerial, Server, MultiChannelServer
class MyMultiChannelServer(MultiChannelServer):
def onNotification(self, notification):
print notification
if notification.isName('calltopager'):
print "[%s]->paging(%s, %s)" % (notification.source,
notification.callAddress,
notification.message)
servers=MyMultiChannelServer()
link=LinkSerial('ts940', 'COM1', 9600, 'N', 8, 1)
servers.add(Server(link))
link=LinkSerial('espa2', 'COM2', 9600, 'N', 8, 1)
servers.add(Server(link))
servers.run()
Le ven. 9 avr. 2021 à 16:13, Usman Haider ***@***.***> a
écrit :
… Thanks for the reply. But when I start the server
link = LinkSerial ('ts940', 'COM2', 9600, 'N', 8, 1) servers.add (Server
(link)) servers.run ()
I don't see any data being sent on COM1. The server should poll for
example 2. No?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXU4MIMRMPOWJYPHLJEKXLTH4DSNANCNFSM42U2EE7Q>
.
|
The above code it exactly what I am trying. On the client side I have the client running which is listening on the serial port for |
Ok, i understand the question now. No the server doesn't initiate polling.
It is to the client to initiate communications.
But it should not be hard to implement server polling if really needed.
Le ven. 9 avr. 2021 à 16:28, Usman Haider ***@***.***> a
écrit :
… The above code it exactly what I am trying. On the client side I have the
client running which is listening on the serial port for 2 . But nothing on
serial port.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXU4MOOCNCWN7LGQ5IH4W3TH4FHXANCNFSM42U2EE7Q>
.
|
Thanks for confirmation. |
ESPA 4.4.4 protocol defines polling mechanism for server stations
Polling
As this library allows to create servers does this library implement polling?
The text was updated successfully, but these errors were encountered: