×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    4

    Problem sending file to PC with python. Can anyone help?

    Hi

    I´m trying to send a file created with a python script and i get a "socket.error: (32, 'Broken pipe')" message. Can anyone help me with this? I already checked my BT configuration and made a sucessful transfer of a file from my device to the PC. The code that tries to send the file is right below:

    from socket import *
    target='00:09:DD:10:09:BE'
    f = u'E:\\System\\Apps\\Python\\My\\TEST.TXT'
    bt_obex_send_file(str(target), 4, f)

    please help me!!!

  2. #2
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Re: Problem sending file to PC with python. Can anyone help?

    Originally posted by wallace_nogueira
    Hi

    I´m trying to send a file created with a python script and i get a "socket.error: (32, 'Broken pipe')" message. Can anyone help me with this? I already checked my BT configuration and made a sucessful transfer of a file from my device to the PC. The code that tries to send the file is right below:

    from socket import *
    target='00:09D:10:09:BE'
    f = u'E:\\System\\Apps\\Python\\My\\TEST.TXT'
    bt_obex_send_file(str(target), 4, f)

    please help me!!!
    What device are you using?

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    4
    I am using a NOKIA N-Gage

  4. #4
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643
    Are you sure that the channel is correct? Try using bt_obex_discover to find out what channel the file transfer service is using.

  5. #5
    Registered User
    Join Date
    Apr 2005
    Posts
    4
    Can i use bt_obex_send_file(str(target), bt_obex_discover(a), f)??????????

  6. #6
    Regular Contributor
    Join Date
    Mar 2006
    Location
    India
    Posts
    138

    Re: Problem sending file to PC with python. Can anyone help?

    Hi
    I want to send a file to PC using Socket Client APIs.
    Plase let me know how I can achieve this.

    Thanks
    anand

Posting Permissions

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