Skip to content

Commit

Permalink
Update API and firmware to v3.62
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Aug 28, 2023
1 parent 161ffc5 commit 5635c15
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if (NOT CMAKE_LIBRARY_ARCHITECTURE)
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
set(CMAKE_LIBRARY_ARCHITECTURE "x64")
set(NEUROPIX_LINK_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Source/API/v1/lib64/NeuropixAPI_x64_1_20.lib)
set(NEUROPIX2_LINK_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Source/API/v3/lib64/NeuropixAPI_x64_3_60.lib)
set(NEUROPIX2_LINK_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Source/API/v3/lib64/NeuropixAPI_x64_3_62.lib)
else()
set(CMAKE_LIBRARY_ARCHITECTURE "x86")
set(NEUROPIX_LINK_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Source/neuropix-api/lib32/NeuropixAPI_x86_1_20.lib)
Expand Down
Binary file not shown.
Binary file modified Resources/imec-firmware-for-plugin-0.6.x.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion Source/API/v3/NeuropixAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace Neuropixels {
}pckhdr_t;
#pragma pack(pop)

#define NP_MAXPAYLOADSIZE 1024
#define NP_MAXPAYLOADSIZE 3072
#pragma pack(push, 1)
typedef struct {
pckhdr_t hdr;
Expand Down
Binary file added Source/API/v3/lib64/NeuropixAPI_x64_3_62.lib
Binary file not shown.
17 changes: 15 additions & 2 deletions Source/Basestations/Basestation_v3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ bool Basestation_v3::open()

// show popup notification window
String message = "The basestation on slot " + String(slot) + " has firmware version 2.0137, but version 2.0169 is required for this plugin. ";
message += "This is contained in the file named BS_FPGA_B169.bin. ";
message += "Please see the Neuropixels PXI page on the Open Ephys GUI documentation site for information on how to perform a firmware update. ";
message += "You will be able to proceed with data acquisition using the current firmware, but there may be issues using the SMA port for synchronization.";

AlertWindow::showMessageBox(AlertWindow::AlertIconType::WarningIcon, "Outdated basestation firmware on slot " + String(slot), message, "OK");

Expand All @@ -198,7 +198,20 @@ bool Basestation_v3::open()
LOGC("Found basestation connect board firmware version ", basestationConnectBoard->info.boot_version);

// show popup notification window
String message = "The basestation on slot " + String(slot) + " has basestation firmware version 3.2176, but version 3.2186 is required for this plugin. ";
String message = "The basestation on slot " + String(slot) + " has basestation firmware version 3.2176, but version 3.2189 is required for this plugin. ";
message += "This is contained in the file named QBSC_FPGA_B189.bin. ";
message += "Please see the Neuropixels PXI page on the Open Ephys GUI documentation site for information on how to perform a firmware update.";

AlertWindow::showMessageBox(AlertWindow::AlertIconType::WarningIcon, "Outdated basestation connect board firmware on slot " + String(slot), message, "OK");
}

if (basestationConnectBoard->info.boot_version.equalsIgnoreCase("3.2186"))
{
LOGC("Found basestation connect board firmware version ", basestationConnectBoard->info.boot_version);

// show popup notification window
String message = "The basestation on slot " + String(slot) + " has basestation firmware version 3.2186, but version 3.2189 is required for this plugin. ";
message += "This is contained in the file named QBSC_FPGA_B189.bin. ";
message += "Please see the Neuropixels PXI page on the Open Ephys GUI documentation site for information on how to perform a firmware update.";

AlertWindow::showMessageBox(AlertWindow::AlertIconType::WarningIcon, "Outdated basestation connect board firmware on slot " + String(slot), message, "OK");
Expand Down
3 changes: 2 additions & 1 deletion Source/Probes/Geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ bool Geometry::forPartNumber(String PN,

else if (PN.equalsIgnoreCase("PRB2_4_2_0640_0")
|| PN.equalsIgnoreCase("NP2010")
|| PN.equalsIgnoreCase("NP2013"))
|| PN.equalsIgnoreCase("NP2013")
|| PN.equalsIgnoreCase("NP2014"))
NP2(4, em, pm); // multi-shank

else if (PN.equalsIgnoreCase("PRB_1_4_0480_1")
Expand Down
4 changes: 2 additions & 2 deletions Source/UI/NeuropixInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ NeuropixInterface::NeuropixInterface(DataSource* p,
bscFirmwareButton->setTooltip("Upload firmware to selected basestation connect board");
addChildComponent(bscFirmwareButton);

bscFirmwareLabel = new Label("BSC FIRMWARE", "1. Update basestation connect board firmware:");
bscFirmwareLabel = new Label("BSC FIRMWARE", "1. Update basestation connect board firmware (QBSC_FPGA_B189.bin):");
bscFirmwareLabel->setFont(Font("Small Text", 13, Font::plain));
bscFirmwareLabel->setBounds(550, verticalOffset + 43, 500, 20);
bscFirmwareLabel->setColour(Label::textColourId, Colours::orange);
Expand All @@ -449,7 +449,7 @@ NeuropixInterface::NeuropixInterface(DataSource* p,
bsFirmwareButton->setTooltip("Upload firmware to selected basestation");
addChildComponent(bsFirmwareButton);

bsFirmwareLabel = new Label("BS FIRMWARE", "2. Update basestation firmware:");
bsFirmwareLabel = new Label("BS FIRMWARE", "2. Update basestation firmware (BS_FPGA_B169.bin):");
bsFirmwareLabel->setFont(Font("Small Text", 13, Font::plain));
bsFirmwareLabel->setBounds(550, verticalOffset + 113, 500, 20);
bsFirmwareLabel->setColour(Label::textColourId, Colours::orange);
Expand Down

0 comments on commit 5635c15

Please sign in to comment.