Skip to main content

COINESPY: Interface for Bosch Sensortec's Engineering Boards.

COINESPY provides a python interface for interacting with the Bosch Sensortec's Engineering boards.

The library offers the following range of functionalities:

  • Control VDD and VDDIO of sensor
  • Configure SPI and I2C bus parameters
  • Read and write into registers of sensors from Bosch Sensortec via SPI and I2C
  • Read and write digital pins of the Engineering Board.

Engineering Board driver installation

To install the driver for the Engineering Board, follow these steps:

  • Navigate to the USB driver location: <path_to_python_site_packages>\coinespy\driver.
  • Run the USB driver.

Firmware update

Prerequisites

Before proceeding, ensure that the selected Engineering Board is flashed with either Coines bridge or DD firmware.

Steps to update firmware

To update the Coines bridge firmware to the Engineering Board, follow these steps:

  • Open the firmware folder located at <path_to_python_site_packages>\coinespy\.
  • Select the appropriate subfolder that corresponds to your specific board type.
  • Run the provided .bat/.sh file within the selected subfolder to initiate the firmware update process.

Configuration for BLE communication

Windows

To enable Bluetooth Low Energy (BLE) communication with coinespy Python library on a Windows machine, users need to modify their environment variables after installing the package. Based on the PC's architecture, add one of the following paths to your environment variables.

  • 64-bit: <path_to_python_site_packages>\coinespy\bin\x64
  • 32-bit: <path_to_python_site_packages>\coinespy\bin\x86

Linux/MacOS

For BLE communication in Linux and MacOS, no additional configuration is necessary.

Note

To determine the installation directory of coinespy, use pip show coinespy. Replace <path_to_python_site_packages> with your Python site packages directory.

Code example

Here’s a script to verify the installation by fetching the COINESPY version, and the hardware and software versions of the connected board.

	import coinespy as cpy
	from coinespy import ErrorCodes
	
	COM_INTF = cpy.CommInterface.USB
	
	if __name__ == "__main__":
		board = cpy.CoinesBoard()
		print('COINESPY version - %s' % cpy.__version__)
		board.open_comm_interface(COM_INTF)
		if board.error_code != ErrorCodes.COINES_SUCCESS:
			print(f'Could not connect to board: {board.error_code}')
		else:
			b_info = board.get_board_info()
			print('BoardInfo')
        	print(f'Software ID: v{(b_info.SoftwareId >> 12) & 0xF}.{(b_info.SoftwareId >> 6) & 0x3F}.{b_info.SoftwareId & 0x3F}')
        	print(f'Type of Board: {hex(b_info.Board)}')
			board.close_comm_interface()

Metadata

Release files for coinespy 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coinespy 1.0.8
File Size Uploaded
coinespy-1.0.8.tar.gz 6.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for coinespy 1.0.8
File Interpreter ABI Platform
coinespy-1.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 MB

Release files / coinespy-1.0.8.tar.gz

Download URL coinespy-1.0.8.tar.gz
Size 6.6 MB
Tags Source
SHA-256 checksum
How to use checksums
095e4ec0383f1804d4ff5a155d5c1ca75f4cdd69268b0eb638255bbf4046a1fc
BLAKE2b-256 checksum
How to use checksums
01c484fc49712287ef68a3810fae24021e5cb74d634a43a2b57542d5e2a204bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / coinespy-1.0.8-py3-none-any.whl

Download URL coinespy-1.0.8-py3-none-any.whl
Size 7.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a608f7021d4b48aaec87d03c656d7c6a541f304494dfda88724931e73a9a3d77
BLAKE2b-256 checksum
How to use checksums
7cdf4a6b26d4dd76813fa59e0fa8c8422672c0accb8c27aeaf5d363eb00a95fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

1.0.8 This release

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.1

2 release files

0.8.3

1 release file

0.8.2

1 release file

0.8.1

2 release files

0.8.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page