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.

Error starting linux 15.4 gateway application

Other Parts Discussed in Thread: CC1310

hi all,

we build 15.4 gateway with Coprocessor(CC1310 ) on ti Beagle Bone Black (BBB)

but ,it return error when run demo shell.

as follow message,it can get the Coprocessor version information.*1

but which seem can't start other task(ie. NPI_server ) ;other at HW Combination 2 is work correct*2

Have you ever had the same issue?

*1:HW Combination 1

root@arm:~/song_sub1g/prebuilt# ./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
Good Bye
Error starting collector application
Something seems wrong with the collector app

*2 : HW Combination 2

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: 2621
Launching Node-JS gateway application in background
Connected to App Server
Gateway is running as Process id: 2690
Launching Web Browser ... for  http://localhost:1310

(firefox:2711): IBUS-WARNING **: The owner of /home/user/.config/ibus/bus is not root!

  • Hi
    On the hw combination 1, (BBB + CC1310LP) are you using the TI Processor SDK? On the terminal you should see "root@am335x-evm:~#". Do you see this? If not, can you please test the application using the Processor SDK as desribed in the quick start guide.

    Also, please refer to the developers guide under the docs folder. It provide more details on how to run the application. And please refer to chapter 11 in the linux developers guide about troubleshooting.

    Also, the ‘run demo script’ – does 2 steps
    Step 1- launch the collector – via “run_collector.sh” (or something like that)
    Step 2 – launch the nodejs - via run_gateway.sh
    You can run these independently, this will help understand where the issue is.

    If this suggestion above does not help resolve the issue then, in the “collector.cfg” file – uncomment the line:
    “dup2stderr = True”
    This will cause the log to come to the screen.
    Uncomment the line: flag = everything
    IMPORTANT: Also uncomment all of the “flag = not-<something>” lines
    (otherwise he log will be massive)

    The log should provide important information to help you debug the issue and if you cannot resolve after that then please post the log file and we can try to help you to get running.

    Hope this helps.
  • hi , i snippet last message ,

    Found Mac Co-Processor Version info is:
    Transport: 3
      Product: 1
        Major: 2
        Minor: 0
        Maint: 0
    ----------------------------------------
    Start the gateway application
      11.556: server-thread: THREAD_create()
      11.557: collector-thread: THREAD_create()
      11.559: socket(s,(null-host):5000) server-create bind() 98 Address already in use
      11.560: collector-thread: MUTEX_lock(nv-mutex) success (recursion=1)
      11.561: read: pg:0, ofs=0x01fd, num=5
      11.562: 000001f0:                        -               80 00 40 |            
    ..@|
      11.563: socket_close(s,server:5000)
      11.564: ERROR: socket(s,(null-host):5000) server-create server-nomore 0
      11.565: ERROR: appsrv.c:appsrv_server_thread:1130: cannot create socket to listen
      11.566: ERROR: 00000200: 00 30                  -                        |.0             
    |
      11.567: read: pg:0, ofs=0x01ec, num=5
      11.568: 000001e0:                        -            00 00 40 00 |           
    ..@.|
      11.569: Good Bye
    Good Bye

  • Can you please try using a different socket port. Out of box collector and gateway application use the port 5000. It looks like in your system this port is already in use. 

    This is configured in the file collector.cfg at

    1) /prebuilt/bin/collector.cfg -- if you are running the application from prebuilt directory

    2) /examples/collector/collector.cfg if you are running the application from this location.

    you would  need to change the define for the gateway interface:

    ; Configuration for the Gateway interface

    [appClient-socket-cfg]

    type = server

    ; host = not used

    service = 5000  --> change this to say 5050, etc..

    ; devicename = not used

    server_backlog = 5

    ; Limit to inet4, not inet6

    inet = 4

    In addition to changing the port number on the collector application, you would also need to change the port number on the gateway application. To do this, please modfy the define

    /* APP Server Port, this should match the port number defined in the

    file: appsrv.c */
    const APP_SERVER_PORT = 5000; --> This should be the same as used in the collector.cfg 

    in the file appClient.js at 

    1) /prebuilt/gateway/appClient/applient.js if you are running the application from the prebuilt directory

    2) /examples/gateway/appClient/appClient.js if you are running the application from the /example/gateway/ directory

    Please let me know if this resolves the issue. 

  • hi Jain ,
    thank for your reply.
    Now,it is work correctly.