Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Simulink interfacing with bioloid usnig USB2DXL

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
2 postsPage 1 of 1
2 postsPage 1 of 1

Simulink interfacing with bioloid usnig USB2DXL

Post by nandy.debasish » Thu Aug 27, 2009 1:31 pm

Post by nandy.debasish
Thu Aug 27, 2009 1:31 pm

Hi !!!!!!
I can do communicate USB2DXL to AX-12 in TTLmode. But when CM5 is connected with USB2DXL(in RS232 mode) with a serial cable, I can download Behavoiur control program, I can connect through Robot terminal. But when I want to interface Matlab with Bioloid using the procedure ''communication protocol using RS232" , the following problem arises.please help me.

Segmentation violation detected at Thu Aug 27 17:50:42 2009
------------------------------------------------------------------------

Configuration:
MATLAB Version: 7.7.0.471 (R2008b)
MATLAB License: 161051
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 2)
Processor ID: x86 Family 15 Model 2 Stepping 3, AuthenticAMD
Virtual Machine: Java 1.6.0_04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
Default Encoding: windows-1252

Fault Count: 1

Register State:
EAX = 2032a9f0 EBX = 00000005
ECX = 00000000 EDX = 6563e870
ESI = 2032fb38 EDI = 00000000
EBP = 00c2b538 ESP = 00c2b530
EIP = 6f48c74a FLG = 00010206

Stack Trace:
[0] libmwsimulink.dll:0x6f48c74a(5, 0x00c2b590, 0x1b0ed390, 0x1aedaf78)
[1] libmwsimulink.dll:0x6f45ba7b(0x1b0ed390, 4, 0x1b0ed390, 0)
[2] libmwsimulink.dll:0x6f45215f(0x1b0ed390, 4, 0x00c2b590, 0)
[3] libmwsimulink.dll:0x6f15ac8e(0x1b0ed390, 4, 0x1b429898, 0x1b0ed390)
[4] libmwsimulink.dll:0x6f175788(0x1b0ed390, 0x6fc4c030, 0x1b3736d8, 0x21b85030)
[5] libmwsimulink.dll:0x6f1769df(0x1b429898, 0, 0x1b429898, 0x2228e2b8)
[6] libmwsimulink.dll:0x6f17c3bb(0x1772c820, 0x00c2b61c ",¶Â", 0x6f18d109, 0x1b429898)
[7] libmwsimulink.dll:0x6f18575f(0x1b429898, 0x20300d60, 616, 0x1b429898)
[8] libmwsimulink.dll:0x6f18d109(0x1b429898, 0x2228e2b8, 0x00c2b638, 0x7a897fd2)
[9] uiw.dll:void __cdecl miw_MenuItemCallbackDispatch(struct tagUIW_MenuItem *)(0x1b389a28, 0x00c2b684 "̶Â", 0x6f805af6, 1049362) + 25 bytes
[10] uiw.dll:bool __cdecl UIW_ExecuteMenuItemCallback(struct HWND__ *,int)(1049362, 616, 616, 0x1b07eb88) + 34 bytes
[11] libmwsimulink.dll:0x6f805af6(1508088, 273, 616, 0)
[12] libmwsimulink.dll:0x6f807428(616, 0, 0x02cd67bc, 273)
[13] MFC80.DLL:0x78202833(273, 616, 0, 0x00c2b798)
[14] MFC80.DLL:0x782027ad(273, 616, 0, 0x02cd6958)
[15] MFC80.DLL:0x78201543(0, 1049362, 273, 616)
[16] MFC80.DLL:0x78201759(1049362, 273, 616, 0)
[17] libmwsimulink.dll:0x6f8786a0(1049362, 273, 616, 0)
[18] USER32.dll:0x77d48709(0x6f87866d, 1049362, 273, 616)
[19] USER32.dll:0x77d487eb(568248, 0x6f87866d, 1049362, 273)
[20] USER32.dll:0x77d489a5(0x00c2b9ac, 1, 0x00c2b9dc "ì¹Â", 0x7a89a157)
[21] USER32.dll:0x77d4bccc(0x00c2b9ac, 0x7aaef6b0, 0, 0x7a8e654c)
[22] uiw.dll:char * __cdecl getCommand(char *,int)(0x78635bb8, 4096, 0x00c2ba3c "´ºÂ", 0x78622aef) + 487 bytes
[23] uiw.dll:public: virtual char * __thiscall uiw::UIW_IOProxy::getCmdWindowCommand(char *,int)const (0x78635bb8, 4096, 0x78622a60, 0x7a8e654c) + 16 bytes
[24] bridge.dll:char * __cdecl winReadStdin(char * const,unsigned int,bool)(0x78635bb8, 4096, 0, 0x00c2fbc8) + 79 bytes
[25] bridge.dll:char * __cdecl ioReadLineOS(bool,struct _iobuf * const,char * const,char * const,int,bool * const,void (__cdecl*const)(void),char * (__cdecl*const)(char * const,unsigned int,bool))(0, 0x781c1b78, 0x01f81b18, 4096) + 174 bytes
[26] bridge.dll:char * __cdecl ioReadLine(bool,struct _iobuf *,char *,char *,int,bool *)(0, 0x781c1b78, 0x01f81b18, 0x01f81b18) + 99 bytes
[27] bridge.dll:void __cdecl mnGetFullLine(char * *,unsigned int *,unsigned int *,bool)(0x00c2fbcc, 0x00c2fbc0, 0, 0x7ae952a4) + 139 bytes
[28] bridge.dll:_mnGetCommandLineBuffer(0, 0x020bcca0 "à3@", 0x01fcb4d0 "Ô3@", 0x020bd460) + 124 bytes
[29] bridge.dll:__catch$_mnParser$0(0x020bd460, 0x17663678, 0x798e0201, 0x17717c50 "ÿÿ") + 158 bytes
[30] mcr.dll:public: void __thiscall mcrInstance::mnParser(void)(0x0040547c, 336710, 0, 0x7ffde000) + 51 bytes
[31] MATLAB.exe:int __cdecl mcrMain(int,char const * * const)(1, 0x01fcf358, 4194304, 10) + 568 bytes
[32] MATLAB.exe:_WinMain@16(4194304, 0, 336710, 10) + 75 bytes
[33] MATLAB.exe:___tmainCRTStartup(0, 0, 0x7ffde000, 0x8054a6ed) + 320 bytes
[34] kernel32.dll:0x7c816d4f(0x00401b1f, 0, 0x00905a4d, 3)
Hi !!!!!!
I can do communicate USB2DXL to AX-12 in TTLmode. But when CM5 is connected with USB2DXL(in RS232 mode) with a serial cable, I can download Behavoiur control program, I can connect through Robot terminal. But when I want to interface Matlab with Bioloid using the procedure ''communication protocol using RS232" , the following problem arises.please help me.

Segmentation violation detected at Thu Aug 27 17:50:42 2009
------------------------------------------------------------------------

Configuration:
MATLAB Version: 7.7.0.471 (R2008b)
MATLAB License: 161051
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 2)
Processor ID: x86 Family 15 Model 2 Stepping 3, AuthenticAMD
Virtual Machine: Java 1.6.0_04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
Default Encoding: windows-1252

Fault Count: 1

Register State:
EAX = 2032a9f0 EBX = 00000005
ECX = 00000000 EDX = 6563e870
ESI = 2032fb38 EDI = 00000000
EBP = 00c2b538 ESP = 00c2b530
EIP = 6f48c74a FLG = 00010206

Stack Trace:
[0] libmwsimulink.dll:0x6f48c74a(5, 0x00c2b590, 0x1b0ed390, 0x1aedaf78)
[1] libmwsimulink.dll:0x6f45ba7b(0x1b0ed390, 4, 0x1b0ed390, 0)
[2] libmwsimulink.dll:0x6f45215f(0x1b0ed390, 4, 0x00c2b590, 0)
[3] libmwsimulink.dll:0x6f15ac8e(0x1b0ed390, 4, 0x1b429898, 0x1b0ed390)
[4] libmwsimulink.dll:0x6f175788(0x1b0ed390, 0x6fc4c030, 0x1b3736d8, 0x21b85030)
[5] libmwsimulink.dll:0x6f1769df(0x1b429898, 0, 0x1b429898, 0x2228e2b8)
[6] libmwsimulink.dll:0x6f17c3bb(0x1772c820, 0x00c2b61c ",¶Â", 0x6f18d109, 0x1b429898)
[7] libmwsimulink.dll:0x6f18575f(0x1b429898, 0x20300d60, 616, 0x1b429898)
[8] libmwsimulink.dll:0x6f18d109(0x1b429898, 0x2228e2b8, 0x00c2b638, 0x7a897fd2)
[9] uiw.dll:void __cdecl miw_MenuItemCallbackDispatch(struct tagUIW_MenuItem *)(0x1b389a28, 0x00c2b684 "̶Â", 0x6f805af6, 1049362) + 25 bytes
[10] uiw.dll:bool __cdecl UIW_ExecuteMenuItemCallback(struct HWND__ *,int)(1049362, 616, 616, 0x1b07eb88) + 34 bytes
[11] libmwsimulink.dll:0x6f805af6(1508088, 273, 616, 0)
[12] libmwsimulink.dll:0x6f807428(616, 0, 0x02cd67bc, 273)
[13] MFC80.DLL:0x78202833(273, 616, 0, 0x00c2b798)
[14] MFC80.DLL:0x782027ad(273, 616, 0, 0x02cd6958)
[15] MFC80.DLL:0x78201543(0, 1049362, 273, 616)
[16] MFC80.DLL:0x78201759(1049362, 273, 616, 0)
[17] libmwsimulink.dll:0x6f8786a0(1049362, 273, 616, 0)
[18] USER32.dll:0x77d48709(0x6f87866d, 1049362, 273, 616)
[19] USER32.dll:0x77d487eb(568248, 0x6f87866d, 1049362, 273)
[20] USER32.dll:0x77d489a5(0x00c2b9ac, 1, 0x00c2b9dc "ì¹Â", 0x7a89a157)
[21] USER32.dll:0x77d4bccc(0x00c2b9ac, 0x7aaef6b0, 0, 0x7a8e654c)
[22] uiw.dll:char * __cdecl getCommand(char *,int)(0x78635bb8, 4096, 0x00c2ba3c "´ºÂ", 0x78622aef) + 487 bytes
[23] uiw.dll:public: virtual char * __thiscall uiw::UIW_IOProxy::getCmdWindowCommand(char *,int)const (0x78635bb8, 4096, 0x78622a60, 0x7a8e654c) + 16 bytes
[24] bridge.dll:char * __cdecl winReadStdin(char * const,unsigned int,bool)(0x78635bb8, 4096, 0, 0x00c2fbc8) + 79 bytes
[25] bridge.dll:char * __cdecl ioReadLineOS(bool,struct _iobuf * const,char * const,char * const,int,bool * const,void (__cdecl*const)(void),char * (__cdecl*const)(char * const,unsigned int,bool))(0, 0x781c1b78, 0x01f81b18, 4096) + 174 bytes
[26] bridge.dll:char * __cdecl ioReadLine(bool,struct _iobuf *,char *,char *,int,bool *)(0, 0x781c1b78, 0x01f81b18, 0x01f81b18) + 99 bytes
[27] bridge.dll:void __cdecl mnGetFullLine(char * *,unsigned int *,unsigned int *,bool)(0x00c2fbcc, 0x00c2fbc0, 0, 0x7ae952a4) + 139 bytes
[28] bridge.dll:_mnGetCommandLineBuffer(0, 0x020bcca0 "à3@", 0x01fcb4d0 "Ô3@", 0x020bd460) + 124 bytes
[29] bridge.dll:__catch$_mnParser$0(0x020bd460, 0x17663678, 0x798e0201, 0x17717c50 "ÿÿ") + 158 bytes
[30] mcr.dll:public: void __thiscall mcrInstance::mnParser(void)(0x0040547c, 336710, 0, 0x7ffde000) + 51 bytes
[31] MATLAB.exe:int __cdecl mcrMain(int,char const * * const)(1, 0x01fcf358, 4194304, 10) + 568 bytes
[32] MATLAB.exe:_WinMain@16(4194304, 0, 336710, 10) + 75 bytes
[33] MATLAB.exe:___tmainCRTStartup(0, 0, 0x7ffde000, 0x8054a6ed) + 320 bytes
[34] kernel32.dll:0x7c816d4f(0x00401b1f, 0, 0x00905a4d, 3)
nandy.debasish
Newbie
Newbie
Posts: 6
Joined: Wed Aug 26, 2009 7:17 am

Post by StuartL » Tue Sep 08, 2009 11:07 am

Post by StuartL
Tue Sep 08, 2009 11:07 am

This looks like a Matlab bug rather than a Robotis/Bioloid issue?
This looks like a Matlab bug rather than a Robotis/Bioloid issue?
StuartL
Savvy Roboteer
Savvy Roboteer
Posts: 350
Joined: Mon Jun 04, 2007 3:46 pm
Location: Thatcham, Berkshire, UK


2 postsPage 1 of 1
2 postsPage 1 of 1