Change address of KellerLD device
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- embedded-iot
Research direction
No files or tests are named. Review the Python driver's existing I2C address and CRC handling against the supplied smbus sequence, including programming mode and the new-address write. Done means the driver supports changing a KellerLD device address and pressure can be read afterward with the required CRC behavior.
Written by the indexing model from the issue text.
Description
It will be good if this fuction will be in your code.
I made it by this wa:
`
import smbus
import time
DEVICE = 0x40 # Default device I2C address
COMMAND_MODE = 0xA9
SET_NEW_ADDR = 0x42
SET_NEW_ADDR_HSB = 0x00
SET_NEW_ADDR_LSB = 0x01
bus = smbus.SMBus(1)
#Перевод в режим программирования
bus.write_byte(DEVICE, COMMAND_MODE)
time.sleep(0.01)
#Запись нового адреса
bus.write_i2c_block_data(DEVICE,SET_NEW_ADDR,[SET_NEW_ADDR_HSB,SET_NEW_ADDR_LSB])
time.sleep(0.01)`
After this to read pressure need to turn of CRC section.
- Dominant language
- Python
- Stars
- 1
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bluerobotics/KellerLD-python
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Move to python3 Open
bluerobotics/KellerLD-python#3 · 2 assignees ·
-
bluerobotics/KellerLD-python#1 · 1 assignee ·
All issues in bluerobotics/KellerLD-python
Similar issues
-
bug confirmed issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
open-webui/open-webui#30750 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 90/100