TI中文支持网
TI专业的中文技术问题搜集分享网站

在beaglebone上运行 z-stack linux gateway server的时候失败

我没有用dongle的usb和bb连接。而是自己做了一个usb转串口,把cc2530和bb连在一起。

u转串在bbb上识别为ttyUSB0,而server用的是ttyACM0.

请问怎么让server用ttyUSB0 ?

Below are the logs when starting servers:

oot@am335x-evm:~/z-stack_linux_gateway_arm_binaries/servers# ./zigbeeHAgw bbb

running zigbeegw.scr on an ARM resetting beaglebone black  sleeping 6 seconds after reset…

[   65.277339] usb 2-1: USB disconnect, device number 2

[   65.285478] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0

[   65.295731] ftdi_sio 2-1:1.0: device disconnected

[   65.577660] usb 2-1: new full-speed USB device number 3 using musb-hdrc

[   65.724744] usb 2-1: New USB device found, idVendor=0403, idProduct=6001

[   65.731802] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[   65.739298] usb 2-1: Product: USB Serial Converter [   65.744326] usb 2-1: Manufacturer: FTDI

[   65.748359] usb 2-1: SerialNumber: FTFY7QC2

[   65.759780] ftdi_sio 2-1:1.0: FTDI USB Serial Device converter detected

[   65.766861] usb 2-1: Detected FT232RL

[   65.770761] usb 2-1: Number of endpoints 2

[   65.775063] usb 2-1: Endpoint 1 MaxPacketSize 64

[   65.779915] usb 2-1: Endpoint 2 MaxPacketSize 64

[   65.784758] usb 2-1: Setting MaxPacketSize 64

[   65.797965] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0

Using serial port: /dev/ttyACM0 /dev/ttyACM0: No such file or directory /dev/ttyACM0

open failed /dev/ttyACM0: No such file or directory /dev/ttyACM0

open failed done stty: can't open '/dev/ttyACM0': No such file or directory

stty: can't open '/dev/ttyACM0': No such file or directory

Starting the ZigBee gateway subsystem deviceKey = 0  (0 ) devPath = '/dev/ttyACM0' logPath = './NpiLnxLog.txt' … f

reeing memory (ret 0) Port: 2533 Following IP addresses are available:

IPv4: interface: lo     IP Address 127.0.0.1 The socket will listen on the following IP addresses:

  IPv4: 0.0.0.0   IPv6: :: 0.0.0.0 means it will listen to all available IP address

waiting for first connection on #3… NPI started (pid 1437) at Mon Mar 31 17:28:29 UTC 2014

Connected to #5.(127.0.0.1 / ::381c:f3b6:f01d:f3b6) ZLSZNP started (pid 1444) at Mon Mar 31 17:28:33 UTC 2014

[NWK_MGR/MAIN] :  there are 2 args

[NWK_MGR/MAIN] :  argv[0] = ./NWKMGR_SRVR_arm

[NWK_MGR/MAIN] :  argv[1] = 127.0.0.1:2536

[NWK_MGR/MAIN] :  ************************************************ [NWK_MGR/MAIN] :  *         Network Manager Server v1.0.1        *

[NWK_MGR/MAIN] :  * The following are the avaible key commands:  * [NWK_MGR/MAIN] :  * Exit Program.                         –  q   *

[NWK_MGR/MAIN] :  ************************************************

NETWORK MANAGER started (pid 1452) at Mon Mar 31 17:28:34 UTC 2014

[GATEWAY/MAIN] :

[GATEWAY/MAIN] :  ************************************************

[GATEWAY/MAIN] :  *            Gateway Server v1.0.1             *

[GATEWAY/MAIN] :  * The following are the avaible key commands:  * [GATEWAY/MAIN] :  * Exit Program.                         –  q   *

[GATEWAY/MAIN] :  ************************************************

GATEWAY SERVER started (pid 1460) at Mon Mar 31 17:28:36 UTC 2014

[OTASRVR/MAIN] : [OTASRVR/MAIN] :  ************************************************ [OTASRVR/MAIN] :  *                OTA Upgrade Server 1.0.1      * [OTASRVR/MAIN] :  * The following are the avaible key commands:  * [OTASRVR/MAIN] :  * Exit Program.                         –  q   *

[OTASRVR/MAIN] :  ************************************************

[NWK_MGR/MAIN] ERROR: Endpoint Registration Failed

[NWK_MGR/MAIN] ERROR: Reading Local Network Information Failed

[NWK_MGR/MAIN] : Initialization failed. Quitting now. mhoyt

OTA SERVER started (pid 1470) at Mon Mar 31 17:28:38 UTC 2014

[OTASRVR/MAIN] : Error – Could not register OTA endpoint with zstackserver.Exiting…

starting tracker with our pid ./zigbeeHAgw and pid list 1437 1444 1460 1470 ===================================================

NETWORK MANAGER exited with code 255 at Mon Mar 31 17:28:38 UTC 2014

hongliang liu1:

我也遇到了同样的问题,请问你的问题解决了吗,是什么问题啊,可以告诉我吗,谢谢

[OTASRVR/MAIN] DEBUG: Registering OTA end point 0xe, profile id 0x104 device id 0x0[OTASRVR/MAIN] DEBUG: Sending AF Register Request.OTA SERVER started (pid 21348) at Wed Jan 24 11:03:59 UTC 2018[OTASRVR/MAIN] DEBUG: apicSendSynchData_pRsp < 0 [OTASRVR/MAIN] DEBUG: AF Register Request status 0x3[OTASRVR/MAIN] DEBUG: *** Error doing AF Register , return status 0x3[OTASRVR/MAIN] : Error – Could not register OTA endpoint with zstackserver.Exiting…

miffy:

回复 hongliang liu1:

没有人会告诉你具体bug在什么地方,最好的办法就是放弃zigbee linux gateway(2014 release)

赞(0)
未经允许不得转载:TI中文支持网 » 在beaglebone上运行 z-stack linux gateway server的时候失败
分享到: 更多 (0)