You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use your code to establish a connection with an ESPA master. Currently I'm using this script:
from digimat.espa import LinkSerial, Server, MultiChannelServer
class MyMultiChannelServer(MultiChannelServer):
def onNotification(self, notification):
print(notification)
if notification.isName('Oproep'):
print("[%s]->paging(%s, %s)" % (notification.source,
notification.callAddress,
notification.message))
servers=MyMultiChannelServer()
link = LinkSerial(name='espa', url='/dev/ttyUSB0', baudrate=9600, parity='E', datasize=8, stopbits=1, rtscts=False)
servers.add(Server(link))
servers.run()
The only way I get result is when I add "spy://" to the url.
This results in:
000000.000 Q-RX reset_input_buffer
000000.001 DTR active
000000.074 Q-RX reset_input_buffer
000000.074 DTR active
000001.388 RX 0000 31 05 32 05 1.2.
000001.795 DTR inactive
000001.996 DTR inactive
When listening to the port with Minicom, I receive 121212121212121212 for enq 1 enq 2
I'm not sure how to send the EOT. Could you help out? Thx in advance!
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to use your code to establish a connection with an ESPA master. Currently I'm using this script:
from digimat.espa import LinkSerial, Server, MultiChannelServer
class MyMultiChannelServer(MultiChannelServer):
def onNotification(self, notification):
print(notification)
if notification.isName('Oproep'):
print("[%s]->paging(%s, %s)" % (notification.source,
notification.callAddress,
notification.message))
servers=MyMultiChannelServer()
link = LinkSerial(name='espa', url='/dev/ttyUSB0', baudrate=9600, parity='E', datasize=8, stopbits=1, rtscts=False)
servers.add(Server(link))
servers.run()
The only way I get result is when I add "spy://" to the url.
This results in:
000000.000 Q-RX reset_input_buffer
000000.001 DTR active
000000.074 Q-RX reset_input_buffer
000000.074 DTR active
000001.388 RX 0000 31 05 32 05 1.2.
000001.795 DTR inactive
000001.996 DTR inactive
When listening to the port with Minicom, I receive 121212121212121212 for enq 1 enq 2
I'm not sure how to send the EOT. Could you help out? Thx in advance!
The text was updated successfully, but these errors were encountered: