Jump to content

alvarop

Members
  • Content Count

    14
  • Joined

  • Last visited


Reputation Activity

  1. Like
    alvarop got a reaction from GeekDoc in G2553 Hardware UART "Hello World" Example   
    I had the same problem with the switched TX/RX pins on the launchpad. It took me a while to figure that one out...
     
    I wrote my own library for the G2533, but should also work for the C2553.
    The main difference is the addition of a uart_write_escaped function, which is useful while sending data of different lengths (that way you can have start/end bytes, and if your data contains that byte, it escapes it.)
    It also supports a callback function so you can have input processing functions when you receive data.
     
    It's still a work in progress though...
     
    https://github.com/alvarop/msp430-cc250 ... lib/uart.c
  2. Like
    alvarop got a reaction from larsie in CC2500 with mspgcc   
    NOTE: This only applies to people trying to get TI's cc2500 radio libraries compiling under mspgcc.
     
    While helping someone out earlier, I realized other people might have the same problem, so I figured I'd post it here.
     
    For some reason, the SPI timing wasn't entirely working, I 'documented' my problem here: http://e2e.ti.com/support/rf__digital_radio/etc_rf/f/228/t/127759.aspx
     
    Also, if you want a fully working mspgcc version of the cc2500 radio libraries, check out: https://github.com/alvarop/cc430bsn/tree/ez430-rf2500
    (NOTE: most of the 'good' code is on the ez430-rf2500 branch, not under master.)
     
    Look at the readme to see how to build projects and automatically program devices (and assign them addresses!)
    The code under the network/ folder should be a good example of a working master + multiple slaves.
  3. Like
    alvarop got a reaction from krzyk2 in CC2500 with mspgcc   
    NOTE: This only applies to people trying to get TI's cc2500 radio libraries compiling under mspgcc.
     
    While helping someone out earlier, I realized other people might have the same problem, so I figured I'd post it here.
     
    For some reason, the SPI timing wasn't entirely working, I 'documented' my problem here: http://e2e.ti.com/support/rf__digital_radio/etc_rf/f/228/t/127759.aspx
     
    Also, if you want a fully working mspgcc version of the cc2500 radio libraries, check out: https://github.com/alvarop/cc430bsn/tree/ez430-rf2500
    (NOTE: most of the 'good' code is on the ez430-rf2500 branch, not under master.)
     
    Look at the readme to see how to build projects and automatically program devices (and assign them addresses!)
    The code under the network/ folder should be a good example of a working master + multiple slaves.
  4. Like
    alvarop got a reaction from bluehash in CC2500 with mspgcc   
    NOTE: This only applies to people trying to get TI's cc2500 radio libraries compiling under mspgcc.
     
    While helping someone out earlier, I realized other people might have the same problem, so I figured I'd post it here.
     
    For some reason, the SPI timing wasn't entirely working, I 'documented' my problem here: http://e2e.ti.com/support/rf__digital_radio/etc_rf/f/228/t/127759.aspx
     
    Also, if you want a fully working mspgcc version of the cc2500 radio libraries, check out: https://github.com/alvarop/cc430bsn/tree/ez430-rf2500
    (NOTE: most of the 'good' code is on the ez430-rf2500 branch, not under master.)
     
    Look at the readme to see how to build projects and automatically program devices (and assign them addresses!)
    The code under the network/ folder should be a good example of a working master + multiple slaves.
  5. Like
    alvarop got a reaction from Rickta59 in CC2500 with mspgcc   
    NOTE: This only applies to people trying to get TI's cc2500 radio libraries compiling under mspgcc.
     
    While helping someone out earlier, I realized other people might have the same problem, so I figured I'd post it here.
     
    For some reason, the SPI timing wasn't entirely working, I 'documented' my problem here: http://e2e.ti.com/support/rf__digital_radio/etc_rf/f/228/t/127759.aspx
     
    Also, if you want a fully working mspgcc version of the cc2500 radio libraries, check out: https://github.com/alvarop/cc430bsn/tree/ez430-rf2500
    (NOTE: most of the 'good' code is on the ez430-rf2500 branch, not under master.)
     
    Look at the readme to see how to build projects and automatically program devices (and assign them addresses!)
    The code under the network/ folder should be a good example of a working master + multiple slaves.
  6. Like
    alvarop got a reaction from larsie in CC2500 Radio Library   
    I did a major update to the CC2500 library today.
    It's currently used to control an RGB LED light strip wirelessly, but should be easy enough to modify for other stuff. I hope the code is clear-ish and makes sense.
     
    Code: https://github.com/alvarop/msp430-cc2500
     
    Example of RGB LED use: http://blog.alvarop.com/2012/01/cc2500-project-part-6-reorganizing.html
  7. Like
    alvarop got a reaction from MSP430Andy in G2553 Hardware UART "Hello World" Example   
    Anytime a packet is received, an interrupt happens and an interrupt service routine(ISR) is called. This ISR gets the packet from the CC2500. Since people want to do different things with the packets, I chose not to process packets in the ISR.
    The callback function is called after a packet is received and is given the actual packet to process.
    What you do is come up with your own packet processing function and tell the cc2500 library about it. That way it knows who tocall when a packet is received.
     
    The uart_write_escaped() is more for sending whole packets through the serial peripheral to the computer. Normally you just send a stream of bytes. Unfortunately, there is no way for the computer to know when a stream of data begins or ends. This function uses the 0x7E byte as a start and end of packets. This way, the receiver knows when to begin and end capturing data.
    If your data contains a 0x7E, that might confuse the receiver, so you must escape it by preceding it with a 0x7D and modifying it. The receiver must be aware of this to process it accordingly.
     
    The hex_to_string function was just for debugging. When you want to display a value, you usually use printf(). Unfortunately, printf takes a lot of cycles to format the data, and if you're doing time-sensitive stuff, you can't afford the delay. In cases where you don't have full debugging capability, you might want to print out the values of some registers or variables. the hex_to_string() function converts a value to a hexadecimal string.
  8. Like
    alvarop got a reaction from greeeg in CC2500 Radio Library   
    I'm still on the early stages, but I've documented what I have so far here: blog.alvarop.com
     
    I wrote my own radio libraries for the cc2500 to avoid using simpliciTI. They're fairly limited(64-byte packets, 250kbps), but good enough for what I need.
     
    The code is on github right now, but it needs a lot of work. I also have the libraries written to work with msp430-gcc, but those were for my thesis work using the ez430-rf2500.
  9. Like
    alvarop got a reaction from poofay in CC2500 Radio Library   
    I did a major update to the CC2500 library today.
    It's currently used to control an RGB LED light strip wirelessly, but should be easy enough to modify for other stuff. I hope the code is clear-ish and makes sense.
     
    Code: https://github.com/alvarop/msp430-cc2500
     
    Example of RGB LED use: http://blog.alvarop.com/2012/01/cc2500-project-part-6-reorganizing.html
  10. Like
    alvarop got a reaction from bluehash in CC2500 Radio Library   
    I did a major update to the CC2500 library today.
    It's currently used to control an RGB LED light strip wirelessly, but should be easy enough to modify for other stuff. I hope the code is clear-ish and makes sense.
     
    Code: https://github.com/alvarop/msp430-cc2500
     
    Example of RGB LED use: http://blog.alvarop.com/2012/01/cc2500-project-part-6-reorganizing.html
  11. Like
    alvarop got a reaction from gwdeveloper in G2553 Hardware UART "Hello World" Example   
    I had the same problem with the switched TX/RX pins on the launchpad. It took me a while to figure that one out...
     
    I wrote my own library for the G2533, but should also work for the C2553.
    The main difference is the addition of a uart_write_escaped function, which is useful while sending data of different lengths (that way you can have start/end bytes, and if your data contains that byte, it escapes it.)
    It also supports a callback function so you can have input processing functions when you receive data.
     
    It's still a work in progress though...
     
    https://github.com/alvarop/msp430-cc250 ... lib/uart.c
  12. Like
    alvarop got a reaction from oPossum in CC2500 Radio Library   
    I'm still on the early stages, but I've documented what I have so far here: blog.alvarop.com
     
    I wrote my own radio libraries for the cc2500 to avoid using simpliciTI. They're fairly limited(64-byte packets, 250kbps), but good enough for what I need.
     
    The code is on github right now, but it needs a lot of work. I also have the libraries written to work with msp430-gcc, but those were for my thesis work using the ez430-rf2500.
  13. Like
    alvarop got a reaction from RobG in CC2500 Radio Library   
    I'm still on the early stages, but I've documented what I have so far here: blog.alvarop.com
     
    I wrote my own radio libraries for the cc2500 to avoid using simpliciTI. They're fairly limited(64-byte packets, 250kbps), but good enough for what I need.
     
    The code is on github right now, but it needs a lot of work. I also have the libraries written to work with msp430-gcc, but those were for my thesis work using the ez430-rf2500.
  14. Like
    alvarop got a reaction from bluehash in CC2500 Radio Library   
    I'm still on the early stages, but I've documented what I have so far here: blog.alvarop.com
     
    I wrote my own radio libraries for the cc2500 to avoid using simpliciTI. They're fairly limited(64-byte packets, 250kbps), but good enough for what I need.
     
    The code is on github right now, but it needs a lot of work. I also have the libraries written to work with msp430-gcc, but those were for my thesis work using the ez430-rf2500.
×
×
  • Create New...