uart

Root permission to configure UART1 in Beaglebone [closed]

北战南征 提交于 2019-12-24 14:16:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I use a Beaglebone black, which runs on Android, in a project I work. I need to use UART1. As I understand I have to configure the MODE of UART1. It must be MODE0. I can do it via adb with these command: echo 20 > /sys/kernel/debug/omap_mux/uart1_rxd echo 0 > /sys/kernel/debug/omap_mux/uart1_txd Everything works

CC2541蓝牙学习——串口_1

一笑奈何 提交于 2019-12-24 13:04:10
CC2541有两个串行通信接口,分别是USART0和USART1,它们能够分别运行于异步UART模式或者同步SPI模式。两个USART具体同样的功能,可以设置在单独的I/O引脚。 1.UART模式 UART模式提供异步串行接口,在UART模式中,有2种接口选择方式:2线接口和4线接口。 2线接口,使用RXD、TXD。 4线接口,使用RXD、TXD、RTS和CTS。 I/O外设引脚映射如下图所示: 根据上面的外设I/O引脚映射可知 : UART0对应的外部设置IO引脚关系为:位置1:P0_2----RX P0_3----TX 位置2:P1_4----RX P1_5----TX UART1对应的外部设置IO引脚关系为:位置1:P0_5----RX P0_4----TX 位置2:P1_7----RX P1_6----TX UART模式的操作有以下特点。 8位或者9位负载数据 奇校验、偶校验或者无奇偶校验 配置起始位和停止位电平 配置LSB(最低有效位)或MSB(最高有效位)首先传输 独立接收中断 独立收发DMA触发 奇偶校验和帧检验出错状态 UART模式提供全双工传送,也就是说可以同时收发数据,传送一个UART字节包括1个起始位,8个数据位,1个作为可选的第9位数据或者奇偶校验位,再加上1个或者2个停止位。

Parsing time-delimited UART data

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 04:26:09
问题 When trying to correctly reverse-engineer and decode data on a UART connection, I have arrived at the following conclusions about the format of the data being received. Data is sent in "packets". Each packet is delimited only by time (spaces) between transmissions. Packets are of variable length. The length is specified by the third byte in the sequence. Data is not framed using any special characters or out-of-band signals, but a valid data packet can be (assumed to be) valid, based on the

How to detect screen resize events coming from ncurses in QNX?

安稳与你 提交于 2019-12-24 03:25:37
问题 I can not configure to receive events about changing the size of the terminal using ncurses QNX Momentics. I am using Putyy as a terminal and data is transmitted through the COM port. My question is how to realize the reception of screen change events when using a remote terminal? FILE* fcons = fopen("/dev/ser1", "r+"); SCREEN* term = newterm("xterm-r5", fcons, fcons); int y = 0, x = 0; //if(y < 24 || x < 80) // resizeterm(24, 80); flushinp(); main_scr = newwin(24, 80, 0, 0); head_scr =

UART数据处理方式

大城市里の小女人 提交于 2019-12-23 01:12:12
串口数据接收到buff[] 1. 接收到的是 xxx, xxx,xxxx,xxxxx,xxx,xxxx,xxx 例如: GPS发送数据以行为单位,数据格式如下: $GPHPD,x,x,x,x,x,x,x,x,x,x,x,x,x char res = uart_read(); char buff[cnt++] = res; //////////////存储res数据到buff中////////////////////// int LEN = 200; int LEN_1 = 20; int LEN_2 = 20; int cnt = 0; char str[LEN_1][LEN_2] = {0}; int i=0; int count = 0; int k=0; //////////////////////////////////////////////////// for(i =0; i<cnt ;i++) { if(i == ',') // { count++; m++; } else { str[m][n] = buff[i]; n++; } } //通过',' 已经将数据分割成一个个字符串 for(i=0; i<m;i++) { float buf[i] = atof(str[i]); //现在的buf里放得是一个个的float数据,可以进行计算和比较 } float

is it possible write to console without stdlibs? c/c++

跟風遠走 提交于 2019-12-22 04:04:36
问题 I am programming on an arm microprocessor and am trying to debug using print statements via UART. I do not want to add stdlibs just for debugging. Is there a way to print to the console without stdio.h / iostream.h ? Is it possible for me to write my own printf() ? Alternatively I can do this using a DMA controller and writing to the UART directly. However I would like to avoid that is possible. Using the built in test function "echo" or "remote loop-back" I know I have the UART configured

2019-2020-1 20175307 20175308 20175319 实验二 固件程序设计

淺唱寂寞╮ 提交于 2019-12-22 01:50:35
2019-2020-1 20175307 20175308 20175319 实验二 固件程序设计 小组成员 20175307高士淳 20175308杨元 20175319江野 实验步骤 1.MDK 实验要求 0.注意不经老师允许不准烧写自己修改的代码 1.三人一组 2.参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.1-1.5安装MDK,JLink驱动,注意,要用系统管理员身分运行uVision4,破解MDK(破解程序中target一定选ARM) 3.提交破解程序中产生LIC的截图 4.提交破解成功的截图 实验步骤 下载并运行安装程序,安装MDK MDK安装结束页面,点击安装ULINK驱动 Ulink安装结束后自动退出,安装结束 运行uVision4,点击 文件>>许可证管理 ,复制CID 运行keil-MDK注册机,粘贴CID并选择 ARM ,点击 generate 生成 LIC 将生成的LIC复制到keil4中的LIC输入框中,点击 Add LIC ,破解完成。 2.LED 实验要求 0.注意不经老师允许不准烧写自己修改的代码 1.参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.4” KEIL-MDK 中添加 Z32 SC-000 芯片库,提交安装截图 2.参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.9”完成LED实验

2019-2020-1 20175234 20175205 20175217 实验二 固件程序设计

≯℡__Kan透↙ 提交于 2019-12-21 14:27:51
2019-2020-1 20175234 20175205 20175217 实验二 固件程序设计 实验内容 1-MDK 实验要求 参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.1-1.5安装MDK,JLink驱动,注意,要用系统管理员身分运行uVision4,破解MDK(破解程序中target一定选ARM) 提交破解程序中产生LIC的截图 提交破解成功的截图 实验步骤 按照实验指导书上的操作进行软件安装 运行 uVision4,点 File>>License Management-->复制 CID 运行keil-MDK注册机(在“Z32开发指南\2.软件资料\keil-MDK 注册机”双击“keil mdk474注册机”) 粘贴 CID 并选择 ARM。 2-LED 实验要求 参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.4” KEIL-MDK 中添加 Z32 SC-000 芯片库,提交安装截图 参考云班课资源中“信息安全系统实验箱指导书.pdf “第一章,1.9”完成LED实验,注意“打开Z32的电源开关前,按住Reboot按键不放,两次打开电源开关,Z32即可被电脑识别,进行下载调试。提交运行结果截图 实验报告中分析代码 实验步骤 首先先在 KEIL-MDK 中添加 Z32 SC-000 芯片库,操作过程为: 打开 keil

UART controller or RS232 controller? Is UART a general word?

醉酒当歌 提交于 2019-12-21 05:36:32
问题 I have a question regarding UART controller. Is UART controller a general name? i mean that if we use RS-232 protocol, we should name this UART controller, RS-232 controller and if we use RS-485 as protocol, we should call this UART controller, a RS-485 controller and so on? I've noticed that we generally say network controller (protocols:Ethernet, token ring,ATM,..) and if the protocol implemented is Ethernet for example, we say Ethernet controller. Is it a correct comparison between UART

Emulating UART over USB

不羁岁月 提交于 2019-12-20 09:24:21
问题 Does anybody know if it's possible to emulate UART (simple serial transmit and receive) over USB? How would this be accomplished? I found this link on the Microchip website, but it's not very forthcoming. http://www.microchip.com/forums/m522571-print.aspx Any ideas? Thanks. 回答1: Basically you have two options to emulate UART over USB: Use an existing product. The company FTDI provides well known and solid UART-USB bridge chips, e.g. FT230X. Pro: You don't need any detailed knowledge about USB