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(f"COINES SDK version: {board.lib_version}")
			print(
				f'BoardInfo: HW/SW ID: {hex(b_info.HardwareId)}/{hex(b_info.SoftwareId)}')
			board.close_comm_interface()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coinespy-1.0.4.tar.gz (6.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coinespy-1.0.4-py3-none-any.whl (7.5 MB view details)

Uploaded Python 3

File details

Details for the file coinespy-1.0.4.tar.gz.

File metadata

  • Download URL: coinespy-1.0.4.tar.gz
  • Upload date:
  • Size: 6.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for coinespy-1.0.4.tar.gz
Algorithm Hash digest
SHA256 b821a513ecbad4858fb84d055d6c023447ee400b083d24b34381ca748157053c
MD5 63112191f888d1a51434a12aa3536a17
BLAKE2b-256 a38a533fe5e53ff1f98294bbe1af5c2f1b17e8d168a5f2d5340da6dbb7355b1d

See more details on using hashes here.

File details

Details for the file coinespy-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: coinespy-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for coinespy-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 47f225c82f8e3f9fd71992beb0037b9d86d40003eedcd848cb4c1440d18aa18b
MD5 ee0155013281ed7e819a25dbd5f459c9
BLAKE2b-256 6677e7feb2d52bbe76b43a5b4f731e108dd1e0986bef305bc671af968a05b95f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page