Want to write a python code for sending and receiving frames over wifi/wlan0 using python

42 views
Skip to first unread message

T Obulesu

unread,
Oct 12, 2017, 4:10:12 AM10/12/17
to Python Programming for Autodesk Maya
I want to send some frames defined by me{Example, [0x45,0x43,0x32]} to the raspberry pi from any machine(Desktop/Laptop/other raspberry pi). But I want to send those frames over wifi or use wlan0 using python3.4 Any suggestions?

Marcus Ottosson

unread,
Oct 12, 2017, 5:07:29 AM10/12/17
to python_in...@googlegroups.com
Frames?

On 12 October 2017 at 09:10, T Obulesu <obul...@gmail.com> wrote:
I want to send some frames defined by me{Example, [0x45,0x43,0x32]} to the raspberry pi from any machine(Desktop/Laptop/other raspberry pi). But I want to send those frames over wifi or use wlan0 using python3.4 Any suggestions?

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/c832c8f4-5cc8-482d-abfe-12e8b3bfa5c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Justin Israel

unread,
Oct 12, 2017, 6:13:14 AM10/12/17
to Python Programming for Autodesk Maya


On Thu, Oct 12, 2017, 9:10 PM T Obulesu <obul...@gmail.com> wrote:
I want to send some frames defined by me{Example, [0x45,0x43,0x32]} to the raspberry pi from any machine(Desktop/Laptop/other raspberry pi). But I want to send those frames over wifi or use wlan0 using python3.4 Any suggestions?

Did you try searching for examples of how to send raw packets over a socket in python? Here is an example:


Does that help? 

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.

T Obulesu

unread,
Oct 12, 2017, 8:09:25 AM10/12/17
to Python Programming for Autodesk Maya
Yes..
That helps...
But here I eant to have an option to select the port: ethernet/ wlan0 ans send my packets through the selected port.
My setup is as follows:
My raspberry pi and my laptop both are connected to the same WiFi and ports are wlan0.
And it can be directly connected to the laptop using Ethernet cable. If this is the case, I wnat to change the port  to the eth0 and send the packets



On Thursday, 12 October 2017 15:43:14 UTC+5:30, Justin Israel wrote:


On Thu, Oct 12, 2017, 9:10 PM T Obulesu <obul...@gmail.com> wrote:
I want to send some frames defined by me{Example, [0x45,0x43,0x32]} to the raspberry pi from any machine(Desktop/Laptop/other raspberry pi). But I want to send those frames over wifi or use wlan0 using python3.4 Any suggestions?

Did you try searching for examples of how to send raw packets over a socket in python? Here is an example:


Does that help? 

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

Justin Israel

unread,
Oct 12, 2017, 2:43:49 PM10/12/17
to Python Programming for Autodesk Maya


On Fri, Oct 13, 2017, 1:09 AM T Obulesu <obul...@gmail.com> wrote:
Yes..
That helps...
But here I eant to have an option to select the port: ethernet/ wlan0 ans send my packets through the selected port.
My setup is as follows:
My raspberry pi and my laptop both are connected to the same WiFi and ports are wlan0.
And it can be directly connected to the laptop using Ethernet cable. If this is the case, I wnat to change the port  to the eth0 and send the packets

I believe ports are a concept defined at the IP network layer, which you are choosing to skip by doing raw binding to an interface. 



On Thursday, 12 October 2017 15:43:14 UTC+5:30, Justin Israel wrote:


On Thu, Oct 12, 2017, 9:10 PM T Obulesu <obul...@gmail.com> wrote:
I want to send some frames defined by me{Example, [0x45,0x43,0x32]} to the raspberry pi from any machine(Desktop/Laptop/other raspberry pi). But I want to send those frames over wifi or use wlan0 using python3.4 Any suggestions?

Did you try searching for examples of how to send raw packets over a socket in python? Here is an example:


Does that help? 

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/8e58fc03-c368-406b-a243-2b0a7c45e506%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages