Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    OSError: the requested operation is not possible when using send_raw()

    Scheduled Pinned Locked Moved FiPy
    1 Posts 1 Posters 24 Views 1 Watching
    Loading More Posts
    • 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.
    • A Offline
      AE print
      last edited by livius

      Hi everyone,
      I hope you are doing well!

      The Pycom board I'm using is (Fipy).
      sysname='FiPy', nodename='FiPy', release='1.20.2.rc7', version='v1.11-6d01270 on 2020-05-04', machine='FiPy with ESP32', lorawan='1.0.2', sigfox='1.0.1', pybytes='1.4.0')

      When I try to send raw WiFi data using send_raw() function, I get the following error:
      "OSError: the requested operation is not possible"

      I saw in an old issue that this function only supports management packets such as Beacon and Probe request, but it did not work for me even for those packets.

      This is the part of the code regarding this issue:

      wlan.promiscuous(True)
      pkt = #b'\x00\x00\x08\x00\x00\x00\x00\x00@\x00\x00\x00\xff\xff\xff\xff\xff\xff\xf0\x08\xd1\xcb\xe1\xd8\xff\xff\xff\xff\xff\xff\x00\x00\x00\x08Pycom AP\x01\t\x03\x12\xc2\x96\x18$0H`\x03\x01\x01'
      
      pkt = b'\x00\x00\x08\x00\x00\x00\x00\x00@\x00\x00\x00\xff\xff\xff\xff\xff\xff<q\xbf\x87m,\xff\xff\xff\xff\xff\xff\x00\x00\x00\x08Pycom AP\x01\t\x03\x12\xc2\x96\x18$0H`\x03\x01\x01'
      
      wlan.send_raw(Buffer=pkt, interface=WLAN.STA)
      

      Thank you in advance!

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • 1 / 1
      • First post
        Last post

      Pycom on Twitter

      Pycom