<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Serialization problem using OpenWRT on mips board as application part.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60485/serialization-problem-using-openwrt-on-mips-board-as-application-part</link><description>Hello. I want to use nRF52810 as a connectvity platform connected to OpenWRT MIPS based board via UART. For some reason the only solution I can assure is to use 2 wire UART without parity control using 9600 baudrate. I am not able to make it work. What</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Sep 2020 07:02:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60485/serialization-problem-using-openwrt-on-mips-board-as-application-part" /><item><title>RE: Serialization problem using OpenWRT on mips board as application part.</title><link>https://devzone.nordicsemi.com/thread/269766?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2020 07:02:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64b4982b-037e-42a9-ab62-dd847a454a79</guid><dc:creator>Alan Klimala</dc:creator><description>&lt;p&gt;Will docker config file be enough? If so then here you go:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;FROM ubuntu:latest

MAINTAINER Alan Klimala &amp;lt;a.klimala@mbdsoft.pl&amp;gt;

# Get neccessary dependencies
#############################
RUN apt-get update -qq &amp;amp;&amp;amp;\
    apt-get install -y \
		bash \
		bc \
		binutils \
        build-essential \
		bzip2 \
        curl \
		cpio \
        file \
        gawk \
		gcc \
		g++ \
        gettext \
        git \
		gzip \
        libncurses5-dev \
        libssl-dev \
		make \
		mercurial \
		nano \
		ninja-build \
		patch \
		perl \
        python2.7 \
        python3 \
        rsync \
		sed \
        subversion \
        sudo \
        swig \
		tar \
        unzip \
        wget \
        zlib1g-dev \
        &amp;amp;&amp;amp; apt-get -y autoremove \
        &amp;amp;&amp;amp; apt-get clean \
        &amp;amp;&amp;amp; rm -rf /var/lib/apt/lists/*

# Compile OpenWRT build environment
###################################
WORKDIR /
RUN git clone https://github.com/openwrt/openwrt.git
WORKDIR /openwrt
RUN ./scripts/feeds update -a \
	&amp;amp;&amp;amp; ./scripts/feeds install -a
COPY ./menuconfig.config /openwrt/.config
ENV FORCE_UNSAFE_CONFIGURE=1
RUN make

# Compile vcpkg tool from Nordic Semiconductor
##############################################
WORKDIR /home
RUN git clone https://github.com/NordicPlayground/vcpkg.git 
WORKDIR /home/vcpkg 
RUN ./bootstrap-vcpkg.sh \
	&amp;amp;&amp;amp; ./vcpkg integrate install \
	&amp;amp;&amp;amp; ./vcpkg install sdl2 curl asio catch2 \
	&amp;amp;&amp;amp; ./vcpkg install --head spdlog
ENV VCPKG_ROOT=/home/vcpkg
ENV PATH=$VCPKG_ROOT:$PATH
RUN echo &amp;quot;set(CMAKE_C_COMPILER mipsel-openwrt-linux-musl-gcc)&amp;quot; &amp;gt;&amp;gt; ./triplets/x64-linux.cmake
RUN echo &amp;quot;set(CMAKE_CXX_COMPILER mipsel-openwrt-linux-musl-g++)&amp;quot; &amp;gt;&amp;gt; ./triplets/x64-linux.cmake
	
# Register OpenWRT SDK
#############################
ENV STAGING_DIR=/openwrt/staging_dir
ENV TOOLCHAIN_DIR=$STAGING_DIR/toolchain-mipsel_24kc_gcc-8.4.0_musl
ENV LDCFLAGS=$TOOLCHAIN_DIR/usr/lib
ENV LD_LIBRARY_PATH=$TOOLCHAIN_DIR/usr/lib
ENV PATH=$TOOLCHAIN_DIR/bin:$PATH
#ENV CC=mipsel-openwrt-linux-gcc
#ENV CXX=mipsel-openwrt-linux-g++

# Prepare libnrf package
##################################
#WORKDIR /home
#RUN mkdir -p packages/libnrf
#COPY ./pc-ble-driver/Makefile /home/packages/libnrf/Makefile
#WORKDIR /openwrt
#RUN cp ./feeds.conf.default ./feeds.conf \
#	&amp;amp;&amp;amp; echo &amp;quot;src-link vemmio /home/packages&amp;quot; &amp;gt;&amp;gt; feeds.conf
#RUN ./scripts/feeds update -a \
#	&amp;amp;&amp;amp; ./scripts/feeds install -a

# Uncomment below if you want 
# to have libNRF built.
##################################
#WORKDIR /home/packages/libnrf
#RUN rm Makefile &amp;amp;&amp;amp; \
#	git clone https://your-link-to-pc-ble-driver .
#COPY ./pc-ble-driver/Makefile /home/packages/libnrf/Makefile
#WORKDIR /openwrt
#COPY ./libnrf_menuconfig.config /openwrt/.config
#RUN make

WORKDIR /home
CMD [&amp;quot;bash&amp;quot;]&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serialization problem using OpenWRT on mips board as application part.</title><link>https://devzone.nordicsemi.com/thread/267906?ContentTypeID=1</link><pubDate>Thu, 03 Sep 2020 16:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9604513f-3605-44e3-b132-8a2a5c93456f</guid><dc:creator>kasiviswanathan</dc:creator><description>&lt;p&gt;Hi Alan Klimala&lt;br /&gt;&lt;br /&gt;I am also trying to do exactly the same but ran into an issue while compiling pc-ble-driver for x86_64 itself.&lt;br /&gt;&lt;br /&gt;Can you pls share the steps which you used to cross compile pc-ble-driver for mips based board which could be run on openwrt ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks in advance,&lt;br /&gt;&lt;br /&gt;Kasiviswanathan.V&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serialization problem using OpenWRT on mips board as application part.</title><link>https://devzone.nordicsemi.com/thread/246227?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 11:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0676ba4b-fe72-416a-ad2b-08764c2f60b1</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hmm.. have you also looked at an oscilloscope to check the length of start and stop bits on UART?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serialization problem using OpenWRT on mips board as application part.</title><link>https://devzone.nordicsemi.com/thread/246089?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2020 14:23:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1eab465f-96b3-4bfe-a560-62ad0c1d1633</guid><dc:creator>Alan Klimala</dc:creator><description>&lt;p&gt;Hello Kenneth,&lt;br /&gt;&lt;br /&gt;Thank you for your attention. Yes, I have doube checked power and wiring conditions. Hardware flow control is disabled by software. I have also compared data send between boards when using PCA10040 bassed application and OpenWRT based one and it seems like heart rate monitor examples send completely different data. I have attached serial analyzer output for both cases. pc-ble-driver based example sends six times such a frame:&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1587565544918v5.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;While PCA10040 based app example sends to connectivity board data as follows:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1587565599653v6.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Of course in a second example we have much more different frames as well as connectivity board responses, but event when looking at the begining one we can see there is some major difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serialization problem using OpenWRT on mips board as application part.</title><link>https://devzone.nordicsemi.com/thread/246016?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2020 11:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17f44ccc-3565-4fca-a47c-57cecc6c26e3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Have you checked the electrical connection by logic analyzer, for instance that you have a common GND wire, that VDD is same voltage, and that the UART pins are properly connected?&lt;/p&gt;
&lt;p&gt;Also, how have you connected the flow control lines here? Have you disabled them in software, or have you just added pull down&amp;#39;s on CTS and RTS pins to make the UART seem like it is always ready to receive data?&lt;/p&gt;
&lt;p&gt;Have you connected an logic analyzer trace on the UART pins to compare working and failing setup? I would assume default the example is setup to use 115200baud, but I assume you have re-compiled the application here.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>