Transmitting Wireless Protocols

This is a discussion on Transmitting Wireless Protocols within the C Programming forums, part of the General Programming Boards category; Hi guys, I'm encounting some problems here in programming microcontroller. I wana use a pic microcontroller which is connected to ...

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    8

    Transmitting Wireless Protocols

    Hi guys, I'm encounting some problems here in programming microcontroller. I wana use a pic microcontroller which is connected to a wireless module to transmit a protocols out. How do we write the c language for transmitting the protocols normally? I just wanna get some examples....
    Can u guys please teach me?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Some questions spring to mind:
    What protocol?
    What model of PIC?
    What model of Wireless module?
    Does the manufacturer of the Wireless module not have some examples of how to use it?

    How much C programming experience do you have?
    How much assembler do you know?
    Have you ever programmed something that talks directly to hardware devices?

    Unfortunately, I don't think answering these questions will give you a direct answer, but perhaps they will at least give us something we can work with - as your current question is a bit like me walking into a car mechanics shop asking "How do I put a turbo on my engine?" - to achieve that I would at least have to have:
    - prior experience in modifying engines
    - a decent workshop with sufficient tools
    - plenty of time.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    8
    I'm using the Atmel 894051 microcontroller. the wireless module is the XBEE pro. I need to send wireless protocols out to a receiver which is the XBEE pro also. I jz wan some example as how to write the source code especially the transmitting protocol part.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Now that you have answered the first two, perhaps can you answer the other 6 questions I asked?

    It may not be very difficult to write the code for someone who has decent experience, but if you have never written code for hardware before, I think you may need several weeks to get it right.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I would google and/or call the wireless manufacturer for info and examples. Hard to believe they wouldn't include this info with their product.

  6. #6
    Registered User
    Join Date
    Jul 2008
    Posts
    8
    no example given cos no need to program the wireless module, Jz wan to program the microcontroller. I got a bit of experience in programming hardware...especially programming the microcontroller. plz teach me...

  7. #7
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Adak View Post
    I would google and/or call the wireless manufacturer for info and examples. Hard to believe they wouldn't include this info with their product.
    I would think that if they want to sell at least a few, they do have some examples. However, they may of course assume that the user has some idea of how to program a serial port, as the prototype/sample board that they show in the datasheet appears to have a 9-pin DSUB that would connect to a PC, so my guess would be that any sample software is just a windows/linux program to send an receive data via the serial port API.

    Further, just sending bytes on a serial link over RF is not necessarily a good idea. For data safety you'd need SOME sort of protocol and verification of the data.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  8. #8
    Registered User
    Join Date
    Jul 2008
    Posts
    8
    the manufacturer jz produce the wireless module....it is for transmit n receive wirelessly only. i jz wanna modify it to connect wif a microcontroller so that i can send some wireless protocols

  9. #9
    Registered User
    Join Date
    Jul 2008
    Posts
    8
    Do u guys know what functions n variables we have to use to transmit wireless protocols? like transmit this: 02 80 81 80 8F 33 03

  10. #10
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by ahgan84 View Post
    Do u guys know what functions n variables we have to use to transmit wireless protocols? like transmit this: 02 80 81 80 8F 33 03
    There is no standard way to do that. You need to look into the specs of that particular Atmel part, and how the serial port of that device works.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  11. #11
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,532
    Perhaps writing in English would help.
    What the hell does "i jz wanna modify it to connect wif" mean?
    http://www.catb.org/~esr/faqs/smart-...html#writewell
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  12. #12
    Registered User
    Join Date
    Jul 2008
    Posts
    8
    I just wanna know how to write the function normally....Just normally. It musn't be the best answer guys. Just give me some idea...

  13. #13
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Do you understand the concept of "There is no standard way to do this" - there isn't a magical function that does this for you, unless someone else has the same type of device and has already written one.

    Fortunately, there are still challenges of writing code for some things. Otherwise I (and my wife and two children) would be out of a job -> no money -> no mortgage being paid -> homeless.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Is my laptop wireless G or N..??
    By The Brain in forum Tech Board
    Replies: 2
    Last Post: 12-26-2007, 04:12 AM
  2. Upgrading my wireless
    By Dark_Phoenix in forum Tech Board
    Replies: 1
    Last Post: 04-15-2007, 09:29 AM
  3. Wireless Internet?
    By Mustang1968kid in forum Tech Board
    Replies: 5
    Last Post: 11-30-2005, 09:12 AM
  4. Replies: 6
    Last Post: 08-26-2004, 12:36 AM
  5. wireless networks
    By metsman20 in forum Tech Board
    Replies: 3
    Last Post: 12-17-2003, 08:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21