问题标签 [transmission]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
7 回答
31475 浏览

raspberry-pi - 传输远程命令出错并出现意外响应:

我正在运行最新的 Raspbian 发行版并且刚刚安装了这些transmission软件包。

但是,每当我运行transmission-remote命令时——比如说,改变一些基本配置——我总是遇到同样的错误:

我找不到任何好的文档或教程来进行故障排除,我怀疑我错过了导致此错误的初始设置过程中的一个步骤。我已经尝试设置用户名/密码,即

它成功了,但它仍然为所有其他命令抛出相同的“意外响应”错误。

启动transmission-daemon也不起作用:

有谁知道为什么会发生这种情况?

0 投票
1 回答
4117 浏览

networking - 计算网络的传输延迟

我有 N 个大小为 L Mbits 的数据包,我想将它们从 A 发送到 B,中间有两个路由器,每个链路都有不同的传输速率(例如 A 到 router1 的链路是 3Mbps,router1 到 router2 5Mbps 和 router2 到 B 8Mbps ),那么如何计算传输延迟呢?

0 投票
2 回答
2596 浏览

networking - 网络传输和传播延迟

考虑通过两个链路传输一条 10,000 位的消息,通过路由器从源主机到目标主机(见下图)。路由器使用存储和转发分组交换。源主机和路由器之间的链路是1000米长,路由器和目的主机之间的链路也是1000米长。两条链路的传输速率均为 1 Mbps。假设传播速度为 2*10^8 m/sec。假设唯一的延迟是传输延迟和传播延迟。

a.假设消息作为一个 10,000 位的数据包发送。将消息从源发送到目的地的总延迟是多少?

b.现在假设消息被分成四个数据包,每个数据包 2,500 位。将消息从源发送到目的地的总延迟是多少?

在此处输入图像描述

嗨,我是网络新手,我的作业需要一些帮助。我认为第一个可能是 dprop+dtrans = 1000/(2*10^8) + 10000/(10^6),但不确定。任何人都可以提供一些帮助吗?

0 投票
1 回答
770 浏览

php - 我可以将完整的 MySQL 数据库从基于 PHP 的站点移动到 Django 应用程序吗?

我们有一个带有 MySQL 数据库的基于 php 的站点。我们有大量的用户、订单、发票等数据。现在我们想使用 Django 和 MySQL 甚至 MongoDB 重新设计我们的站点应用程序。

对我们来说,将所有桌子完全按照以前的状态移动非常重要,而且不会造成任何损失。有没有办法做到这一点?我们可以在 Django 中定义新模型并将它们重定向到具有相同名称的现有数据表,然后导入以前的数据库吗?

如果真的有办法做到这一点,那是什么?如果有人知道实用的方法,我将不胜感激。

0 投票
1 回答
364 浏览

network-protocols - Pushwoosh - 谷歌云消息 - 传输

我必须在学校写关于 Pushwoosh 和 Google Cloud Messaging 的传输。例如,当通过远程 API 从服务器发送通知时使用哪种协议。所以我想知道 Pushwoosh 一般是如何工作的,使用哪些协议。

我不太了解数据传输(http等),所以我很难找到它。如果有人知道 Pushwoosh 是如何工作的,那么得到答案会很棒。

谢谢!

0 投票
4 回答
6599 浏览

docker - 带有 OpenVPN/privateinternetaccess.com 端口转发的 Docker 容器内的传输守护进程

我一直在尝试将我的种子箱移动到 Docker 容器中,我认为我遇到了鸡/蛋问题:

当前的种子箱设置通过 privateinternetaccess.com 运行 OpenVPN(所有互联网都通过 VPN)。我有一个脚本(https://github.com/firecat53/pia_transmission_monitor),它使用 PIA 检查分配的转发端口,然后使用端口和绑定地址相应地更新传输守护进程。

问题是分配的转发端口每小时检查一次,它可以随时更改……我需要在运行 Docker 容器之前知道端口,这样我就知道哪些端口要通过/从容器传递。我也打算在容器内运行 OpenVPN,但在事先不知道分配给容器的端口的情况下,我不确定这是否可行。

一个非常老套的解决方案可能是在一个容器内运行 OpenVPN 和另一个 Docker 守护程序,然后在 OpenVPN 容器内运行传输容器。这似乎很复杂,所以我还没有真正尝试过。

我在这里错过了一些非常明显的东西吗?还有其他想法吗?

谢谢!

斯科特

0 投票
1 回答
445 浏览

matlab - 使用 Matlab Simulink 在 DVB-T 通道上传输多媒体文件的尝试

我在 Matlab Simulink 模型仿真中遇到问题。我正在尝试在 Simulink 中通过 DVB-T 类型通道实现视频文件的传输。我使用 Matlab 的 DVB-T 演示:

演示中的 Matlab DVB-T 通道模型概述

但我无法通过此通道发送实际文件。我只是试图用“来自多媒体文件”块替换“随机整数”输入块,但正如预期的那样,我得到了输入/输出错误,如下所示:

无法将基于样本的信号从“commdvbt/From Multimedia File”的输出端口 1 传播到“commdvbt/(204,188) Shortened RS Encoder”的输入端口 1,因为此输入端口需要基于帧的信号。考虑在信号路径中插入一个缓冲区。

我尝试使用具有各种设置的缓冲区,但无法完成这项工作。我做了互联网研究,但找不到相关信息。我怎样才能做到这一点?

0 投票
0 回答
186 浏览

java - 发送较大数据时的 BluetoothChat 示例传输错误

我正在尝试为 Android 编写一个在两部手机之间交换数据的应用程序。(Android 4.2.1 和 4.4.2)作为基础,我使用了 android 教程部分中的 BluetoothChat 示例。我的问题是:当写入大量数据(>1kB)时,接收方经常得到错误的数据。有时它接收看似无关的数据,通常它接收许多连续 0 的部分,或者有时它甚至接收以前在同一消息中接收到的部分。

处理传输的方式如下:首先我发送一个 4 字节的头,它提供了以下消息的长度和它的消息类型(只是一个字节,指示程序如何理解消息)然后是实际的消息.

我使用了 BluetoothChat 中的 ConnectedThread,但实现为 AsyncTask,否则它与接收完全相同,处理如下:(如上所述)

发送方完全相同

测试多个字符串并通过简单地调用 string.getBytes() 进行转换,结果:

130字节字符串被​​正确传输,

1443 字节字符串被​​正确传输,

51948 字节字符串在大约 900 字节后失败。日志将正确写入字符串,直到它只打印奇怪的“菱形问号” - 符号。

但是,失败的时刻是可变的。

outputStream.write(bytes) 可以处理多少字节有限制吗?有人知道为什么通过 Streams 简单地发送字节会失败吗?一些内部缓冲区问题?也许是一个循环缓冲区(因为有时旧的消息部分会重复)?

非常感谢您的帮助,由于这个问题,我已经浪费了几个小时(尝试编写和阅读较小的块,但这并没有太大帮助)

0 投票
2 回答
249 浏览

image - Transmission of images (image descriptors) over internet

I need to send images or image descriptors from a client (smartphone) to a server (processing machine). The server tries to recognize the images/features in a video stream and sends back the IDs of the detected ones + maybe some additional data. Normally the recognition process does not last more than several seconds (considering a big number of images to be recognized). Ideally the processing server responds within milliseconds.

The images to be detected are sent in the "setup phase" (no problem if there's a big delay) and then the sampled video frames, where the recognition process is performed on, are being sent with a specific frequency, let's say 5 frames/second. (of course the frequency is variable)

What is the best communication protocol for implementing this? The code is going to be written in C/C++ but I'm more interested in how to workflow (the concept) would look like rather than code implementation.

Is HTTP sufficient for this? How about RTSP or maybe something else? Please keep in mind that the data goes from a smartphone (where the internet connection is not exceptional) to a processing machine (server, fast internet connection).

Thank you!

Edit: Thanks for your answers. Actually I was looking for a comparison between the existing communication protocols that can implement my specific need. As I said, I'm not interested in the complexity of the code that would implement the "connection". I would have liked to see some advantages/disadvantages between them, relative to my use case. On the other hand, the server performing the recognition has to be compliant with the communication protocol (+API) implemented by the application running on the smartphone, nothing more. That means I don't care how the server does it's job as long as it is able to understand client requests and return an answer that can be understood by the application making the request.

Something that I forgot to mention (my bad) is that I'm interested in ALL the communication protocols that are providing support for implementing this use-case.

0 投票
1 回答
4673 浏览

java - 为4.0蓝牙传输创建一个socket

我正在开发一个可以将数据传输到 4.0 蓝牙串行设备的 Android 应用程序。我由 LeGatt android 示例项目 ( http://developer.android.com/samples/BluetoothLeGatt/index.html ) 指导。在这个项目中,他们连接到设备,但没有传输数据。

对于 2.0 蓝牙,我可以创建一个 Socket、InputStream 和 OutputStream 来传输数据,如下所示:

但是在 4.0 蓝牙中我无法创建 Socket,因为这种方法不起作用

有人可以帮助我使用我的 4.0 蓝牙设备进行数据传输。