Comments (10)
Can you switch to latest version of the protocol on the master branch.
Half-duplex is removed from the library. There are only 2 options now: plain HDLC framing with CRC checks and Full-Duplex protocol.
from tinyproto.
Normally I worked on version 0.9.3 in PlatformIO. I read your response then I uploaded 0.12.1. I tried many kinds of tests. Problem is the same, It doesn't work both light and FD with Pi pico Serial1. It worked with Arduino Nano but didn't work with Pi Pico. For example sketch_light.ino code tried in both, Nano board blinked TX led but Pi pico TX led didn't blink.
from tinyproto.
Ok, I understand. Then I have the question: Which package do you use in Arduino IDE for Pi PICO? Arduino Mbed OS RP2040 Boards?
I believe that something is wrong with the HAL layer support in tinyproto.
from tinyproto.
PlatformIO uses official Arduino Mbed Core framework. I can call Mbed OS API's in code. Some information in Arduino blog. Someone use another Arduino Core for RP2040 like this. I used Pi Pico board in tests.
from tinyproto.
Hi,
it's me again. I don't have the PICO board by hand, but if you look to the beginToSerial() method implementation, you will find:
void Light::beginToSerial()
{
Serial.setTimeout(100);
begin(writeToSerial, readFromSerial);
}
So beginToSerial()
uses Serial
port, but NOT Serial1
. These ports are different. So, you need to use the method, corresponding to your port, I believe it is beginToSerial1
.
from tinyproto.
Hi,
Sorry your waste of time, It's my fault. It solved after that defined #define HAVE_HWSERIAL 1
. I'm novice in programming. Thank you for all help, i solved through your help. But I have a question. Why did you delete Half duplex in TinyProto? It works in my tests on RS485. Is there any plan in future again add Hd.
from tinyproto.
All higher level protocols: FD, Light, HD, - are built on top of src/proto/hdlc
. In the latest versions on the master and cpp_api branches low level hdlc has been reworked greatly. So, I just didn't have enough time to rework and support the half-duplex version.
So the answer is simple: just lack of time.
from tinyproto.
Okay, thank you for reply and interest. I hope you rework on HD in the long term.
Best Regards.
from tinyproto.
I'm glad that finally you solved the problem with Pi Pico board.
I hope you rework on HD in the long term.
Can you submit new issue on that, and give there a little more points, why HD is more preferably than FD or plain HDLC frames in your case?
Thank you.
from tinyproto.
I would like fast installation on RS485. In the future I may work on HDLC frame.
So the answer is simple: I am beginner at now :)
from tinyproto.
Related Issues (20)
- Integrate 1-Wire protocol to tinyproto library
- Software serial support HOT 2
- Pyserial and tinyproto example HOT 10
- proto.run_rx hangs indefinitely in Arduino HOT 1
- Unreliable communication with tinyproto HOT 2
- TinyProtocolStream - encapsulate tinyproto into Arduino Stream for ease of use HOT 2
- License? HOT 2
- Multidrop / Master+Slaves on RS485 or similar HOT 17
- Questions on connection management HOT 3
- IFd class does not allow station address intiailization. HOT 5
- Add support for ESP32 "BluetoothSerial.h"? HOT 1
- Simple build fails on Teensy 4.1 HOT 1
- Build with visual studio works, but unable to do a proto begin --> m_handle=null HOT 3
- Connection is silently re-established
- Connection breaks down if nothing is sent for >= keep alive timeout HOT 2
- Unable to successfully begin() Python Tinyproto when using crc settings different than CRC16 HOT 1
- Unable to connect to tinyproto after second connection. HOT 1
- riscv processor based esp32 series support(and more) HOT 7
- Arduino due doesn't seem to work HOT 2
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 tinyproto.