1 2 Previous Next 24 Replies Latest reply on Apr 1, 2017 7:02 AM by fnoop

    related to uart 1

    Umesh@pro3

      im working on my application which has uart interface with device ,but im facing some issues with uart ,i read post form intel community ,but little bit confused related to pin configuration of given by mraa and intel, im using uart 1 (pin no 22 & 24)

        • 1. Re: related to uart 1
          floydg

          Hi,

           

          Hope this helps.

           

          The quick response below, Intel can provide you with the current status, and better details.

           

           

           

          mraa: Intel Joule

          UART Some pins are labelled as UARTs but are not configured in BIOS as UART so only available UART is on the FTDI header. Disable the getty on ttyS2 and use mraa's uart raw mode to initialise on ttyS2. The Jumper J8 can be used to switch between using the FTDI 6 pin header and the micro USB output.

           

          Have not tested this, but it appears you need to do some soldering (J8), to select UART mode, which also inhibits FTDI USB to serial bridge):

          • 2. Re: related to uart 1
            Intel Corporation
            This message was posted on behalf of Intel Corporation

            Hello Umesh@pro3,

             

            Thank you for interest in the Intel® Joule 570x Developer Kit.

             

            I think you may find this thread useful https://communities.intel.com/message/436334#436334, it mentions that, in order to use the pins labeled as UARTs, you have to configure them through the BIOS.

             

            I’ll suggest you to try the method provided in that thread (which is the same mentioned by floydg), and if you keep experiencing the issue, don’t hesitate to contact us.

             

            Regards,
            Andres V.

             

             

             

             

             

             

             

            P.D.: thank you floydg for pointing out my mistake, this is the edited message.

            • 3. Re: related to uart 1
              floydg

              Andres,

               

              you mentioned above:

              "Thank you for interest in the Intel® Edison Breakout Board."

               

              Was unaware that umesh was interested in a solution for the Edison, please clarify, thanks.

              • 4. Re: related to uart 1
                Intel Corporation
                This message was posted on behalf of Intel Corporation

                Hello Umesh@pro3,

                I was wondering if you had the chance to try the suggestion provided by floydg.

                If you have any other question, don’t hesitate to contact us.

                Regards,
                Andres V.

                • 5. Re: related to uart 1
                  floydg

                  Andres,

                   

                  can you test the UART, and provide your results.

                   

                  Thanks in advance.

                  • 6. Re: related to uart 1
                    Umesh@pro3

                    thank you for replying ,but im not looking for Intel Edison Breakout Board,im looking for Intel joule Board.

                    • 7. Re: related to uart 1
                      floydg

                      Umesh,

                       

                      It appears you created this question in the "Intel Joules" community:

                       

                       

                      If you have not already posted this in the Edison Community, I would recommend that approach.

                      • 8. Re: related to uart 1
                        floydg

                        Andres,

                         

                        good morning.

                         

                        is there any new status of you getting this UART working with the Intel Joule and Tuchuck?

                         

                        I would have thought, since Intel mentioned and documented the workaround, that Intel would already have verified the UART.

                         

                        Looking forward to your solution. Thanks in advance.

                        • 9. Re: related to uart 1
                          Intel Corporation
                          This message was posted on behalf of Intel Corporation

                          Hello Umesh@pro3 and floydg,

                          I’m sorry for the confusion that my “Edison message” generated, I edited the message but it seems that there is still some misunderstanding.

                          Umesh@pro3: I understand you are interested in configurating the Joule’s UART pins. The comment provided by floydg is Joule-related (https://iotdk.intel.com/docs/master/mraa/grossetete.html), as well as the thread that I suggested (https://communities.intel.com/message/436334#436334), please check them and tell me if you find that information useful.

                          floydg: I still haven’t tested the method myself, neither have I encountered an official document validating the process. I assure I’m doing the respective research and once I have relevant information, I’ll post it here. Thank you for your patience. 

                          Regards,
                          Andres V.

                          • 10. Re: related to uart 1
                            Umesh@pro3

                            As per expansion board pin given ,

                            im using pin no 22 (UART_1_TXD) &

                                                     24 (UART_1_RXD) for UART communication

                            and for serial communication im using microcom( cmd     -->      microcom /dev/ttyS1 -s 115200)

                            it working for some time and it gets stuck(hangs!!) intel joule board .

                            when im pressing key to shutdown, terminal shows

                            following msgs.....

                             

                             

                             

                            [  215.471315] PM: Syncing filesystems ... done.

                            [  215.479391] Freezing user space processes ... (elapsed 0.001 seconds) done.

                            [  215.488907] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.

                            [  215.498913] Suspending console(s) (use no_console_suspend to debug)

                            [  217.154797] wlp1s0: deauthenticating from 48:f8:b3:18:4b:eb by local choice (Reason: 3=DEAUTH_LEAVING)

                            [  217.170213] mei_spd mei::2a39291f-5551-482f-99cb-9e2274978ca8:02: removing spd

                            [  217.183404] [drm] RC6 on

                            [  217.275710] PM: suspend of devices complete after 121.098 msecs

                            [  217.298020] PM: late suspend of devices complete after 22.298 msecs

                            [  217.300990] dwc3-pci 0000:00:15.1: System wakeup enabled by ACPI

                            [  217.301040] xhci_hcd 0000:00:15.0: System wakeup enabled by ACPI

                            [  217.339435] PM: noirq suspend of devices complete after 41.384 msecs

                            [  483.027769] xhci_hcd 0000:00:15.0: System wakeup disabled by ACPI

                            [  483.036958] PM: noirq resume of devices complete after 20.293 msecs

                            [  483.048550] PM: early resume of devices complete after 11.245 msecs

                            [  483.049209] dwc3-pci 0000:00:15.1: System wakeup disabled by ACPI

                            [  483.052045] iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled

                            [  483.052681] iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled

                            [  483.176194] iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled

                            [  483.176458] iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled

                            [  483.244834] ------------[ cut here ]------------

                            [  483.244866] WARNING: CPU: 1 PID: 739 at /srv/jenkins/workspace/builder-slot-3/build/tmp-glibc/work/intel_corei7_64-ostro-linux/backport-iwlwifi/18-r0/git/net/mac80211/key.c:682 ieee80211_enable_keys+0x172/0x180 [mac80211]()

                            [  483.244932] Modules linked in: drbg ctr ccm snd_hda_codec_hdmi snd_soc_skl snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core snd_soc_sst_match snd_soc_core ac97_bus bnep spidev mei_spd gpio_keys xt_tcpudp intel_rapl x86_pkg_temp_thermal coretemp efivars typec_wcove intel_bxtwc_tmu arc4 gpio_wcove intel_pmic_thermal iwlmvm(O) mac80211(O) pwm_lpss_pci pwm_lpss ftdi_sio spi_pxa2xx_platform btusb btrtl btbcm iwlwifi(O) snd_hda_intel snd_hda_codec i915 cfg80211(O) snd_hda_core snd_pcm dwc3_pci mei_me i2c_designware_platform i2c_designware_core processor_thermal_device mei compat(O) intel_soc_dts_iosf bq25890_charger hci_uart btintel int3400_thermal acpi_thermal_rel int3403_thermal int340x_thermal_zone video soc_button_array iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_connmark nf_conntrack iptable_mangle iptable_filter ip6table_filter ip6_tables uio iio_trig_sysfs industrialio efivarfs ip_tables x_tables

                            [  483.244950] CPU: 1 PID: 739 Comm: kworker/u8:21 Tainted: G           O    4.4.36-yocto-standard #1

                            [  483.244951] Hardware name: Intel Corp. Broxton M/SDS, BIOS GTPP161A.X64.0143.B30.1611152208 11/15/2016

                            [  483.244959] Workqueue: events_unbound async_run_entry_fn

                            [  483.244964]  0000000000000286 0000000088fddd27 ffff8801761d3c18 ffffffff8e5ef07b

                            [  483.244968]  0000000000000000 ffffffffc06f04c8 ffff8801761d3c50 ffffffff8e275e32

                            [  483.244971]  ffff880179e6c800 ffff880179e6c800 ffff8800785e13e8 ffff8800785e13e8

                            [  483.244972] Call Trace:

                            [  483.244981]  [<ffffffff8e5ef07b>] dump_stack+0x4d/0x72

                            [  483.244986]  [<ffffffff8e275e32>] warn_slowpath_common+0x82/0xc0

                            [  483.244989]  [<ffffffff8e275f7a>] warn_slowpath_null+0x1a/0x20

                            [  483.245008]  [<ffffffffc06b1472>] ieee80211_enable_keys+0x172/0x180 [mac80211]

                            [  483.245025]  [<ffffffffc06b5e90>] ieee80211_reconfig+0x1040/0x16c0 [mac80211]

                            [  483.245044]  [<ffffffffc069eacf>] ieee80211_resume+0x5f/0x70 [mac80211]

                            [  483.245060]  [<ffffffffc03f11cb>] wiphy_resume+0x7b/0x150 [cfg80211]

                            [  483.245072]  [<ffffffffc03f1150>] ? index_show+0x30/0x30 [cfg80211]

                            [  483.245076]  [<ffffffff8e730626>] dpm_run_callback+0x46/0x170

                            [  483.245079]  [<ffffffff8e730c75>] device_resume+0x95/0x250

                            [  483.245082]  [<ffffffff8e730e4d>] async_resume+0x1d/0x50

                            [  483.245085]  [<ffffffff8e296147>] async_run_entry_fn+0x37/0xe0

                            [  483.245089]  [<ffffffff8e28e01c>] process_one_work+0x14c/0x4e0

                            [  483.245092]  [<ffffffff8e28e3f8>] worker_thread+0x48/0x4a0

                            [  483.245095]  [<ffffffff8e28e3b0>] ? process_one_work+0x4e0/0x4e0

                            [  483.245099]  [<ffffffff8e293aa8>] kthread+0xd8/0xf0

                            [  483.245102]  [<ffffffff8e2939d0>] ? kthread_worker_fn+0x170/0x170

                            [  483.245107]  [<ffffffff8ead429f>] ret_from_fork+0x3f/0x70

                            [  483.245110]  [<ffffffff8e2939d0>] ? kthread_worker_fn+0x170/0x170

                            [  483.245113] ---[ end trace a23643ec7b4dc14c ]---

                            [  483.248902] PM: resume of devices complete after 200.339 msecs

                            [  483.342890] ------------[ cut here ]------------

                            [  483.342912] WARNING: CPU: 3 PID: 85 at /srv/jenkins/workspace/builder-slot-3/build/tmp-glibc/work/intel_corei7_64-ostro-linux/backport-iwlwifi/18-r0/git/net/mac80211/key.c:120 decrease_tailroom_need_count+0x62/0x70 [mac80211]()

                            [  483.342951] Modules linked in: drbg ctr ccm snd_hda_codec_hdmi snd_soc_skl snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core snd_soc_sst_match snd_soc_core ac97_bus bnep spidev mei_spd gpio_keys xt_tcpudp intel_rapl x86_pkg_temp_thermal coretemp efivars typec_wcove intel_bxtwc_tmu arc4 gpio_wcove intel_pmic_thermal iwlmvm(O) mac80211(O) pwm_lpss_pci pwm_lpss ftdi_sio spi_pxa2xx_platform btusb btrtl btbcm iwlwifi(O) snd_hda_intel snd_hda_codec i915 cfg80211(O) snd_hda_core snd_pcm dwc3_pci mei_me i2c_designware_platform i2c_designware_core processor_thermal_device mei compat(O) intel_soc_dts_iosf bq25890_charger hci_uart btintel int3400_thermal acpi_thermal_rel int3403_thermal int340x_thermal_zone video soc_button_array iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_connmark nf_conntrack iptable_mangle iptable_filter ip6table_filter ip6_tables uio iio_trig_sysfs industrialio efivarfs ip_tables x_tables

                            [  483.342960] CPU: 3 PID: 85 Comm: kworker/3:2 Tainted: G        W  O    4.4.36-yocto-standard #1

                            [  483.342961] Hardware name: Intel Corp. Broxton M/SDS, BIOS GTPP161A.X64.0143.B30.1611152208 11/15/2016

                            [  483.342972] Workqueue: events ieee80211_delayed_tailroom_dec [mac80211]

                            [  483.342975]  0000000000000286 000000000ae1e618 ffff88017a2cbd98 ffffffff8e5ef07b

                            [  483.342977]  0000000000000000 ffffffffc06f04c8 ffff88017a2cbdd0 ffffffff8e275e32

                            [  483.342978]  ffff880179e6c800 0000000000000002 ffff88017fd98e00 00000000000000c0

                            [  483.342979] Call Trace:

                            [  483.342987]  [<ffffffff8e5ef07b>] dump_stack+0x4d/0x72

                            [  483.342991]  [<ffffffff8e275e32>] warn_slowpath_common+0x82/0xc0

                            [  483.342992]  [<ffffffff8e275f7a>] warn_slowpath_null+0x1a/0x20

                            [  483.343002]  [<ffffffffc06b03a2>] decrease_tailroom_need_count+0x62/0x70 [mac80211]

                            [  483.343012]  [<ffffffffc06b183c>] ieee80211_delayed_tailroom_dec+0x2c/0x50 [mac80211]

                            [  483.343015]  [<ffffffff8e28e01c>] process_one_work+0x14c/0x4e0

                            [  483.343016]  [<ffffffff8e28e3f8>] worker_thread+0x48/0x4a0

                            [  483.343018]  [<ffffffff8e28e3b0>] ? process_one_work+0x4e0/0x4e0

                            [  483.343019]  [<ffffffff8e28e3b0>] ? process_one_work+0x4e0/0x4e0

                            [  483.343021]  [<ffffffff8e293aa8>] kthread+0xd8/0xf0

                            [  483.343023]  [<ffffffff8e2939d0>] ? kthread_worker_fn+0x170/0x170

                            [  483.343027]  [<ffffffff8ead429f>] ret_from_fork+0x3f/0x70

                            [  483.343029]  [<ffffffff8e2939d0>] ? kthread_worker_fn+0x170/0x170

                            [  483.343030] ---[ end trace a23643ec7b4dc14d ]---

                            [  484.067707] Restarting tasks ... done.

                            root@intel-corei7-64:~# [  484.211421] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready

                            [  484.330505] video LNXVIDEO:00: Restoring backlight state

                            [  484.397836] [drm] RC6 on

                             

                             

                             

                             

                            is im doing something wrong ?

                            • 11. Re: related to uart 1
                              Intel Corporation
                              This message was posted on behalf of Intel Corporation

                              Hello Umesh@pro3,

                               

                              I’ll be needing more time to perform the corresponding test and come up with information that you may find useful.

                               

                              Thank you for your patience.

                               

                              Regards,
                              Andres V.

                              • 12. Re: related to uart 1
                                Intel Corporation
                                This message was posted on behalf of Intel Corporation

                                Hello Umesh@pro3,

                                Sorry for the late reply.

                                I tried the following test:
                                Using UART1, which is exposed on J12-22 and J12-24, I connected an external FTDI cable and opened a serial connection with a baud rate of 9600 (I used a PuTTY console). 

                                Executing the following command I was able to see the message displayed on the serial connection (a second PuTTY console): 
                                echo “hello” > /dev/ttyS1

                                So, instead of opening a cmd window, I used two PuTTy consoles, with one I send information via USB communication, and with the other, through UART communication, I visualize the information. 

                                Regards,
                                Andres V.

                                • 13. Re: related to uart 1
                                  Umesh@pro3

                                  thanx for reply .....

                                  sorry for incomplete information.

                                  version of Reference Linux* OS for IoT I have installed on my development platform is-

                                  root@intel-corei7-64:~# cat /etc/*-release

                                  ID="ostro-xt"

                                  NAME="Ostro OS XT"

                                  VERSION="1.0+snapshot-20170209"

                                  VERSION_ID="1.0+snapshot-20170209"

                                  PRETTY_NAME="Ostro OS XT 1.0+snapshot-20170209"

                                  BUILD_ID="20170209120339"

                                   

                                  Version of installed MRAA Library is-

                                   

                                  root@intel-corei7-64:~# mraa-gpio version

                                  Version v1.5.1-27-g2c52968 on Intel GT Tuchuck

                                   

                                  im working with same pins for uart(22 & 24) and with the baud rate- 115200 (because connected board has application, that uart runs on baud rate 115200 )

                                  i facing above issue with uart 1

                                  • 14. Re: related to uart 1
                                    Intel Corporation
                                    This message was posted on behalf of Intel Corporation

                                    Hello Umesh@pro3,

                                    Could you please provide pictures of your setup? I want to check the way you are connecting the board to the PC.

                                    Also, have you tried replicating my test in order to see if it is a viable alternative for your project? 

                                    I’ll be waiting for your response.

                                    Regards,
                                    Andres V.

                                    1 2 Previous Next