jrg94 / aeqp-interview-tool

1 stars 0 forks source link

Add EDA Support #4

Closed jrg94 closed 4 years ago

jrg94 commented 4 years ago

Here's the code to interface with the Windows server:

import socket

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("127.0.0.1", 28000))
s.sendall(b'device_list\r\n')
data = s.recv(1024)

print('Received', repr(data))

More styles of messages can be found here: http://developer.empatica.com/windows-streaming-server-commands.html

jrg94 commented 4 years ago

Right now, EDA data collection looks good. I'm occasionally running into issues where we miss a sample and the program crashes. Not sure how to deal with that at the moment other than throwing out that sample. At this point, it's just a matter of recreating the same graph for Audio as EDA.

My main issue right now is that the program is really, really slow. I'm thinking about doing some refactoring, so I can pull different sections out of the UI to see what's slowing things down).

For now, I'm going to move on to defining the survey data and formatting how it should look.