Community
cancel
Showing results for 
Search instead for 
Did you mean: 
uNimb
Beginner
1,481 Views

related to uart 1

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)

0 Kudos
24 Replies
FGold
New Contributor II
49 Views

Hi,

Hope this helps.

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

https://iotdk.intel.com/docs/master/mraa/grossetete.html 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):

idata
Community Manager
49 Views

Hello Umesh@pro3,

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

I think you may find this thread useful /message/436334# 436334 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.

FGold
New Contributor II
49 Views

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.

idata
Community Manager
49 Views

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.
FGold
New Contributor II
49 Views

Andres,

can you test the UART, and provide your results.

Thanks in advance.

FGold
New Contributor II
49 Views

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.

uNimb
Beginner
49 Views

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

FGold
New Contributor II
49 Views

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.

idata
Community Manager
49 Views

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 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.
uNimb
Beginner
49 Views

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] [] dump_stack+0x4d/0x72

[ 483.244986] [] warn_slowpath_common+0x82/0xc0

[ 483.244989] [] warn_slowpath_null+0x1a/0x20

[ 483.245008] [] ieee80211_enable_keys+0x172/0x180 [mac80211]

[ 483.245025] [] ieee80211_reconfig+0x1040/0x16c0 [mac80211]

[ 483.245044] [] ieee80211_resume+0x5f/0x70 [mac80211]

[ 483.245060] [] wiphy_resume+0x7b/0x150 [cfg80211]

[ 483.245072] [] ? index_show+0x30/0x30 [cfg80211]

[ 483.245076] [] dpm_run_callback+0x46/0x170

[ 483.245079] [] device_resume+0x95/0x250

[ 483.245082] [] async_resume+0x1d/0x50

[ 483.245085] [] async_run_entry_fn+0x37/0xe0

[ 483.245089] [] process_one_work+0x14c/0x4e0

[ 483.245092] [] worker_thread+0x48/0x4a0

[ 483.245095] [] ? process_one_work+0x4e0/0x4e0

[ 483.245099] [] kthread+0xd8/0xf0

[ 483.245102] [] ? kthread_worker_fn+0x170/0x170

[ 483.245107] [] ret_from_fork+0x3f/0x70

[ 483.245110] [] ? 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] [] dump_stack+0x4d/0x72

[ 483.342991] [] warn_slowpath_common+0x82/0xc0

[ 483.342992] [] warn_slowpath_null+0x1a/0x20

[ 483.343002] [] decrease_tailroom_need_count+0x62/0x70 [mac80211]

[ 483.343012] [<ffffffffc06b1...

idata
Community Manager
49 Views

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.
idata
Community Manager
49 Views

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.
uNimb
Beginner
49 Views

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

idata
Community Manager
49 Views

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.
idata
Community Manager
49 Views

Hello Umesh@pro3,

 

 

I was wondering if you had the chance to check the previous message.

 

 

An image of your setup may help us find the reason why you are experiencing the issue.

 

 

If you have any other question or update, don't hesitate to contact us.

 

 

Regards,

 

Andres V.
idata
Community Manager
49 Views

Andres,

I've been digging through all of the information I can find on this forum and elsewhere to try to get UART 1 - /dev/ttyS1 to work. The information available is very inconsistent and unclear. Can you please provide more verbose details of how you set this up?

I've seen replies that say UART needs to be configured in the BIOS. What does that mean? Is this necessary for using pins 22/24 - UART 1? I did see that the BIOS has a UART configuration parameter providing two options: Internal and SuperIO. What do these options mean?

Also, I cannot find the specification for compatible baud rates. Do you have this information?

I've tried using `screen /dev/ttyS1` to open the port and listen to the traffic. The port fails to open and screen terminates.

I've tried using `x = mraa.Uart("/dev/ttyS1")` in Python with the library here -> https://github.com/intel-iot-devkit/mraa GitHub - intel-iot-devkit/mraa: Linux Library for low speed IO Communication in C with bindings for C++, Python, Node.js… and I have the same issue as above. The command results in the constructor throwing the "Error initialising UART" error.

Some references I've thoroughly reviewed:

https://github.com/intel-iot-devkit/mraa/issues/612 Uart(0) and Uart(1), etc. are meaningless on Joule... · Issue # 612 · intel-iot-devkit/mraa · GitHub

https://software.intel.com/en-us/iot/hardware/joule/documentation The Intel® Joule™ Compute Module | Intel® Software

My system:

Ubuntu 16.04

mraa 1.5.1

Joule BIOS GTPP161A.X64.0143.B30.1611152208

Thanks,

Anthony

idata
Community Manager
49 Views

Hello Anthony,

I understand that there has been certain confusion regarding this topic.

In this post I provide an explanation on how I was able to use UART 1 without configuring the BIOS. I'll post it here again for convenience:

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.

The corresponding team is aware of the confusion in the documentation and has already taken note of the information that you request, and I assure that we are working on the adequate documentation.

Sorry for the inconvenience this may cause.

Regards,

 

Andres V.
idata
Community Manager
49 Views

Andres,

That is not helpful. I asked for more verbose details. For example, you could reply with any pertinent BIOS settings or system configuration details (BIOS version, Linux kernel version, etc.).

I don't see answers to my questions. I'll paste them here for further review:

I did see that the BIOS has a UART configuration parameter providing two options: Internal and SuperIO. What do these options mean?

Also, I cannot find the specification for compatible baud rates. Do you have this information?

Thanks,

Anthony

idata
Community Manager
49 Views

Hello Anthony,

 

 

I'll be needing more time to investigate if that information is available.

 

 

If I find information that you may find useful, I'll post it here.

 

 

Thank you for your patience.

 

 

Regards,

 

Andres V.
idata
Community Manager
9 Views

I found help elsewhere. You need the special kernel for the Joule and it works fine at 921600 baud. Bummer it is not released to the public yet though -> http://askubuntu.com/questions/878880/where-is-the-source-for-the-4-4-0-1000-joule-kernel 16.04 - Where is the source for the 4.4.0-1000-joule kernel? - Ask Ubuntu

Anthony

Reply