hello,
i wish to know "how to read data from the serial port sent by cc2531 when serial app is running" without using a smart rf board?
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.
Hi Sri,
The UART logic of CC253x/4x cannot directly drive a serial port. That's why you need the SmartRF boards for this, there are level shifters on this board.
However, some USB-to-Serial cables can support the logical levels of CC253x/4x. I have not tested this cable, but I know cables like this can do the job. http://www.alliedelec.com/search/productdetail.aspx?sku=70069429&gclid=CLLg0eaaxbUCFQrpnAodhTgAEA
The default baud rate should be 115200. You said that you can not communicate with it and what kind of command do you use to communicate with CC2531? What FW do you use on your CC2531? Specify more clear will give us more information to help you find the problem.
Thank you Yikai chen...
we are using a cc2531 DK_Dongle Rev 2.4
i downloaded the serial app for cc2531 (Z Stack tool ) from this TI link :
http://e2e.ti.com/support/low_power_rf/f/158/t/151438.aspx
i don't have a smart RF board, i used CCdebugger to download and debug that code into cc2531.
now it is getting successfully recognized as a serial port -
i then ran the packet sniffer using another cc2531 and i got these packets
Next ,i powered a cc2530 end device - using battery ( programmed using CC2530ZNP Mini kit end device example )
now i got these packets in packet sniffer.
but i was not able to read any data in hyperterminal when i connected it to the cc2531 usb cdc serial port
i tried the following settings
115200 bits per sec , Data bit : 8 , Parity :none , stop bit :1, flow control : hardware
Please help me.
is there any other software through which i can read or save the data from that cc2531 serial port ?
Thank you YiKai Chen,
But i encounter the following error when i open the Z-tool under z stack
Unhandled exception has occurred in your application..
i have included the screen shot
i tried the solutions from the following posts, but it shows the same error.
http://e2e.ti.com/support/low_power_rf/f/158/t/199611.aspx
http://e2e.ti.com/support/low_power_rf/f/158/t/140170.aspx
i am using Windows 8 and if i try to install .net the following info is displayed
Same or higher version of .NET Framework 4 has already been installed on this computer.
I am logged in as Administrator too.
All i want to do, is to save the data which a cc2531 dongle receives to my pc.
The data is sent by a cc2530 end device to the cc2531 coordinator ( which is connected to the pc via usb port - no smartrfboards involved)
please refer to the previous questions in this post for details.
I opened Z-tool 2.0( using the run as administrator option)
i connected the cc2531 dongle ( running serial app )
i go to tools menu ->settings and under serial devices my ports were listed.
i gave the following settings baud rate 115200 Data bit : 8 , Parity :none , stop bit :1, flow control : none
but when i scan for my device , it says
NO devices found
You can open the znp.eww project under C:\Texas Instruments\ZStack-CC2530-2.5.1a\Projects\zstack\ZNP\CC253x and choose cc2530 or cc2531 debug configuration depends on which chip you use. Then build the code and download it to your device. Connect the device and open ZTool to work on it. This project using MT command and you can refer to the Z-Stack Monitor and Test API.pdf under C:\Texas Instruments\ZStack-CC2530-2.5.1a\Documents.
if you want to read data from the serial port,
I think you can use third-party software. for example:
Awavo serial port terminal :
Hi,
I used cc2531 usb dongle as zig bee HA coordinator by flashing the znp from z-stack home from texas.I successfully established communication with the HA Bulb using MT commands through z-tool on my pc.I am able to on/off the bulb when i send commands through z-tool.
Now i manually generated the MT frames taking reference from monitor and test commands pdf. when i send the commands through cutecom i get the transmission success response from the coordinator but the bulb does not respond.
when i start the zigbee stack by sending zigbee start request command then the bulb continuosly sends beacons which contains the bulb's 64 bit and 16 bit address. so i assume that communication with the bulb is possible.
My doubt is can i use the MT commands by manually generating MT frames and send it via any serial communication software?
I already tried with cutecom on linux and hercules software on windows machine but i face the same problem that the bulb does not send the response.But it continuesly sends the beacons.
Please someone guide me on this.
Hi Yk Chen
I do not use the protocol analyser but i send the commands through z-tool software to communicate with the coordinator and use monitor ans test commands in the z-stack home from texas for communication.
here i attach the screen shots of the z-tool software in which i recieve coordinator response by sending util get device info command and next the response from the bulb where i recieve the response from the bulb which on/off the bulb.p { margin-bottom: 0.25cm; line-height: 120%; }
I do not use the protocol analyser but i send the commands through z-tool software to communicate with the coordinator and use monitor ans test commands in the z-stack home from texas for communication.
here i attach the screen shots of the z-tool software in which i receive coordinator response by sending util get device info command and next the response from the bulb where i receive the response from the bulb which on/off the bulb.
Thanks a lot for your responses.Please share your views for solving this issue.
Thanks in advance.
Hi Yk Chen
Thanks for your responses and sorry i was not able to attach the screen shot due to some problem with my pc.Now i attach the screen shots.
Please share your views to solve this issue.
Thanks in advance.
Hi Yk Chen
I am also facing similar issue. Here is a brief description about it.
I have flashed Z-stack ZNP hex file on CC2531 USB dongle (as coordinator) & started ZTool software on host machine to access CC2531. I am successfully able to start the network, HA supported Bulb joins it as end device. I am even able to turn ON/OFF bulb successfully using Ztool.
Now, I have started using serial terminal utility to access CC2531 instead of using Ztool software (Because, finally, I need to integrate MT command in my serial application). Now, in this test scenario, I have prepared frames manually (as per MT command frame document PDF) & was able to start the network successfully. I have verified this by sending a command to CC2531 to read available end device joined wih coordinator & it returns device address. Now, When I send command to read ZDO information from end device (bulb in my case), it returns SUCCESS response but response received from end device (bulb) does not reach to my serial terminal utility.
So I am just curious to know that, is Ztool add something extra information while sending the command ?
Thanking you in advance for your kind help
Regards
Ashish