Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. IRDA communication problem.

IRDA communication problem.

Scheduled Pinned Locked Moved Mobile
helpquestioncomlounge
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joye Liu
    wrote on last edited by
    #1

    :confused:Hello everyone, I write a POCKET PC Irda Chat application. Two POCKET PC transmiss data to each other. When one application is close, then start up again and ready to send data but this action will get a error code=1359. If two devices closed and start up again, the function will work fine. The question is when one closed and never can connect with the other one.Why? Please reply the answer to tsung-yu@yahoo.com.tw simultaneously. Thanks.

    D 1 Reply Last reply
    0
    • J Joye Liu

      :confused:Hello everyone, I write a POCKET PC Irda Chat application. Two POCKET PC transmiss data to each other. When one application is close, then start up again and ready to send data but this action will get a error code=1359. If two devices closed and start up again, the function will work fine. The question is when one closed and never can connect with the other one.Why? Please reply the answer to tsung-yu@yahoo.com.tw simultaneously. Thanks.

      D Offline
      D Offline
      Daniel Strigl
      wrote on last edited by
      #2

      What kind of communication do you use? RAW IR or IR SOCKET communication? Show us the code do you use! Daniel ;) --------------------------- Never change a running system!

      J A 3 Replies Last reply
      0
      • D Daniel Strigl

        What kind of communication do you use? RAW IR or IR SOCKET communication? Show us the code do you use! Daniel ;) --------------------------- Never change a running system!

        J Offline
        J Offline
        Joye Liu
        wrote on last edited by
        #3

        Hello, I use IrComm port and call OpenFile(),WriteFile(),ReadFile() function.And I create two threads,one is for sending and another one is for receving. Joye

        D 1 Reply Last reply
        0
        • D Daniel Strigl

          What kind of communication do you use? RAW IR or IR SOCKET communication? Show us the code do you use! Daniel ;) --------------------------- Never change a running system!

          J Offline
          J Offline
          Joye Liu
          wrote on last edited by
          #4

          Hello, The other question is how to detect a irda device approached or go away. Joye

          F 1 Reply Last reply
          0
          • J Joye Liu

            Hello, I use IrComm port and call OpenFile(),WriteFile(),ReadFile() function.And I create two threads,one is for sending and another one is for receving. Joye

            D Offline
            D Offline
            Daniel Strigl
            wrote on last edited by
            #5

            Try to use the RAW IR port and not the IrCOMM port. How to find the real RAW port index just take a look at Raw IR on Pocket PC. Daniel ;) --------------------------- Never change a running system!

            1 Reply Last reply
            0
            • J Joye Liu

              Hello, The other question is how to detect a irda device approached or go away. Joye

              F Offline
              F Offline
              Frank Siedler
              wrote on last edited by
              #6

              Hi, i handle that with checking a timeout period while sending and receiving ... that works quite good. Greetings, Frank

              1 Reply Last reply
              0
              • D Daniel Strigl

                What kind of communication do you use? RAW IR or IR SOCKET communication? Show us the code do you use! Daniel ;) --------------------------- Never change a running system!

                A Offline
                A Offline
                Anonymous
                wrote on last edited by
                #7

                Hello, Do you have any idea about using IrSock? I need to discover the server using this and actually i want to send/receive packet/file from one device to another device. (ie) HandHeld -To - HandHeld Communication HandHeld - DeskTop PC communication please give me some idea in this regard and let me know if you have any code for to test. thanks, siva

                D 2 Replies Last reply
                0
                • A Anonymous

                  Hello, Do you have any idea about using IrSock? I need to discover the server using this and actually i want to send/receive packet/file from one device to another device. (ie) HandHeld -To - HandHeld Communication HandHeld - DeskTop PC communication please give me some idea in this regard and let me know if you have any code for to test. thanks, siva

                  D Offline
                  D Offline
                  Daniel Strigl
                  wrote on last edited by
                  #8

                  I have written an article how to use IrSock to send and/or receive data from and to a Desktop PC or another Pocket PC. The guys from PocketPCDN are going to translate it to english, because I have written it in german. So, I think they will publish it the next time. Daniel ;) --------------------------- Never change a running system!

                  1 Reply Last reply
                  0
                  • A Anonymous

                    Hello, Do you have any idea about using IrSock? I need to discover the server using this and actually i want to send/receive packet/file from one device to another device. (ie) HandHeld -To - HandHeld Communication HandHeld - DeskTop PC communication please give me some idea in this regard and let me know if you have any code for to test. thanks, siva

                    D Offline
                    D Offline
                    Daniel Strigl
                    wrote on last edited by
                    #9

                    The translation of my IrDA article is ready and published on on the PocketPCDN at http://www.pocketpcdn.com/articles/irda.html. Daniel ;) --------------------------- Never change a running system!

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups