简体   繁体   English

BeagleBone Black AP上的Python组播

[英]Python Multicast on BeagleBone Black AP

I'm trying to setup UDP multicasting on a BeagleBone Black to broadcast data to two windows tablets and also my windows PC as a test device, all of which are connected to the BBB wireless hotspot. 我正在尝试在BeagleBone Black上设置UDP多播,以将数据广播到两个Windows平板电脑以及我的Windows PC作为测试设备,所有这些设备都连接到BBB无线热点。

I have standard UDP communications running between the BeagleBone and my PC, and the BeagleBone and one windows tablet, but I would like to be able to add new tablets to the network without having to add their IP addresses to the BeagleBone code, so that led me to multicasting. 我在BeagleBone和PC以及BeagleBone和一个Windows平板电脑之间运行标准的UDP通信,但是我希望能够将新的平板电脑添加到网络中,而不必将其IP地址添加到BeagleBone代码中,因此我要多播。

So far I've tried test scripts from the below three links as well as a few others and haven't had any luck. 到目前为止,我已经尝试了以下三个链接以及其他一些链接中的测试脚本,但还没有遇到任何麻烦。 From reading through the tutorials in those links it seems like people have had problems with platform specific parameters (see the comments in link 1), also link (2) has comments from the authors that seem to indicate they weren't able to consistently get their test scripts to work. 通过阅读这些链接中的教程,人们似乎在使用平台特定参数时遇到了问题(请参阅链接1中的注释),并且链接(2)中有作者的评论,似乎表明他们无法始终如一地获得他们的测试脚本可以正常工作。

Is anyone aware of platform specific setup necessary for the BeagleBone Black to allow multicasting on its hotspot/access point? 是否有人知道BeagleBone Black允许在其热点/接入点上进行多播所需的特定于平台的设置?

If anyone has successfully run a python multicasting example with devices connecting to the BBBW hotspot it'd be awesome to hear about it and gain some confidence that this is not a black hole! 如果有人通过连接到BBBW热点的设备成功运行了python多播示例,那么听到它真是太棒了,并且一定可以确信这不是一个黑洞!

(1) Multicast in Python --- platform specifics between mac and windows (1) Python中的多播 -Mac和Windows之间的平台详细信息

(2) https://wiki.python.org/moin/UdpCommunication --- comments posted throughout this indicate it may just not work (2) https://wiki.python.org/moin/UdpCommunication ---在此发布的评论表明它可能无法正常工作

(3) https://pymotw.com/3/socket/multicast.html --- I've tried the test scripts in here with no luck (3) https://pymotw.com/3/socket/multicast.html-我在这里尝试过测试脚本没有任何运气

I don't have a BBBW but I do have a BeagleBone Green Wireless, which reportedly uses the same wireless Texas Instruments chip (WL1835MOD). 我没有BBBW,但确实有BeagleBone Green Wireless,据说它使用相同的无线Texas Instruments芯片(WL1835MOD)。

I found that this chip doesn't support ad-hoc WIFI , but it seems to be part of Texas Instruments "WiFlink 8" family which does claim to support multicast. 我发现该芯片不支持ad-hoc WIFI ,但它似乎是德州仪器(TI)的“ WiFlink 8”系列的一部分, 系列声称支持多播。

Multicast packets will not make it past your router unless you have a specialized (= expensive, not consumer-grade) router, so make sure all the devices you want to multicast to are on the same subnet. 除非您拥有专用的(=昂贵的,不是消费级的)路由器,否则组播数据包将不会经过路由器,因此请确保要组播的所有设备都在同一子网上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM