|
medalas
初级用户
 
积分 189
发帖 21
注册 2003-11-23
状态 离线
|
『楼 主』:
说真的,对DOS在工控机上的运用!给点意见!
使用 LLM 解释/回答一下
最近我做项目,为了不用占体积比较大的硬盘,我选择了电子盘DOC(DISK ON CHIP),只有64M,所以OS只好用DOS,但是写软件时发现真的有点不方便!
我想在纯DOS下分别在3个时刻连续显示三种14副图象(假设已经在硬盘上存好了):8副编码光栅BMP图象,4副相移光栅BMP图象和2副全亮和全暗的光栅图象。我要达到这样的效果是:进DOS系统的那些字符要屏蔽(就是不要出现那些字符,即开机什么画面也没有),然后通过PC机有个图象处理程序通过串口控制发指令控制什么时候显示三种图象中的哪一种图象。
工控机上不带键盘鼠标,上电后不要任何控制,即可完成任务,这是我的目的,好象这一点选择DOS做成批处理文件听说可以实现,但是不会,哈哈!
感觉OS变了,好多东西都要重新学重新做一样,哎呀,到底我是不是该选择DOS呢???
今天才发现这个站点,我觉得很好!
有没做工控机用DOS的,很希望跟你们交流!!
68278802
medalas@163.net
Recently, I was working on a project. To avoid using a hard disk with a relatively large size, I chose an electronic disk DOC (DISK ON CHIP), which is only 64M. So I had to use DOS for the OS. But I found it really a bit inconvenient when writing software!
I want to continuously display three kinds of 14 images at three moments respectively under pure DOS (assuming they have been saved on the hard disk): 8 coded raster BMP images, 4 phase - shifted raster BMP images, and 2 fully - bright and fully - dark raster images. The effect I want to achieve is: shield the characters when entering the DOS system (that is, no startup screen appears), and then have an image processing program on the PC control sending instructions through the serial port to control when to display which kind of image among the three kinds.
The industrial control computer has no keyboard or mouse. After power - on, it can complete the task without any control. This is my goal. It seems that making a batch file with DOS can realize this, but I don't know how. Haha!
It feels like the OS has changed, and a lot of things need to be learned and done again. Oh, in the end, should I choose DOS???
I just found this site today, and I think it's very good!
Is there anyone who has made industrial control computers with DOS? I really hope to communicate with you!!
68278802
medalas@163.net
|
|
2003-11-23 00:00 |
|
|
未完成
初级用户
 
积分 102
发帖 1
注册 2003-11-24
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
打架的时候,还是用自己比较熟悉的招数比较好
When fighting, it's better to use the moves you are more familiar with
|
|
2003-11-24 00:00 |
|
|
Warm
初级用户
 
积分 175
发帖 25
注册 2003-10-23
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
有,我就用dos. 而且我连显示器也不用,只用打印机。
楼主用的是什么机器啊? (我使用的是普通的p4机器)
另外为何不用u盘? 你的64M doc 是多少钱啊?
Yes, I use DOS. And I don't even use a monitor, just a printer.
What machine are you using,楼主? (I'm using an ordinary P4 machine)
Also, why not use a USB flash drive? How much is your 64M doc?
|
|
2003-11-26 00:00 |
|
|
medalas
初级用户
 
积分 189
发帖 21
注册 2003-11-23
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
64M DOC 495 元!我用的是研详的104-1541CLDN,你呢
用U盘,自持U盘启动的主板现在不多吧?!
请楼上的与我qq或MAIL联系!
64M DOC is 495 yuan! I'm using Yanxiang's 104-1541CLDN. What about you? Using a USB flash drive. There aren't many motherboards that support USB flash drive booting now! Please contact me via QQ or MAIL upstairs!
|
|
2003-11-26 00:00 |
|
|
Warm
初级用户
 
积分 175
发帖 25
注册 2003-10-23
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
845gl (一般2003年生产的主板都支持u盘启动)
1.7G CPU
128M RAM
64M U盘 (150元)
加起来都要1300多,但速度应该比104板块的多。
你的1541cldn 多少钱?
845gl (Generally, motherboards produced in 2003 all support USB flash drive booting)
1.7G CPU
128M RAM
64M USB flash drive (150 yuan)
The total is more than 1300, but the speed should be faster than that of the 104 board.
How much is your 1541cldn?
|
|
2003-11-27 00:00 |
|
|
HARDLEEDOS
初级用户
 
积分 103
发帖 1
注册 2004-1-30
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
据我了解,有很多工控机都是用的DOS平台,我也想编一个基于DOS下GUI的工控软件,
打算用FREE DOS和DJGPP,不知道对于一个中等水平的C语言编程者要发多少时间,因为
我的整个系统的硬件都差不多啦。
As far as I know, many industrial control computers use the DOS platform. I also want to compile an industrial control software with GUI under DOS. I plan to use FREE DOS and DJGPP. I wonder how much time it will take for a C language programmer with medium level, because my whole system's hardware is almost the same.
|
|
2004-1-30 00:00 |
|
|
songjian
初级用户
 
积分 140
发帖 18
注册 2004-2-3
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
我到很有兴趣,我是搞watcom C/C++ 开发的 也用过DJGPP。
以前开发Novell下的股票分析系统。有自己的GUI包。
DJGPP在保护模式下开发的话 DPMI Server不太稳定。以前我用过,内存管理不好。
DOS4G/W就比较可靠了。
I'm quite interested. I'm involved in Watcom C/C++ development and have also used DJGPP. Previously, I developed a stock analysis system under Novell, with my own GUI package. When developing under protected mode with DJGPP, the DPMI Server is not very stable. I used it before, and memory management was not good. DOS4G/W is relatively more reliable.
|
|
2004-2-3 00:00 |
|
|
morixin
初级用户
 
积分 112
发帖 5
注册 2003-11-15
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
关于第一位朋友所提的屏蔽DOS启动信息的问题,是可以解决的。通过DOS的批处理和一个DOS的BANNER程序可以轻松完成
。我也是搞工控机的,同样做项目。希望与你们交流。因为我也有些技术性问题无法解决。
对于以前开发Novell下的股票分析系统的songjian老兄,我和你有同感,DOS4G/W确实可靠得
多。
我做的是交通工程中的收费系统。我的软件运行时会对硬盘执行大量的写操作,因为收费流
水记录被拆分为很多小文件(几十字节到几百KB不等)存于硬盘。运行一段时间后,硬盘老
是报FAT错,发现很多丢失簇,经常性的丢失文件。一直都无法彻底解决。很头疼。各位有无
好的方法解决之?无论从开发角度或从现场维护角度均可。我想Novell下的股票分析系统一定也有大量的写盘操作及小字节文件生成。不知songjian老兄有否好的建议?我的E-MAIL是morixin@163.com或txliou@163.com。我的操作系统平台是MS-DOS7.0
我在广州!这个问题非常急!可给我电话020-83730652,013924105150或我打给你们也行。
Regarding the issue of shielding DOS boot information raised by the first friend, it can be solved. It can be easily done through DOS batch processing and a DOS BANNER program. I am also involved in industrial control computers and am also working on projects. I hope to communicate with you. Because I also have some technical problems that I can't solve.
For brother songjian who previously developed the stock analysis system under Novell, I have the same feeling as you. DOS4G/W is indeed much more reliable.
I am working on the toll collection system in traffic engineering. When my software runs, it performs a large number of write operations on the hard disk because the toll transaction records are split into many small files (ranging from tens of bytes to hundreds of KB) and stored on the hard disk. After running for a period of time, the hard disk always reports FAT errors, and many lost clusters are found, and files are often lost. I have been unable to solve it completely. It's very frustrating. Do you all have any good methods to solve it? It can be from the development perspective or from the on-site maintenance perspective. I think the stock analysis system under Novell must also have a large number of disk write operations and the generation of small-byte files. I wonder if brother songjian has any good suggestions? My E-MAIL is morixin@163.com or txliou@163.com. My operating system platform is MS-DOS 7.0.
I am in Guangzhou! This problem is very urgent! You can call me at 020-83730652, 013924105150 or I can call you.
|
|
2004-2-7 00:00 |
|
|
songjian
初级用户
 
积分 140
发帖 18
注册 2004-2-3
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
我开发股票分析系统时,对于历史数据采用的方式一开始时采用目录的方式,不过分析就不太方便了。如果要分析的话,我通常采用大文件方式。建立一个几百兆的文件。其中包括文件内容的索引。由于我开发的目的不一样。每个月都重新建一个上G的文件。不知该方式对你有么有用。
不过如果你一定要用小文件,也可以,第一步不要直接对银盘读写,采用缓存方式。第二,每天做一下类是与股票分析系统的收盘。整理数据。
可以邮件联系啊。
When I developed the stock analysis system, I initially used the directory method for historical data, but it was not very convenient for analysis. If I wanted to analyze, I usually used the large file method. I created a file of several hundred megabytes, which included an index of the file content. Since my development purpose was different, I rebuilt a file of over 1 gigabyte every month. I don't know if this method is useful to you. But if you must use small files, it's also possible. The first step is not to directly read from and write to the disk, but to use the cache method. Second, do something similar to the closing of the stock analysis system every day to organize the data. You can contact me by email.
|
|
2004-2-7 00:00 |
|
|
dos_fan
初级用户
 
积分 152
发帖 10
注册 2004-2-24
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
你们用来1.7G的CPU来跑DOS太奢侈了吧.如果只是来做控制的话386级的芯片就够了。
You use a 1.7G CPU to run DOS, which is too luxurious. If it's just for control, a 386 - level chip is enough.
|
|
2004-2-26 00:00 |
|
|
笑傲江湖
初级用户
  鹰击长空
积分 271
发帖 61
注册 2003-8-20
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
ICOP嵌入式主板支持U盘启动,提供DOS下的TCP/IP开发包,超低功耗可达5V@350mA,-20℃低温启动......
详细请浏览http://www.icop.com.cn
Tel:0755-26742770-400 张先生
ICOP embedded mainboard supports USB flash drive booting, provides TCP/IP development package under DOS, ultra-low power consumption can reach 5V@350mA, -20℃ low temperature booting...
For details, please visit http://www.icop.com.cn
Tel:0755-26742770-400 Mr. Zhang
|

适合的,就是最好的!
DOS,永远的初恋情人。 |
|
2004-2-26 00:00 |
|
|
nre
银牌会员
     nre
积分 1210
发帖 361
注册 2002-12-28
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
"收费流水记录被拆分为很多小文件(几十字节到几百KB不等)存于硬盘。运行一段时间后,硬盘老是报FAT错,发现很多丢失簇,经常性的丢失文件。"
FAT系统有文件个数限制,根目录也有一个文件个数限制 是不是因为这个造成的
我觉得像SONGJIAN所说的采用大文件管理比较好 现在的游戏也几乎都采用这种方式
"Charge flow records are split into many small files (ranging from tens of bytes to a few hundred KB) and stored on the hard disk. After running for a period of time, the hard disk always reports FAT errors, and many lost clusters are found, with files often being lost.
The FAT system has a limit on the number of files, and there is also a limit on the number of files in the root directory. Is it caused by this?
I think that using large file management as mentioned by SONGJIAN is better. Now most games almost use this method."
|

Teamwork ! |
|
2004-2-26 00:00 |
|
|
笑傲江湖
初级用户
  鹰击长空
积分 271
发帖 61
注册 2003-8-20
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
这是由于FAT的管理机制造成的,建议对FAT区作一个备份。
This is caused by the management mechanism of FAT. It is suggested to make a backup of the FAT area.
|

适合的,就是最好的!
DOS,永远的初恋情人。 |
|
2004-4-6 00:00 |
|
|
zhaojinpo
初级用户
 
积分 183
发帖 31
注册 2002-11-30
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
建议你建立一个较大的数据文件,字节根据内容分类建立一个类似数据库管理的索引方式把小文件数据分类存储。存盘数据先在内存缓冲到达一定数量及时间再存盘。我作程序存盘时间最短一般取1~5分钟。
It is suggested that you establish a larger data file, and classify the bytes according to the content to set up an indexing method similar to database management to store small file data in categories. The data saved to disk is first buffered in memory and then saved to disk when a certain amount and time are reached. When I program the disk saving time, the shortest time is generally set to 1 to 5 minutes.
|

我的论坛 http://zjp-vlk.vicp.net/bbs 我在它就在! |
|
2004-4-7 00:00 |
|
|
boblhh9999
中级用户
  
积分 316
发帖 74
注册 2004-3-4
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
songjian兄:
我刚刚开始学用WATCOM,不知WATCOM下进入和退出图形模式的函数
是???,请指教在下一二
谢 谢
Brother songjian:
I have just started learning to use WATCOM. I don't know the functions for entering and exiting graphic mode under WATCOM. Please give me some guidance.
Thank you
|
|
2004-4-8 00:00 |
|