Skip to content

junk package after /stop #74

Open
Open
@redFrik

Description

@redFrik

this issue probably has more to do with the firmware or the radio but i post it here anyways.

i'm on macos 10.12.6 with a cyton 8ch board + dongle. (didn't perform the 'ftdi driver fix' yet if that could have somthing to do with it)

OpenBCI V3 8-16 channel
On Board ADS1299 Device ID: 0x3E
LIS3DH Device ID: 0x33
Firmware: v3.1.1

the issue i'm having is that after sending the stop command (s) i get a slightly garbled package as the last incoming package.
here's some test code to demonstrate...

import serial
import time

ser= serial.Serial(port= "/dev/tty.usbserial-DJ00DO0N", baudrate= 115200)
if ser.isOpen():
	print(ser.name)
	ser.write(b'b')  #start streaming
	timeout= time.time()+1
	while time.time()<timeout:
		ser.read()
	ser.write(b's')  #stop streaming
	while True:
		byte= ord(ser.read())
		print(byte)
		if byte==192:
			print('--------')

and here the output...

160
241
250
142
83
250
146
117
250
153
162
250
113
28
234
25
0
223
17
3
204
37
12
128
0
0
0
0
0
0
0
0
192
--------
160
242
250
142
55
250
146
91
250
153
133
250
113
4
234
24
234
223
16
238
204
36
244
128
0
0
0
0
0
0
0
0
192
--------
160
243
250
142
198
250
146
241
250
154
35
250
113
163
234
25
155
223
17
160
204
37
183
128
0
0
0
0
0
0
0
0
192
--------
65             <- THIS
244
165
82
250
147
123
250
154
183
250
114
53
234
26
55
223
18
60
204
38
96
128
0
0
2
80
1
0
32
144
192
--------

around 9/10 times the last package doesn't start with 160 but rather with 65. the package counter is correct and the rest of the data seem valid. it's just the wrong header.

how come? can someone verify on their system.
thank you.
_f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions