Go to advanced search

by Quercus47
Fri Sep 15, 2017 11:57 pm
Forum: Python
Topic: I2C smbus2 block data
Replies: 10
Views: 9339

Re: I2C smbus2 block data

Let me step back for a moment because right now, I'm skeptical that what I'm trying to do is possible... I've read many posts on using I2C on the RPi and between the RPi and Arduino. Several imply that the RPi has fundamental limitations in its ability to implement I2C, such as no support for second...
by Quercus47
Wed Sep 13, 2017 1:22 am
Forum: Python
Topic: I2C smbus2 block data
Replies: 10
Views: 9339

Re: I2C smbus2 block data

... it should be printing to the console what it is seeing from its end. does this line of code on the Ardunio execute "Serial.println("We got to hole 1");" Do you mean that it should print to the console for purposes of debugging, or because it is somehow related to the i2c process? I'm assuming f...
by Quercus47
Tue Sep 12, 2017 3:25 pm
Forum: Python
Topic: I2C smbus2 block data
Replies: 10
Views: 9339

Re: I2C smbus2 block data

Thanks. Although the register address is part of the official I2C protocol and is implemented in smbus2 (x = bus.read_i2c_block_data(address, 0, numBytes), see the middle 0 parameter), it is not implemented that I can see in the arduino Wire module. I've been presuming that Wire 'hides' this paramet...
by Quercus47
Tue Sep 12, 2017 3:19 am
Forum: Python
Topic: I2C smbus2 block data
Replies: 10
Views: 9339

I2C smbus2 block data

Hello, I'm working on a project exchanging data between an RPi and Arduino, and have been forced to switch to I2C as my communication protocol for several reasons. I've had success using simple read and write requests to pass single bytes of data back and forth. But I'm trying to pass a bunch of byt...
by Quercus47
Sun Sep 10, 2017 2:53 pm
Forum: Python
Topic: Serial Buffer for Incoming Data
Replies: 2
Views: 1221

Re: Serial Buffer for Incoming Data

Also, if the data is being sent as a series of bytes (so no EOL marker); will the buffer reliably keep each byte separate? What is the chance that when reading the data out, ..., 11110000, 11110000, 11110000, ... becomes ..., 01111000, 01111000, 01111000, ... for example?
by Quercus47
Sun Sep 10, 2017 2:46 pm
Forum: Python
Topic: Help with Serial Data
Replies: 3
Views: 601

Re: Help with Serial Data

Mark: I'm inexperienced with using CRC and will need to look into that, thanks for the suggestion. Regarding the FF marker, you are correct that is an issue and I'll need to work up a solution on that. Again, maybe only use 7 of the 8 bits. B.Goode: I've looked at Firmata, as well as I2C and GPIO co...
by Quercus47
Sun Sep 10, 2017 2:30 pm
Forum: Python
Topic: Serial Buffer for Incoming Data
Replies: 2
Views: 1221

Serial Buffer for Incoming Data

I've got a project I'm working on where an Arduino is collecting data from approximately 50 sensors and sending it via serial to the RPi. The data will be coming in a nearly continuous stream. The RPi will be receiving the data, as well as doing other tasks, so it cannot dedicate itself 100% of the ...
by Quercus47
Sat Sep 09, 2017 8:17 pm
Forum: Python
Topic: Help with Serial Data
Replies: 3
Views: 601

Help with Serial Data

As noted in my companion post, I'm working on a project where I will be sending a nearly continuous stream of data from an Arduino to the RPi over serial. I'm struggling on how to "package" the data being sent down the serial bus. As the data comes in, it is imperative that the RPi knows what it is ...

Go to advanced search