VxWorks

How to save the output of ifconfig command into a buffer?

旧巷老猫 提交于 2019-12-02 10:41:42
问题 I have to save the output of the command "ifconfig" into a char buffer using C++ and VxWorks. How can I do it? 回答1: ifconfig is a shell command, so you should be able to redirect its output to a file using '>' and then read that file. You can also have a look at the topic 'Redirecting Shell IO' in the manual. 回答2: Here is an example using pipe to save the output of ifconfig into a buffer. Try -> pipe_test and -> puts &pipe_buf on the C interpreter shell. Good luck. char pipe_buf[128*256]; int

Executing a script from inside code in VxWorks 6.7

随声附和 提交于 2019-12-02 04:33:17
In VxWorks 5.5.1 you could run a script using the execute command. In VxWorks 6.7 the execute command is no longer supported. Does anyone now if there is a replacement? I am specifically talking about from inside code not command line. Through much research it appears like there are a few ways to accomplish this but none is exactly the same as the execute command from before. As I stated in the comment below it turns out that the execute command is not an official API call. 1) shellCmdExec can be used but most be called from inside the shell task. 2) The solution we choose to employ - which is

Why are particular UDP messages always getting dropped below a particular buffer size?

♀尐吖头ヾ 提交于 2019-11-30 17:43:50
3 different messages are being sent to the same port at different rates: Message size (bytes) Sent every transmit speed High 232 10 ms 100Hz Medium 148 20ms 50Hz Low 20 60 ms 16.6Hz I can only process one message every ~ 6 ms . Single threaded. Blocking read. A strange situation is occurring, and I don't have an explanation for it. When I set my receive buffer to 4,799 bytes, all of my low speed messages get dropped. I see maybe one or two get processed, and then nothing. When I set my receive buffer to 4,800 (or higher!), it appears as though all of the low speed messages start getting

How do I redirect Tornado / VXWorks shell output?

流过昼夜 提交于 2019-11-30 09:22:13
问题 I've been working on an embedded C/C++ project recently using the shell in Tornado 2 as a way of debugging what's going on in our kit. The only problem with this approach is that it's a complicated system and as a result, has a fair bit of output. Tornado 'helpfully' scrolls the window every time some new information arrives which means that if you spot an error, it disappears out of site too quickly to see. Each time you scroll up to look, the system adds more information, so the only way to

使用uboot引导本地vxworks镜像

余生长醉 提交于 2019-11-27 12:20:57
vxworks镜像包括两个文件:vxworks、vxworks.bin,其中vxworks用于本地调试。 言归正传,下面分步骤描述引导方法: 1、运行tftp.exe工具,将路径设置为本地vxworks.bin所在文件夹。 2、运行SecureCRT.exe,在uboot下输入: ->tftp 0x10100000 vxWorks.bin 等待文件load完毕,再继续输入: ->go 0x10100000 到此就完成本地镜像引导,然后就可以执行拷贝等操作。 注意:0x10100000是 RAM_LOW_ADRS 的值, 请根据 BSP 文件里面 Makefile 中的定义。 来源: https://blog.csdn.net/idols_man/article/details/99673958

VxWorks阶段性学习总结

╄→尐↘猪︶ㄣ 提交于 2019-11-26 05:23:57
本人从工作开始就从事VxWorks开发工作,从一个小白到VxWorks底层驱动开发,再到现在的VxWorks开发,历时三年。 VxWorks本身门槛较高,属于嵌入式行业中的冷门,入门难,但做这一块比较好的一点就是容易达到一定高度,被替代的可能性较弱。 本人背景是从VxWorks5.5到VxWorks6.6,现在在做VxWorks6.9.工作三个年头,希望以后越来越强吧。 第一篇blog,先到这,以后再补充。 2018年10月 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2019年8月8日17:36:32 VxWorks工作四年整: 工作历程: 硬件平台:飞思卡尔MPC8280、MPC8245、MPC8548、P2020系列 操作系统:VxWorks5.5 、VxWorks6.6、VxWorks6.9 涉及内容:boorom、BSP、驱动、应用软件。 工作内容涉猎的还行; 以后计划: (1) 软件版本管理 :sourcetree / git; ok (2) PC端测试软件/图形界面开发软件

Python3 环境搭建

旧巷老猫 提交于 2019-11-25 20:55:16
Python 是一个高层次的结合了解释性、编译性、互动性和面向对象的 脚本 语言。 Python3 可应用于多平台包括 Windows、 Linux 和 Mac OS X。 Unix (Solaris, Linux, FreeBSD, AIX, HP/UX, SunOS, IRIX, 等等。) Win 9x/NT/2000 Macintosh (Intel, PPC, 68K) OS/2 DOS (多个DOS版本) PalmOS Nokia 移动手机 Windows CE Acorn/RISC OS BeOS Amiga VMS/OpenVMS QNX VxWorks Psion Python 同样可以移植到 Java 和 .NET 虚拟机上。 Python3 下载 Python3 最新源码,二进制文档,新闻资讯等可以在 Python 的官网查看到: Python 官网:https://www.python.org/ 你可以在以下链接中下载 Python 的文档,你可以下载 HTML、PDF 和 PostScript 等格式的文档。 Python文档下载地址:https://www.python.org/doc/ Python 安装 Python 已经被移植在许多平台上(经过改动使它能够工作在不同平台上)。 您需要下载适用于您使用平台的二进制代码,然后安装 Python。