Python SDK stream crashing after sample 4310

I have set up the Python SDK to configure its own channel settings and then automatically stream and store data.
However, after sample 4310, the data stops streaming.
I've narrowed the problem to:
def _read_serial_binary(self, max_bytes_to_skip=3000):
    def read(n):
      #print('PREREAD')
      #print(n)
      b = self.ser.read(n) #THIS IS WHERE CODE GETS STUCK*************************

for some reason, ser.read simply does not read after sample 4300-4350

Is there some hard stop in the board's firmware to prevent the stream from continuing after a certain number of samples or after streaming a certain amount of data?
No error is thrown. The code just gets stuck at the ser.read(n) call. In this case, n=0. This is within the open_bci_v3 file.

Any help would be very appreciated, its a very strange way for the code to freeze up.

Comments

  • wjcroftwjcroft Mount Shasta, CA
    Have you tried running the stock OpenBCI_Python, without your code modifications? Does it also hang in the same place? In case your mods might be affecting this.

    Assuming you have the V2 firmware. V1 did have hang problems after something like a hour of streaming. Your hang is much sooner.

    What is your OS and Python version.

    Mentioning Jeremy @jfrey.
  • Sorry, forgot to respond to this thread.
    The hangup issue was resolved. Not sure what exactly was causing it to hang up, but it was in my modified user file and not the open_bci_v3 file.
Sign In or Register to comment.