s***g 发帖数: 495 | 1 arcNumber = architecture number?
It is set in uboot so should be used by uboot to pass to the kernel.
Use a newer uboot and kernel should make it boot on sata.
I have tried on pogo v4 and it boot from all three source: usb, mmc, and
sata.
My way is different from debian forum becase I think it is easier and
confirmed by your experience too.
Here is my uboot env for pogo v4. I shared it here for the same reason.
arcNumber=3960
baudrate=115200
bootcmd=setenv bootargs console=ttyS0,$baudrate root=L... 阅读全帖 |
|
t*m 发帖数: 208 | 2 THis is a command in labwindows.
int result = OpenComConfig (int COMPort, char deviceName[], long baudRate,
int parity, int dataBits, int stopBits,
int inputQueueSize, int outputQueueSize);
Purpose
Opens a com port, and sets port parameters as specified. If inputQueueSize
or outputQueueSize is between 1 and 29, it is forced to 30.
Parameters
Input COMPort integer Range 1 through 32.
deviceName string Name of the COM port.
baudRate |
|
f**o 发帖数: 12685 | 3 c#
using System.IO;
using System.IO.Ports;
using System.Threading;
namespace RS232RVR
{
public partial class Form1 : Form
{
private delegate void SetTextDeleg(string data);
public Form1()
{
InitializeComponent();
SettingRS232();
}
public void SettingRS232 ()
{
try
{
SerialPort mySerialPort = new SerialPort("COM6");
mySerialPort.BaudRate = 9600;
m... 阅读全帖 |
|
q*****z 发帖数: 191 | 4 Hi
I am a newbie in C# and somehow have to develop a software that communicates
with an external device that has a RS232 interface.
I have some experiences with RS232 programming but none of them involves
handshacking.
The parameters of this device is as follows:
baudrate: 1200
parity: odd
data bits: 7
stop bits: 1
handshacking: Xon/Xoff
If I use the hyperterminal in windows, it responds ok. But I cannot get the
C# program to work.
Here is the part of the settings in the program:
SerialPort Bala |
|
c*******o 发帖数: 62 | 5 你确定马达连在了COM1口?如果是笔记本+usb/rs232 converter那可能是COM3口
还有试试get(s,{'BaudRate','DataBits','Parity','StopBits','Terminator'})
看看端口的缺省设置和马达说明书上的要求是否一致,尤其是DataBits和Parity
其他应该就没什么了
稍微改一下再试试
clc;
close all;
clear all;
s=serial('COM1');
set(s,'Terminator','CR');
fopen(s);
fprintf(s,'D?');
pause(1);
DataOut=fscanf(s)
fprintf(s,'GF');
fclose(s);
delete(s);
clear s |
|
a****l 发帖数: 8211 | 6 有一个奇怪的问题。有一个RS232的设备,接到PC上的RS232端口,我的程序一打开PC上
的RS232端口,另一端的设备马上baudrate就变成9600。但是同样的设备,如果在另一
台计算机上运行(PC的COM口硬件是不一样的)打开PC上的RS232口,另一端的设备仍保
持原来的baudrate57600不变。这是怎么回事?难道是协议里有什么奥秘吗? |
|
b*****e 发帖数: 1193 | 7 Trick:
baudrate autodetect |
|
r****t 发帖数: 10904 | 8 在 /usr/bin/ 下面就有,贴在这儿,似乎 arcNumber 不对?Dockstar arcNumber应该
是多少?另,这个 hostname 名字叫 alarm 是正常的么?
$ fw_printenv
]# fw_printenv
ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console u... 阅读全帖 |
|