This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1310: While setting up TIDEP0084, there is problem on 'ENOTFOUND' - AWS Cloud Adapter error

Part Number: CC1310
Other Parts Discussed in Thread: TIDEP0084

Hi team,

I try to setup the TIDEP0084 ( ) (Sub-1 GHz Sensor to Cloud Industrial IoT Gateway). But I meet the error of 'ENOTFOUND' like below. The BBB access Internet through one AP router with mobile SIM. So, there should be no firewall or proxy problem.  (attachment is the fully log from BBB).

BBB_log.txt
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.41-gf9f6f0db2d (gtbldadm@ubuntu-16) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #1 PREEMPT Wed Mar 29 17:37:15 EDT 2017
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: TI AM335x BeagleBone Black
[ 0.000000] cma: Reserved 48 MiB at 0x9d000000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.0 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129920
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=5acae36b-02 rw rootfstype=ext4 rootwait
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 459924K/524288K available (6603K kernel code, 317K rwdata, 2416K rodata, 264K init, 265K bss, 15212K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc08d7004 (9021 kB)
[ 0.000000] .init : 0xc08d8000 - 0xc091a000 ( 264 kB)
[ 0.000000] .data : 0xc091a000 - 0xc09694b0 ( 318 kB)
[ 0.000000] .bss : 0xc09694b0 - 0xc09abbd8 ( 266 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000014] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000033] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000041] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000182] clocksource_probe: no matching clocksources found
[ 0.000337] Console: colour dummy device 80x30
[ 0.000359] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.000365] This ensures that you still see kernel messages. Please
[ 0.000370] update your kernel commandline.
[ 0.000385] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[ 0.089239] pid_max: default: 32768 minimum: 301
[ 0.089350] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.089360] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.089967] Initializing cgroup subsys io
[ 0.089996] Initializing cgroup subsys memory
[ 0.090030] Initializing cgroup subsys devices
[ 0.090042] Initializing cgroup subsys freezer
[ 0.090055] Initializing cgroup subsys perf_event
[ 0.090064] Initializing cgroup subsys pids
[ 0.090090] CPU: Testing write buffer coherency: ok
[ 0.090453] Setting up static identity map for 0x80008200 - 0x80008260
[ 0.092248] devtmpfs: initialized
[ 0.102139] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.114667] omap_hwmod: debugss: _wait_target_disable failed
[ 0.170052] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.173564] pinctrl core: initialized pinctrl subsystem
[ 0.174746] NET: Registered protocol family 16
[ 0.176563] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.199233] cpuidle: using governor ladder
[ 0.229220] cpuidle: using governor menu
[ 0.232975] OMAP GPIO hardware version 0.1
[ 0.241462] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.276225] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.279429] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

root@am335x-evm:~/AWS/prebuilt# bash run_demo.sh
Launching the Collector Application in the background
Found Mac Co-Processor Version info is:
Transport: 3
Product: 1
Major: 2
Minor: 0
Maint: 0
----------------------------------------
Start the gateway application
Collector Running as Process id: 919
Launching Node-JS gateway application in background
Gateway is running as Process id: 931
root@am335x-evm:~/AWS/prebuilt# Connected to App Server
AWS Cloud Adapter error { [Error: getaddrinfo ENOTFOUND https://a23op339u3ex9t.iot.us-east-1.amazonaws.com https://a23op339u3ex9t.iot.us-east-1.amazonaws.com:8883]
code: 'ENOTFOUND',
errno: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'a23op339u3ex9t.iot.us-east-1.amazonaws.com',
host: 'a23op339u3ex9t.iot.us-east-1.amazonaws.com',
port: 8883 }
AWS Cloud Adapter offline
AWS Cloud Adapter close
AWS Cloud Adapter reconnect

I have tried to update certification file from stackarmor. But the error is the same.

I also tried to modify  "config-phy-id=3" on collector.cfg. But this is no helpful.

Below is my setup.

Please help clarify. Thank you.

  • Hey Jerry,

    It looks like a network connection error. Lets double check you are able to talk to the internet. Could you ssh into the BeagleBone and run "ping 8.8.8.8"? I have seen this issue arise when an ip lease expires and a new ip address needs to be leased from the DHCP server.

    ~Brocklobsta

  • Hi Brock,
    Thanks for your reply. I tried to ping other address. The ping works. Other laptop also can access Internet through same router at the same time .
    I got certification files 6 months ago. The stackarmor people said the certification files and not expired.
  • Hi Brock,

    BBB can pin 8.8.8.8 (attachment is the BBB log). However, the error is the same ('ENOTFOUND').

    BBB_log_0607.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 4.4.41-gf9f6f0db2d (gtbldadm@ubuntu-16) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #1 PREEMPT Wed Mar 29 17:37:15 EDT 2017
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] Machine model: TI AM335x BeagleBone Black
    [ 0.000000] cma: Reserved 48 MiB at 0x9d000000
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.0 (sgx neon )
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129920
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=5acae36b-02 rw rootfstype=ext4 rootwait
    [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Memory: 459924K/524288K available (6603K kernel code, 317K rwdata, 2416K rodata, 264K init, 265K bss, 15212K reserved, 49152K cma-reserved, 0K highmem)
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    [ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc08d7004 (9021 kB)
    [ 0.000000] .init : 0xc08d8000 - 0xc091a000 ( 264 kB)
    [ 0.000000] .data : 0xc091a000 - 0xc09694b0 ( 318 kB)
    [ 0.000000] .bss : 0xc09694b0 - 0xc09abbd8 ( 266 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] Build-time adjustment of leaf fanout to 32.
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • See the description below of the ENOTFOUND error in the document at http://www.ti.com/lit/ug/tiduci9a/tiduci9a.pdf 2.3.3.1:

    Error: getaddrinfo ENOTFOUND (AWS Cloud Adapter error) This error can happen if the BeagleBone Black is behind a firewall and cannot connect to the servers at the AWS URL. This issue can be resolved by using a mobile hotspot to connect the BeagleBone Black to the Internet or possibly by configuring the local network settings to allow the BeagleBone Black to access outside servers.

     Looks like you are not able to reach AWS. Is there a proxy setting required?

  • hi Suyash,

    Thank you. I find the root cause. In the awsConfig.json, the value of "host" cannot include "http://". Just put the URL excluding http://

  • Thanks for the update! And good to know it works for you now!