TX/RX with CC1101 Texas


+ Reply to Thread
Results 1 to 14 of 14

Thread: TX/RX with CC1101 Texas133 days old

  1. #1
    Junior Member Giuseppe's Avatar
    Join Date
    Jul 2019
    Posts
    11
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    383.45 MB

    0 Not allowed!

    Default TX/RX with CC1101 Texas

    Hello everyone
    I intend to start doing a bit of practice with the cc1101 to make a communication between 2 modules. I was thinking of using the first cc1101 module managed by a 16f1826 mcu that dialogues with a second module always managed by another 16f1826. initially I was thinking of sending an implementation request to the second module with the first module. after receiving the request, the second module must implement it and send confirmation of its implementation to the first module.
    Have any of you ever used CC1101?
    thank you all

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,777
    Thumbs Up
    Received: 83
    Given: 34
    Total Downloaded
    4.30 GB

    0 Not allowed!

    Default Re: TX/RX with CC1101 Texas

    Hi Giuseppe
    I see there is some code for an Arduino on this site. It might give you a start.
    https://www.elecrow.com/wiki/index.p..._CC1101_Module
    John

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    Junior Member keytapper's Avatar
    Join Date
    Jun 2019
    Posts
    79
    Thumbs Up
    Received: 2
    Given: 3
    Total Downloaded
    230.41 MB

    0 Not allowed!

    Default Re: TX/RX with CC1101 Texas

    Quote Originally Posted by John Drew View Post
    Hi John,
    Giuseppe is my penpal and I'm helping him for this matter. The link you posted is already under my microscope for dissecting and I tried to translate it into Proton Basic. That's came rather fair, but Giuseppe has the modules, therefore I can't go much further. We got this package
    He may present the translated source, but we are finding difficulties to prove that the library is working as expected. I suggested to try one side of the transmission to use the Arduino in order to study what could be the fault.

    Perhaps I'll will study the part which is referring to a different C source and see whether we are able to get a little communication. Later we may try to translate it on the Proton Basic source.

    The case is about to have to use global variables, there's no (yet) a way to pass the variables like the proc or like mikroE basic. The matter is not the RAM consumed, it would take the same amount, but the risks of name clashes, which is anyways there for all languages.
    I mean this because will easy the steps to translate from a wiring source to basic.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,209
    Thumbs Up
    Received: 74
    Given: 180
    Total Downloaded
    5.15 GB

    0 Not allowed!

    Default Re: TX/RX with CC1101 Texas

    It's always a problem when two things must work before anything appears to happen. Personally find compilable/compiled code that both works and runs on any device that I have (usually Arduino, but also CCS or Mikro which have lots of hardware examples) to check the hardware is working. Also once you get it working probably best to migrate from plugin breadboard, RF and breadboard are a bad combo.
    George.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    Junior Member Giuseppe's Avatar
    Join Date
    Jul 2019
    Posts
    11
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    383.45 MB

    0 Not allowed!

    Default Re: TX/RX with CC1101 Texas

    Hello

    Here are the 2 programs translated into basic based on the quoted Arduino library.

    First link for the cc1101 receiver : https://pastebin.com/9iTaEWzM

    Second link for the cc1101 transmitter :https://pastebin.com/QJjHiYfs

    Report possible compilation error
    When a define line ends with a single apotroph without comment, it creates errors in the compilation. For example, on line 120 of the receiving program, if I remove the ( and put the apotrophic error on line 265

    thank you so much





  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #6
    Junior Member Giuseppe's Avatar
    Join Date
    Jul 2019
    Posts
    11
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    383.45 MB

    0 Not allowed!

    Default Re: TX/RX with CC1101 Texas

    Furthermore, it is necessary to understand also if setting the 6 bits in the registers of the cc1101 the register setting is taken the same?

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #7
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,777
    Thumbs Up
    Received: 83
    Given: 34
    Total Downloaded
    4.30 GB

    0 Not allowed!

    Default Re: TX/RX with CC1101 Texas

    Hello Giuseppe
    Comments are not allowed after $Define
    There's a good reason for it, I think it's tied in with the pre-processor.
    John
    Last edited by John Drew; 19th July 2019 at 08:26. Reason: I just read the manual Page 461

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #8
    Fanatical Contributor top204's Avatar
    Join Date
    Feb 2002
    Posts
    3,399
    Thumbs Up
    Received: 290
    Given: 141
    Total Downloaded
    1.68 GB

    0 Not allowed!

    Default Re: TX/RX with CC1101 Texas

    Comments are allowed on the line of a standard $define, however, a comment apostrophe on its own with no text after it makes the $define add the next line to the definition. See the preprocessor section in the manual for examples. This is standard practice for most preprocessors that use a comment character to continue a line.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #9
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,777
    Thumbs Up
    Received: 83
    Given: 34
    Total Downloaded
    4.30 GB

    0 Not allowed!

    Default Re: TX/RX with CC1101 Texas

    Whoops
    John

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #10
    Junior Member keytapper's Avatar
    Join Date
    Jun 2019
    Posts
    79
    Thumbs Up
    Received: 2
    Given: 3
    Total Downloaded
    230.41 MB

    0 Not allowed!

    Default Re: TX/RX with CC1101 Texas

    As a normal user, reading the manual is rather the last chance. I confess that I haven't noted such existence.
    So for such case it is preferred to comment by a semicolon, which won't cause such oversights.

    Anyway the project still a bit frozen to find all specs that will make it setting the module to work.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #11
    Junior Member Giuseppe's Avatar
    Join Date
    Jul 2019
    Posts
    11
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    383.45 MB

    0 Not allowed!

    Default Re: TX/RX with CC1101 Texas

    Ok, then always put a ( after the define

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #12
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,209
    Thumbs Up
    Received: 74
    Given: 180
    Total Downloaded
    5.15 GB

    0 Not allowed!

    Default Re: TX/RX with CC1101 Texas

    I've found through painfull experience that (and I may be wrong here) you should avoid having comments on the same line as $if. So for example
    $if blabla = 1 ' some inane comment
    would actually be comparing the variable blabla with "1 ' some inane comment".

    Best just to avoid comments on lines with preprocess stuff, use the line before or after.

    This is because the preprocessor works be text subsitution.
    George.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #13
    Junior Member keytapper's Avatar
    Join Date
    Jun 2019
    Posts
    79
    Thumbs Up
    Received: 2
    Given: 3
    Total Downloaded
    230.41 MB

    0 Not allowed!

    Default Re: TX/RX with CC1101 Texas

    That was mine translation that took some automated process. So I just replaced the original // with the equivalent in basic of apostrophe symbol. I was unaware that the part of a preprocessor sentence is taken verbatim.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #14
    Junior Member Giuseppe's Avatar
    Join Date
    Jul 2019
    Posts
    11
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    383.45 MB

    0 Not allowed!

    Default Re: TX/RX with CC1101 Texas

    After a while I am thinking of resuming the project in hand. Do any of you have any news on this?

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. Replies: 5
      Last Post: 16th February 2010, 19:11

    Members who have read this thread since 10th November 2019, 02:36 : 2

    Actions :  (Set Date)  (Clear Date)

    You do not have permission to view the list of names.

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts