Comments (4)
Thanks
from opencm9.04.
I should mention this causes other parts of the Arduino Stream code to not work as well.
That is if you do something like: Note: XBSerial is defined as Serial2
XBeeSerial.print(F("+++"));
XBeeSerial.flush();
XBeeSerial.setTimeout(20); // give a little extra time
if (XBeeSerial.readBytesUntil('\r', ab, 10) > 0) {
The call to readBytesUntil will not work properly as it loops calling timedRead
int c = timedRead();
Which in Stream.cpp is defined as:
int Stream::timedRead()
{
int c;
startMillis = millis();
do {
c = read();
if (c >= 0) return c;
} while(millis() - _startMillis < _timeout);
return -1; // -1 indicates timeout
}
from opencm9.04.
Hello, @KurtE
Thank you for letting us know about this issue.
you're right.
In order to be compatible with existing Arduino codes, the following must be fulfilled.
The first byte of incoming serial data available (or -1 if no data is available) - int.
But we were just returning the size of the data. That is, if there is no data, it returns 0.
We will fix this and we will test out what you have mentioned and release it as soon as possible.
And,
The reason we did not include the source file is to reduce the build time.
Therefore, the source file is converted to a library file (.a).
If you want a source file, you can get it from this repository.
from opencm9.04.
I have modified the code and confirmed that it works.
However, it may take some time to release.
If you need to use it right away, please copy the lib_f103.a file in the develop branch to the location(refer to picture below) where the ArduinoBoard package is installed.
from opencm9.04.
Related Issues (20)
- br410 uart over ble profile code HOT 2
- Are they a set? OpenCM9.04 Release 1.5.0 and OpenCM9.04 Firmware ver 23. HOT 2
- OpenCM 9.04 model for circuit design programs HOT 6
- Will Wire.h be implemented in hardware? HOT 3
- How to modifying the PWM frequency on the OpenCM9.04 ? HOT 2
- Cant't make OpenCM communicate with sensors via I2C HOT 2
- stdint.h not found error on compile for OpenCM
- ros2 micro-ros support
- Arduino IDE Board Manager cannot install OpenCM board HOT 2
- Arduino IDE - Uploading error: exit status 0xc0000135 HOT 2
- Support all of the Arduino installs - Now including ARM64 HOT 1
- Serial Port problems with <ros.h> on arduino IDE HOT 5
- Conflict with wire.h HOT 1
- Issues about sync read and its examples HOT 2
- Problem with example "n_Bulk_read_write" (groupBulkWrite addparam failed) HOT 7
- [OpenCM904 Not Detected UART Flash Loader] HOT 3
- [3.7.21][C++][USB2Dynamixel][XM540-W150-R] Issue: Writing and reading negative value of the current HOT 1
- Bootloader source HOT 1
- openCM904C Serial/UART Not working HOT 8
- Can't connect to MCU with ST-LINK/V2 and ST-LINK Utility HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencm9.04.