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

junk package after /stop #74

Open
redFrik opened this issue Jun 13, 2018 · 0 comments
Open

junk package after /stop #74

redFrik opened this issue Jun 13, 2018 · 0 comments

Comments

@redFrik
Copy link

redFrik commented Jun 13, 2018

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

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