Hello,
I want to use the power measurements from the l1test in the phone. Therefore I modified the program so only the PM is done and additional some averaging and so on.
Finally the information should be sent to an microcontroller over UART. There is the problem: I don't know how to use this HDLC sercomm stuff because I don't have time to understand AND implement it for my thesis in the µc-part. I need a quick dirty hack to deactivate this HDLC. I don't find it in code and tried some hours.
I tried "uart_putchar_wait()" and hterm shows me that the bytes are sent with a lot other stuff.
What is the easiest way working for me?
Thanks a lot.
Marco
Hi,
At 21.06.2010 23:48 Rust, Marco, wrote:
Finally the information should be sent to an microcontroller over UART. What is the easiest way working for me?
In this case I would suggest swapping the console and the HDLC UART, by changing
CONS_UART_NR 0 to 1 in /include/console.h and SERCOMM_UART_NR 1 to 0 in /include/comm/sercomm.h
and using the cons_puts() function.
Excerpt from console.h: /* This is the direct (IRQ driven) UART console, bypassing the HDLC layer. You should not need to call those functions unless you've decided to not use the HLDC layer or have a device with two UARTs */
Regards, Steve
Great. Easy, but working.
Thanks Marco
-----Ursprüngliche Nachricht----- Von: Steve Markgraf [mailto:steve@steve-m.de] Gesendet: Dienstag, 22. Juni 2010 02:10 An: Rust, Marco Cc: baseband-devel@lists.osmocom.org Betreff: Re: l1test without hdlc (sercomm)
Hi,
At 21.06.2010 23:48 Rust, Marco, wrote:
Finally the information should be sent to an microcontroller over UART. What is the easiest way working for me?
In this case I would suggest swapping the console and the HDLC UART, by changing
CONS_UART_NR 0 to 1 in /include/console.h and SERCOMM_UART_NR 1 to 0 in /include/comm/sercomm.h
and using the cons_puts() function.
Excerpt from console.h: /* This is the direct (IRQ driven) UART console, bypassing the HDLC layer. You should not need to call those functions unless you've decided to not use the HLDC layer or have a device with two UARTs */
Regards, Steve
baseband-devel@lists.osmocom.org