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

ESPA Rpi4 #4

Open
TomasWeij opened this issue Apr 16, 2021 · 0 comments
Open

ESPA Rpi4 #4

TomasWeij opened this issue Apr 16, 2021 · 0 comments

Comments

@TomasWeij
Copy link

TomasWeij commented Apr 16, 2021

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!

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

1 participant