Freebsd下安装Hylafax的补丁

本文记录了HylaFAX传真服务器在特定系统上的安装与配置过程,包括遇到的问题及解决方案。文中详细介绍了如何通过修改脚本来解决modem识别问题,并成功实现传真的发送与接收。
hylafax安装过程没问题,运行faxsetup,后面要求写端口的时候

Serial port that modem is connected to []? cuad0
Hmm, there does not appear to be an fuser command on your machine.
This means that I am unable to ensure that all processes using the
modem have been killed.I will keep going, but beware that you may
have competition for the modem.

...省略.....

Now we are going to probe the tty port to figure out the type
of modem that is attached.This takes a few seconds, so be patient.
Note that if you do not have the modem cabled to the port, or the
modem is turned off, this may hang (just go and cable up the modem
or turn it on, or whatever).

Probing for best speed to talk to modem: 38400 OK.
Terminated

About fax classes:

The difference between fax classes has to do with how HylaFAX interacts
with the modem and the fax protocol features that are used when sending
or receiving faxes.One class isn't inherently better than another;
however, one probably will suit a user's needs better than others.

Class 1 relies on HylaFAX to perform the bulk of the fax protocol.
Class 2 relies on the modem to perform the bulk of the fax protocol.
Class 2.0 is similar to Class 2 but may include more features.
Class 1.0 is similar to Class 1 but may add V.34-fax capability.
Class 2.1 is similar to Class 2.0 but adds V.34-fax capability.

HylaFAX generally will have more features when using Class 1/1.0 than
when using most modems' Class 2 or Class 2.0 implementations.Generally
any problems encountered in Class 1/1.0 can be resolved by modifications
to HylaFAX, but usually any problems encountered in Class 2/2.0/2.1 will
require the modem manufacturer to resolve it.

If you're unsure and your modem supports it, use Class 1.

Hmm, this looks like a Class 1 modem.

Hmm, something seems to be hung, check your modem eh?
Product code (ATI0) is "1.0".

Hmm, something seems to be hung, check your modem eh?
Other information (ATI3) is "MD56xx".
DTE-DCE flow control scheme [default]?
Hmm, something seems to be hung, check your modem eh?

然后系统就一直提示Hmm, something seems to be hung, check your modem eh?这句话,我看到其他人在freebsd 5.X上也有这个问题,解决不了。


重要的是,这个同样的modem,在debian 3和hylafax的系统上顺利通过。

-----------------------------------------------

现在faxaddmodem可以通过,参考网上的一些信息,我做了个补丁patch-etc-faxaddmodem.sh.in,放在/usr/ports/comms/hylafax/files下面,收发传真的测试成功。 对应的版本为hylafax-4.3.2

etc/faxaddmodem.sh.in如下
---etc/faxaddmodem.sh.in.origThuAug1616:11:132007
+++etc/faxaddmodem.sh.inThuAug1616:11:432007
@@
-869,7+869,7@@
#resetthemodem.Ifsomethinggoeswrong,it
'll
#nagtheusertocheckontheproblem.
#
-(trap"exit1"1215;
+(trap"exit1"12;
whiletrue;do
sleep
10;
echo
""
内容概要:本文档系统性地介绍了2024年最新提出的两种智能优化算法——青蒿素优化算法与霜冰优化算法(RIME)的原理、实现方法及其性能对比分析,并提供了完整的Matlab代码实现。文档不仅聚焦于核心算法的仿真与验证,还整合了大量前沿科研资源,涵盖微电网优化、风电功率预测、无人机三维路径规划、电动汽车调度、图像融合、负荷预测、通信信号处理、电力系统故障恢复等多个高价值应用场景。所有案例均基于Matlab/Simulink平台进行建模与仿真,强调算法在复杂工程系统中的实际应用能力,旨在为科研人员提供一套从理论到代码再到应用的完整复现体系。; 适合人群:具备一定编程基础和科研背景的研究生、高校教师及工程技术人员,尤其适合从事智能优化算法研究、新能源系统优化、自动化控制、电力系统调度、无人机导航与路径规划等相关领域的研究人员。; 使用场景及目标:①用于高水平学术论文的复现与创新性研究,提升科研效率与成果产出;②应用于复杂工程系统的建模仿真与智能优化设计,如多能互补系统调度、无人机避障路径规划、微电网能量管理等;③作为智能优化算法的教学与学习资料,深入理解现代元启发式算法的设计思想与实现机制。; 阅读建议:建议读者结合文档中提供的Matlab代码与Simulink仿真模型,按照目录结构循序渐进地学习与实践,优先选择与自身研究方向契合的案例进行代码复现,重点关注算法参数设置、收敛曲线分析与多算法对比实验部分,以全面提升算法应用与科研创新能力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值