Search found 19 matches

by a1eks
Tue Jan 10, 2023 8:32 pm
Forum: Driver development
Topic: Contec KT88-2400 - 24 channel EEG
Replies: 16
Views: 26287

Re: Contec KT88-2400 - 24 channel EEG

Hi, Sorry for the late response. Yes, I tested all channels with a signal generator, and for me, it works ok. This is a video from 5 months ago. https://www.youtube.com/watch?v=t8Kr4eWmNAs edit: Please note that in the code the reference is set to BN! Not to A1 A2 (AA). If you want AA reference chan...
by a1eks
Fri Dec 03, 2021 8:13 pm
Forum: Driver development
Topic: Contec KT88-2400 - 24 channel EEG
Replies: 16
Views: 26287

Re: Contec KT88-2400 - 24 channel EEG

I made also the script for KT88-1600 (18 channels)
https://github.com/miladinovic/Contec_E ... reaming.py

Now, I need to implement the drivers.
by a1eks
Mon Nov 22, 2021 7:06 pm
Forum: Driver development
Topic: Contec KT88-2400 - 24 channel EEG
Replies: 16
Views: 26287

Re: Contec KT88-2400 - 24 channel EEG

For now, I made an LSL python script for streaming in a local network, next stage is an implementation in C++ for OV.
https://github.com/miladinovic/Contec_K ... reaming.py

If anyone have a better idea for bit shifting in the 2nd part, let me know :lol:
by a1eks
Sat Nov 20, 2021 10:06 am
Forum: Driver development
Topic: Contec KT88-2400 - 24 channel EEG
Replies: 16
Views: 26287

Re: Contec KT88-2400 - 24 channel EEG

Upgrade. Bit order. I found the easiest way to figure out to generate an artificial signal of relatively low frequency (1 or 2hz) and to connect it to the input of the amplifier. https://i.ibb.co/wrTFL3V/photo-2021-11-20-10-33-24.jpg I used the analogue one, as the digital new ones didn't have optio...
by a1eks
Thu Nov 11, 2021 7:50 pm
Forum: Driver development
Topic: Contec KT88-2400 - 24 channel EEG
Replies: 16
Views: 26287

Re: Contec KT88-2400 - 24 channel EEG

Finally, I manage to get it working in OpenVIbe. The bits location are 100% correct for each channel, and I assume also the bit order, but not completely sure...
https://www.youtube.com/watch?v=HBjhafKXALY
by a1eks
Wed Nov 10, 2021 12:03 pm
Forum: Driver development
Topic: Contec KT88-2400 - 24 channel EEG
Replies: 16
Views: 26287

Re: Contec KT88-2400 - 24 channel EEG

New upgrade, in theory, this should be the correct protocol. I am not sure about the bit order yet, but that could be also solved. x-used bits for the corresponding channel 0-unused bits 1-irrelevant bits for the corresponding channel 0b10100000 - stream init marker Fp1 0b10100000 000011xx 01111111 ...
by a1eks
Tue Nov 09, 2021 4:49 pm
Forum: Driver development
Topic: Contec KT88-2400 - 24 channel EEG
Replies: 16
Views: 26287

Re: Contec KT88-2400 - 24 channel EEG

Hi Thomas, Here is the output of the channels when each single is connected to the ground and others are saturated: https://github.com/miladinovic/KT88-1600-openvibe-driver/blob/main/OutputKT882400.txt Edit: Here are some new findings: Fp1 0b10100000 00001100 01111111 01111111 01111111 01111111 0101...
by a1eks
Fri Oct 29, 2021 6:44 pm
Forum: Driver development
Topic: Contec KT88-2400 - 24 channel EEG
Replies: 16
Views: 26287

Re: Contec KT88-2400 - 24 channel EEG

Hi Thomas, ch1 = [0000 1111][1111 1111] ---> [0000 0000][1111 1111] 1. ((uint16)l_pBytesRead[0]) = 0000 0000 0000 1111 2. ((uint16)l_pBytesRead[0]) << 4 = 0000 0000 1111 0000 3. (l_pBytesRead[1] & 0xF) = 0000 1111 4. (((uint16)l_pBytesRead[0]) << 4) | (l_pBytesRead[1] & 0xF) = 0000 0000 1111 1111 Th...
by a1eks
Fri Oct 29, 2021 2:21 pm
Forum: Driver development
Topic: Contec KT88-2400 - 24 channel EEG
Replies: 16
Views: 26287

Re: Contec KT88-2400 - 24 channel EEG

Hi Thomas, You are welcome, thank you for your suggestions! Also, I think the data for each channel comes together, and so the byte swapping (if needed) should be the last step after extracting the bits of data. The script you shared starts by swapping all the bytes of the buffer. I don't think this...
by a1eks
Thu Oct 28, 2021 3:34 pm
Forum: Driver development
Topic: Contec KT88-2400 - 24 channel EEG
Replies: 16
Views: 26287

Re: Contec KT88-2400 - 24 channel EEG

So, upgrade. When I connect to the EMG port I get a nice signal, but I don't get anything else meaningful-similar to the official EEGsw on other channels. :cry: There must be something about bit order that I am not doing well. What I am very confident of is that 45bytes carry samples of all 26 chann...
by a1eks
Mon Oct 25, 2021 10:50 pm
Forum: Driver development
Topic: Contec KT88-2400 - 24 channel EEG
Replies: 16
Views: 26287

Re: Contec KT88-2400 - 24 channel EEG

Hi Thomas, Thanks for the help. As I have KT88-2400 I can confirm that there are 26channels available, and these two additional are PG1 and PG2 (nasopharyngeal electrodes), nowadays rarely used. In a certain type of montage setting, they do appear though in the official software. How did you get the...
by a1eks
Wed Oct 20, 2021 10:57 am
Forum: Driver development
Topic: Contec KT88-2400 - 24 channel EEG
Replies: 16
Views: 26287

Contec KT88-2400 - 24 channel EEG

Hi, I know there were topics about drivers for Contec devices, especially for the KT88-1600 (16ch EEG), which worked well (the source code in the attachment), however, there was nothing for the KT88-2400, and so I did some reverse engineering to figure out how to decode the commands. Here are my fin...
by a1eks
Thu Nov 26, 2020 2:24 pm
Forum: Acquisition server and drivers
Topic: help producing driver for KT88
Replies: 2
Views: 8292

Re: help producing driver for KT88

Hey Folks I know it been a while :mrgreen: and as I can see the driver was never realized. I would like to play a little bit, but I cannot find anymore the drafts of the KT88 driver on the internet Does anyone still have the drafts? ovasCConfigurationContecKT881016.cpp ovasCDriverContecKT881016.h ov...
by a1eks
Thu May 03, 2018 2:16 pm
Forum: Acquisition server and drivers
Topic: Non power-of-two sampling freq. and sample count (OpenBCI)
Replies: 1
Views: 2720

Non power-of-two sampling freq. and sample count (OpenBCI)

Hi all, Recently I have received OpenBCI Cyton+Daisy set (16ch version) and I have noticed that the device does not have power-of-two sampling rate. In particular, OpenBCI by Bluetooth connection I can set sampling rate to 250hz if I have 8ch or 125hz if I use all 16. In the example of 16ch I cannot...
by a1eks
Mon Apr 09, 2018 9:54 pm
Forum: Acquisition server and drivers
Topic: OpenBCI with Acquisition server
Replies: 4
Views: 6706

Re: OpenBCI with Acquisition server

Hi all,

I have a question. Does Acquisition Server works with OpenBci wifi shield https://shop.openbci.com/products/wifi- ... 4534009550 ?