Git Product home page Git Product logo

Comments (28)

ghoti57 avatar ghoti57 commented on July 26, 2024

Good luck with that :-)

The code has a lot of atmega specific code for the hardware interface.
Because of the overhead the code doesn't use the Arduino IO functions but drives the GPIO pins directly via the registers.

TX uses the SPI interface to fill the cc1101 TX fifo, but, because of the jitter on the incoming signals from the other devices, you can't use the cc1101 rx fifo to capture the data because it assumes everything is synchronous.

If you try a port then I suggest you get the SPI interface to the CC1101 working first and then the HW UART interface between the STM and the CC1101. This is just an ISR triggered by the UART that reads the UART RX data into a buffer.

If the STM hasn't got a HW UART available then you'll need to be good at coding. I suspect the STM8 HW UART has been connected to the host USB interface so this is going to be the case.

The atmega328p SW UART code uses a HW interrupt to capture the timing of the signal edges and then a SW trap to process the captured data edges to generate an RX byte. This is very processor heavy and every cycle is critical to keep up with the data when it arrives. The SW UART won't work on an atmega clocked at less than 16MHz because there aren't enough instruction cycles available.

The SW UART code is not as good at RXing radio messages as the HW UART code.

Using a simple USB logic analyser ( e.g. https://www.amazon.co.uk/Hobby-Components-24MHz-Analyser-1-1-16/dp/B00DAYAREW) there are some debug lines still in the code that you can use to drive spare GPIO pins that will show you how much processor time you're using in the HW and SW ISR functions.

The frame, message and host interface code should work without significant changes.

That's all the help I can offer since I have zero STM knowledge.

If you don't understand what I've said above give up now.

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

ghoti57 avatar ghoti57 commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

ghoti57 avatar ghoti57 commented on July 26, 2024

from evofw3.

ghoti57 avatar ghoti57 commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

ghoti57 avatar ghoti57 commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

ghoti57 avatar ghoti57 commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

ghoti57 avatar ghoti57 commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

ghoti57 avatar ghoti57 commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

ghoti57 avatar ghoti57 commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

Hi. The device I got worked perfectly. You do need a reasonably good soldering station and good eyesight, magnifier. I used to rework SMD chips for a living but my eyesight is not what it used to be, but managed to do it. Thanks for all your help. I can recommend the kit I ordered as the service was good and they sent a booklet on assembly and preloaded the firmware. I would advise anyone avoid eBay sellers claiming to cover all frequency bands. I had to explain the regulations, technicalities etc to the seller who insulted my knowledge and claimed he wasn't selling what turned out to be an ebyte 433mhz module but he was selling a CC1101. He couldn't understand that once in a circuit the circuit is what needs to be tested and approved. I also did RG approvals in a lab for a few years and he still wouldn't have it. Luckily eBay stepped in and refunded.

from evofw3.

ghoti57 avatar ghoti57 commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

ghoti57 avatar ghoti57 commented on July 26, 2024

from evofw3.

pdbayes avatar pdbayes commented on July 26, 2024

from evofw3.

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.