Giter Club home page Giter Club logo

Comments (10)

lexus2k avatar lexus2k commented on May 28, 2024

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.

asevim avatar asevim commented on May 28, 2024

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.

lexus2k avatar lexus2k commented on May 28, 2024

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.

asevim avatar asevim commented on May 28, 2024

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.

lexus2k avatar lexus2k commented on May 28, 2024

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.

asevim avatar asevim commented on May 28, 2024

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.

lexus2k avatar lexus2k commented on May 28, 2024

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.

asevim avatar asevim commented on May 28, 2024

Okay, thank you for reply and interest. I hope you rework on HD in the long term.
Best Regards.

from tinyproto.

lexus2k avatar lexus2k commented on May 28, 2024

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.

asevim avatar asevim commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.